Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK218MC Series Machining Center CNC System PLC & Installation Connection Manual
38
Volume I
Programming
is repeated or exceeded its range.
Note 2:
The current value of the timer may automatically clear, after the ladder diagram is converted and
downloaded.
Reset the counter by the pulse signal before counting for ensuring the reliable of the counter.
5.15 DEC (Binary Decoding)
Function:
DEC can be decoded for the binary system code data, one of the consecutive data of the
specified 8-bit (1 type) or 16-bit (2 types) is same as the code data. The corresponding output data
bit is 1; the output data is 0 without any same number.
This code is used for the data decode of M or T function.
Format:
Fig. 5-15-1
Controllable condition:
ACT
=
0: Reset all of the output bits.
ACT
=
1: Perform the data decode; the treated result is set at the output data address.
Parameter:
Length: Set the dimension of the code data at the 1
st
bit data of the parameter.
0001: The code data is binary system code data of one byte.
0002: The code data is binary system code data of two bytes.
S1: Code data address. Specify an address of the storage code data.
S2: Decoding specifying No. Specify the 1
st
bit with the consecutive number of the 8-bit to be
decoded (1 byte) or 16-bit (two bytes).
S3: Decode result address. Specify an address output the decoding result. The register area
must be output with one byte or two bytes areas.
For example:
DEC
ACT
1
F10
8
R4
Fig. 5-15-2