Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
Chapter Five PLC Function Code
53
V
o
lume
I Programming
RST=0, Release the reset.
RST=0: Reset W=0.
Performance code (ACT)
ACT
=
0: Do not perform DSCH code, W keeps invariable.
ACT
=
1: Perform DSCH code. Output its table number if the indexed data is found; if it is
not found or it has two more above data, W=1.
Parameter:
Length : Format specifies the length of the index data.
1: 1 byte long
2: 2 bytes long
S1 : Data number storage address of the data table. The byte length specified by this
address is distributed the storage area for the requirement of the byte. The data number
of the data table is n+1 (table head is 0, the end of the table is n).
S2 : Set the data table head address.
S3 : Set the input address of the index address.
S4 : The address output of the index result. Actual address = head a table number,
table number is 0
~
(S1-1), the actual address can not exceed the data table. After
indexing: output its number from the list if the index data is found. The table number is
outputted to the index result output address of which the required storage byte number
should be suitable for the specified format.
Output:
W=0, Find the indexed data.
W=1, Do not find the indexed data.
5.30 ADD (Binary Addition)
Function:
This function code is used for the add operation of the 1 byte or 2 bytes binary data. The
addend data and the add operation output the data should be set the storage address with the
corresponding byte length.
Format:
Fig. 5-30-1