9 - 13
9 Encoder Input Slave Unit
GX-series EtherCAT Slave Unit User’s Manual
9-3 Function of the Encoder Input Slave Units
9
9-3-6 Counter Preset
It is possible to preset counter value for each channel using the elements shown below.
Counter preset bit
The counter present value is overwritten by "preset command value" by changing soft switch
"present value preset execution" allocated to each channel from 0 to 1 in the output data (Slave Unit
→ EtherCAT Master Unit) area.
Preset command value
Set "preset command value" allocated to each channel in output data (Slave Unit → EtherCAT
Master Unit) area or via SDO communications. (Default setting: 0)
When SDO communications are used, the target index is 4011 hex.
For the details, refer to the information in the corresponding index of "Appendix A-1 Object
Dictionary" in Page A - 50.
The counter value is latched for each channel using the elements shown below.
It is possible to latch two values at the same time.
External control input (latch A)
The present counter value is acquired/stored at the rise of latch A of external control input.
However, it is necessary to set the soft switch "external latch A enabled" to "enabled." *
External control input (latch B)
The present counter value is acquired/stored at the rise of latch B of external control input.
However, it is necessary to set the soft switch "external latch B enabled" to "enabled." *
For both latch A and B inputs, when latch is generated via latch input, the "external latch generation
flag" changes from 0 to 1 and the counter value is stored in objects (latch value A/latch value B) as
latch A/latch B data.
By changing "clear external latch generation flag" from 0 to 1, it is possible to clear the "external
latch generation flag."
When the "external latch generation flag" is cleared, the next latch input becomes enabled.
If it is desired to use latched counter values (latch values) in a ladder program, select PDO mapping
to which latch data is allocated.
* To use SDO communications, acquire/store the present counter value at the rise of latch A/B of external
control input, regardless of the status of the soft switch "external latch A/B enabled."
9-3-6 Counter Preset
9-3-7 Counter value latch