User guide

GEI-100340
cfix
il
*l
i2
fix
42
[411
B
co3
trim
r
Description
It performs a master
DeviceNet
communication
(LocalBus).
This block gets the input words (il, i2 and i3)
and sends them to the appropriate slave, retrieves the words received from the slave and writes them to output
words
(01,02
and 03). It also manages the timeout
signaling(to
r output) when the communication does not
occur for 1 cycle or for
tmo
cycles.
Input ports
Name
Type
il int
i2 int
i3
int
tmo int
Executed
always
always
always
always
Function
1 st word to be transmitted
2nd word to be transmitted
3rd word to be transmitted
number of cycles after which the r output is set to 2.
we274
Output ports
Name Type
01
int
02 int
03
int
r
int
1 st word received
2nd word received
3rd word received
~
communication status:
if 0 the block has found valid received words since previous
execution
if 1 the block has not found valid received words since
previous execution, but not for more than tmo cycles
~0275
Parameters
Name
Type Function
slave-id int
MACID(address) of the slave
len-w int
number of words to be transmitted to the slave
fix-dst-ind
int
index of slave FWA where to write the 1st words
transmitted by the master
len-r
int
number of words to be received from the slave
fix-src-ind
int
index of slave
FWA
where to read the 1 st words transmitted
by the slave
~0276
Alarm causes
Code 1 Function
0
slave-id
must be positive and not greater than 63
1
len-w
must be positive and not greater than 3
2
ind-dst-fix
must be positive and not greater than 47
4
len-r
must be positive and not greater than 3
5
ind-src-fix
must be positive and not greater than 47
8
the
sum of
len-w
and
ind-dst_fix
exceeds 47
9 the
sum of
len-r
and
ind-src-fm
exceeds 47
200
the program contains more than 32 cfix blocks
wo277
58