Example ofa bricks program – GE Industrial Solutions OKCV3000CN DeviceNet User Manual
Page 37
DeviceNet
5.9. EXAMPLE OFA BRICKS PROGRAM
Suppose that on the master the CFIX is programmed as follows:
Slave_id=27
Len_w
=
2
Fix_dst_md
=
12
Ind_ivar_src =4
Len_r=3
Fix src md =22
Ind_ivar_dst=88
This means that, if communication with slave 27 is established, the master will transmit 2 IVARs (4 and 5)
to FIX 12 and 13 of the slave, and will receive 3 FIX (22,23 and 24) of the slave in IVAR 88, 89 and 90 of
the master.
The slave program must use RFIX and WFIX. FIX 12 and 13 will be read (RFIX) and
FIX 88,89 and 90 will be
written. For example:
RFIXOInd_fix=12
RFIX 0 md_var
=
100
RFIX 0 Typqyar
=
3
RFIX 0
Tmo
=
xxx
RFIX1Ind_fix=13
RFIX1Ind_var= 101
RFIX 1
Typevar
=
3
REIX 1
Tmo
=
xxx
will copy FIX 12 and 13 in IVAR 100 and 101 (in the slave, no DeviceNet communication is involved) and:
WFIX 0
Ind_fix
=
22
WFIXOInd_var= 150
WFIX 0 Typevar
=
3
WFIX 0
Tmo
=
xxx
WFIX1Ind_fix=23
WFIX1Ind_var= 151
WFIX 1
Typevar
=
3
WFIX 1
Tmo
=
xxx
WFIX 2
md_fix =24
WFIX2Ind_var= 152
WFIX 2
Typevar
=
3
WFIX 2 Tmo
=
xxx
will copy IVAR 150,151 and 152 of the slave in FIX 22,23 and 24 (in the slave, no DeviceNet communication
is involved).
“‘U
HOW TO EXCHANGE 110 DATA