
A-90188E-01 SETTING 1.MODBUS/TCP SERVER FUNCTION
- 32 -
1.3 NOTES ON CREATING A LADDER PROGRAM
The following provides notes on creating a ladder program required to
construct a safety system in a system that uses MODBUS/TCP.
Data concurrency
When a ladder program uses data in long data (4-byte data) units and
in word data (2-byte data) units, concurrency of multiple bytes of data
(with no data split) is guaranteed under the restrictions explained
below.
CAUTION
If the restrictions described in this section are not
observed, concurrency of long data and word data
cannot be guaranteed.
Concurrency of long data (4-byte data)
To ensure data concurrency, the following two conditions must be
observed:
(1) In the ladder program, the following instructions must be used in
units of four bytes:
DECB, CODEB, DCNVB, COMPB, DSCHB, XMOVB, ADDB,
SUBB, MULB, NUMEB, MOVN, EOR, AND, OR, and NOT
instructions
(2) When AREA1-3 is assigned to PMC %M, %ME or %R
addresses, %M, %ME or %R addresses must be on 4-byte
boundaries.
The 4-byte boundaries mean that a PMC address number satisfies
the following condition.
- For PMC %M, %ME addresses:
(8×n)+1 [The multiple of 4 of n = 0 - 7999]
Example) %M1, %M33, %ME1, %ME33
- For PMC %R addresses:
n/2+1 [The multiple of 4 of n = 0 - 9999]
Example) %R1, %R3