11
FnIO G-Series
Copyright(C)CREVIS Co.,Ltd S82-31-899-4599 URL: www.crevis.co.kr
2.1.5. Mapping data into the image table
Input Image Data – 8Byte
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
Counter Value Ch#0 LL
1
Counter Value Ch#0 LH
2
Counter Value Ch#0 HL
3
Counter Value Ch#0 HH
4
Counter Value Ch#1 LL
5
Counter Value Ch#1 LH
6
Counter Value Ch#1 HL
7
Counter Value Ch#1 HH
- Each channel has 4-byte Input
- Counter value represents counter, frequency(Hz), pulse width (0.1usec) or pulse period (0.1usec).
Output Image Data – 2Byte
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
CR 0
CS 0
--
--
Count Mode ch#0
1
CR 1
CS 1
--
--
Count Mode ch#1
- CR 0,1 : Counter Reset for Ch#0, Ch#1
- CS 0,1 : Counter Stop ( Inhibit Input ) for Ch#0, Ch#1
- Count Mode Ch#0,1 : Count Mode for Ch#0, Ch#1 respectively
Count Mode Ch#0, Ch#1
Value
Count Mode
Description
B' 0000 (0x0)
Encoder 4x
Encoder 4x
- Aph Input acts as Encoder's A phase Input
- Bph Input acts as Encoder's B phase Input
B' 0001 (0x1)
Encoder 2x
Encoder 2x