OUTPUT MODULE
CR2011
PAGE
40
■
Function:
CR2011
■
Library:
CR2011_C.lib
■
Purpose:
Sets parameters and reads
the configuration and I/O data
of the input/output module
CR2011
■
Parameter
Name
Data type
Description
Inputs
ENABLE
BOOL
TRUE:
function processing
INIT
BOOL
TRUE:
function initialisation
FALSE: cyclical function call
NODE_ID
BYTE
Node identifier
CFG_READ
BOOL
TRUE:
read the current configuration of the I/O module
CFG_WRITE
BOOL
TRUE:
write the current configuration of the I/O module
CFG_DATA
DWORD
Address of the configuration data (data structure)
RX_TYPE
BYTE
Receive transmission type (default = 0; synch acyclic)
TX_TYPE
BYTE
Transmit Transmission Type (default = 1; synch cyclic)
SYNC
BOOL
CANopen synchronisation cycle
(system variable COB_SYNC)
IO_DATA
DWORD
Address of the input/output data (data structure)
Outputs
CFG_RESULT
BYTE
1
=
configuration
read or written successfully
2
=
configuration
not yet read or written
3
=
configuration cannot be read or written
(missing or incorrect node ID or faulty device)
IO_RCV
BOOL
True:
for one cycle if new data were transmitted
If not described otherwise, a "FALSE" signal with boolean data types is always the negation of the
described "TRUE" signal.
CR2011
ENABLE
CFG_RESULT
INIT
IO_RCV
NODE_ID
CFG_READ
CFG_WRITE
CFG_DATA
RX_TYPE
TX_TYPE
SYNC
IO_DATA