10 parameterising the counter, 1 commissioning examples, Commissioning examples – Lenze I/O system 1000 System Manual User Manual
Page 310: Canopen communication
![background image](/manuals/565636/310/background.png)
CANopen communication
Parameterising the counter
Commissioning examples
l
310
EDSIO1000 EN 7.0
8.10
Parameterising the counter
8.10.1
Commissioning examples
The indexes for the signal setting in the following examples refer to the EPM−S600. In the
case of different counters the function selection can be placed on a different index (
^
Parameter data of the counter).
Example 1: Counting upwards
Step
Setting
Comment
1
Set signal evaluation:
Index 0x310A/x, bit 2 ... 0 = 100
b
(direction)
A signal evaluation has to be specified, otherwise
the counting process is not started.
2
Accept parameter setting:
0x31FF = 255
dec
No storage into the EEPROM of the bus coupler.
3
Enable of the software gates via control word
^ 266: Bit 2 (SW_GATE_SET) = HIGH
Transfer control word to the counter via PDO.
Example 2: Accept set value
Step
Setting
Comment
1
Set signal evaluation:
Index 0x310A/x, bit 2 ... 0 = 100
b
(direction)
A signal evaluation has to be specified, otherwise
the counting process is not started.
2
Accept parameter setting:
0x31FF = 255
dec
No storage into the EEPROM of the bus coupler.
3
Transfer set value to the counter via PDO:
e.g. 2147483583
dec
®Tx−PDO= |7F|FF|FF|BF
4
Activation of the set value via control word
^ 266: Bit 5 (COUNTERval_SET) = HIGH
Transfer control word via PDO to the counter.
Example 3: Set comparison bit
If the count value is 255 (= comparison value), the digital output is set.
Step
Setting
Comment
1
Set signal evaluation:
Index 0x310A/x, bit 2 ... 0 = 100
b
(direction)
A signal evaluation has to be specified, otherwise
the counting process is not started.
2
Set comparator:
Index 0x3109/x, bit 2 ... 0 = 010
b
(count value
£
comparison value)
3
Accept parameter setting:
0x31FF = 255
dec
No storage into the EEPROM of the bus coupler.
4
Transfer comparison value to the counter via
PDO: e.g. 255
dec
®Tx−PDO= FF|00|00|00|00
5
Enable digital output via control word
^ 266: Bit
1 (CTRL_DO_SET) = HIGH
Transfer control word to the counter via PDO.