CAN KEYPAD MODULE
CPM 100
PAGE
44
■
Function:
CR1500
■
Library:
CR1500_C.lib
■
Purpose:
Sets the parameters and reads
the configuration and I/O data
of the keypad module
CR1500
■
Parameter
If not described otherwise, a "FALSE" signal for boolean data types is always the negation of the
described "TRUE" signal.
Name
Data type
Description
Inputs
ENABLE
BOOL
TRUE:
function processing
INIT
BOOL
TRUE:
function initialisation
FALSE: cyclic function call
NODE_ID
BYTE
node identifier
CFG_READ
BOOL
TRUE:
read the current configuration of the module
CFG_WRITE
BOOL
TRUE:
write the current configuration of the module
CFG_DATA
DWORD
address of the configuration data (data structure)
RX_TYPE
BYTE
receive transmission type (default = 1; synch cyclic)
(seen from the controller)
TX_TYPE
BYTE
transmit transmission type (default = 1; synch cyclic)
(seen from the controller)
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
CR1500
ENABLE
CFG_RESULT
INIT
IO_RCV
NODE_ID
CFG_READ
CFG_WRITE
CFG_DATA
RX_TYPE
TX_TYPE
SYNC
IO_DATA