SECTION 2 CompoWay/F Communications Protocol
20
3. Comparison Operators for 8-Digit Comparator
The comparison data and operation in the variable area can be
specified when reading.
■ Reading Work Bits and HR Bits
Bit positions are specified when reading Work Bits or HR Bits (0 or 1).
Example
Command
Response
0 0 0 0 0 0
8
7 6 5 4 3 2 1 0
0 0 0
Comparison Data 1
000 (H'0): 8-digit counter (F) PV
Comparison Data 2
1: SV (constant)
Note: Always 1.
Read data
Comparison Operator
0: ≤ (Comparator bit turns ON when
8-digit counter PV ≤ Comparison data 2.)
1: ≥ (Comparator bit turns ON when
8-digit counter PV ≥ Comparison data 2.)
[STX]000000101CA000002001 The bit position is specified when reading. In
this example, the bit 02 is specified when
reading the status of Work Bit M2.
[STX]00000010100000000001 The response says that the specified Work
Bit is ON (1).