Function Description
The WRITE_GDATA
function is used to write shared
data, or Global Data, on a Modbus Plus network.
Global Data is shared between a maximum of 64 stations on the same Modbus Plus network. Each station may write up to 32 integers, which can then be used by all stations on the network. Conversely, each station can read the 32 integers (maximum) of all the other network stations.
The additional parameters EN
and ENO
can be configured.
FBD representation
Representation:

LD representation
Representation:

IL representation
Representation:
LD Address
WRITE_GDATA Data_to_Write, Management_Param
ST representation
Representation:
WRITE_GDATA(Address, Data_to_Write, Management_Param);
Parameter Description
The following table describes the input parameters:
Parameter |
Type |
Comment |
---|---|---|
|
ARRAY [0.. 5] OF |
Address of the PCMCIA card that
connects the Premium to the Modbus Plus network. The value of this
address is: Note: data is written to the PCMCIA card, which then shares it. |
|
ARRAY [n... m] OF |
Word table containing the value of the objects to be written. This table must always be 32 integers of 16 bits in size, the maximum size of Global Data on a Modbus Plus network. |
The following table describes the input/output parameters:
Parameter |
Type |
Comment |
---|---|---|
|
ARRAY [0.. 3] OF |
It is not necessary to initialize the length parameter before launching the exchange. |