Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
Chapter Five PLC Function Code
51
V
o
lume
I Programming
5.28 XMOV (Binary Indexed Data Transmission)
Function:
This function code is used to read or write the data from the data table. The data number
(table-capacity) in this table can be specified by address; the data table can be operated by PLC
based upon the user’s setting during operating.
Format:
Fig. 5-28-1
Controllable condition:
Specify the operation (read or write) (RW)
RW=0: Read the data from the data table.
RW=1: Write the data to the data table.
Reset (RST)
RST=0: Release the reset
RST=1: Reset W=0.
Execution code (ACT)
ACT
=
0: Do not execute the XMOV code, W keeps invariable.
ACT
=
1: Execute the XMOV code.
Parameter:
Length: The format specifies the length of the transmission data.
1: 1 byte length.
2: 2 bytes length.
S1 : The data capacity storage address of the data table is used to store the data capacity
of the data table; the occupied byte number should be suitable for the specified length
of the Length. The valid range of the data is determined by the specified byte length of
the Length 1 format.
1 byte length: From 1 to 512.
2 byte length: From 1 to 256, that is, 256×2
=
512 bytes, which is the capacity
of the PLC data table.
S2 : Set the address of the data table head. The storage area of the data table = byte length
× data number of its table. The address of the table head should be the value in which
is set inside the data table.