29
Examples of Counter Unit Operation Section 3-1
Output Area
Count Value
• BCD
(O: positive, F: negative)
Setting Value
• BCD
Output conditions:
000 Present value ≥ Set value
Not 000 Present value ≤ Set value
• Hexadecimal
(Negative numbers specified with
the complement of 2 in 24 bits)
Bit 00: Set value 1 (0: Not set, 1: Set)
Bit 11 Bit 12
No mode change
Directional input mode
Phase difference y4 mode
Phase difference y1 mode
Bits 12 to 14: Reset mode selection:
Bit 14 Bit 13 Bit 12
No mode change
Z
IN
Z • IN
Internal
Z • Internal
IN • Internal
Z S IN • Internal
Z: Encoder input, Z. IN: External Input.
Internal: Internal reset bit. •: AND condition.
Bit 15: I/O Unit interface error setting
(0: Count stop • Initialize, 1: Count continue)
Output area
Wd n+0
Wd n+1
Wd n+2
Bit
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Bit 10, 11: Count mode selection:
0
0
1
1
0
1
0
1
Bit 09: External output 2 (0: Disabled, 1: Enabled)
Bit 08: External output 1 (0: Disabled, 1: Enabled)
Bit 07: Internal resetting (0→1: Resetting)
Bit 06: Count value reading (0: Not read, 1: Read)
Bit 05: Set value 2 reading (0: Not read, 1: Read)
Bit 04: Set value 1 reading (0: Not read, 1: Read)
Bit 03: Data code change (0: BCD, 1: Hex.)
Bit 02: Count value is set (0: Not set, 1: Set)
Bit 01: Set value 2 is set (0: Not set, 1: Set)
Output conditions:
000 Present value ≥ Set value
Not 000 Present value ≤ Set value
(O: positive, F: negative)
• Hexadecimal
(Negative numbers specified with
the complement of 2 in 24 bits)