Sample code: ra_dnet_node_status, Ra_dnet_ldx_discrete – Rockwell Automation 2080 Micro800 Digital and Analog Plug-in Modules User Manual
Page 55
Rockwell Automation Publication 2080-UM004B-EN-E - December 2013
47
DeviceNet Plug-in – 2080-DNET20 Appendix 5
Sample Code: RA_DNET_NODE_STATUS
RA_DNET_LDX_DISCRETE
This UDFB is used for I/O data exchange with discrete CompactBlock I/O.
FBENO
OUTPUT
BOOL
Function block enable output.
TRUE upon exit.
Status
OUTPUT
USINT
Scanner fault status.
0: No errors.
Error
OUTPUT
STRING
Description of the node status error.
RA_DNET_NODE_STATUS: Input and Output Parameters
Variable Name
Type
Data Type
Description
RA_DNET_LDX_DISCRETE: Input and Output Parameters
Variable Name
Type
Data Type
Description
FBEN
INPUT
BOOL
Function block enable input.
TRUE to enable the function block.
SlotID
INPUT
UINT
Plug-in slot number (1…5)
NodeID
INPUT
USINT
Node address of the digital Compact I/O slave node.
Module1
INPUT
STRING
Base module I/O configuration.
INPUT X OUTPUT Channels
For example: 16X0 (16 input / 0 output is physically
present as base module)
Valid String: 32X0, 0X32, 16X0, 0X16, 16X16, 8X8,
8X0, 0X8, 0X6
NOTE: X should always be upper case.
Module2
INPUT
STRING
Expansion module 1 I/O configuration.
INPUT X OUTPUT channels
For example: 16X0 (16 input / 0 output is physically
present as base module)
Valid String: 32X0, 0X32, 16X0, 0X16, 16X16, 8X8,
8X0, 0X8, 0X6
NOTE: X should always be upper case.
Module3
INPUT
STRING
Expansion module 2 I/O configuration.
INPUT X OUTPUT Channels
For example: 16X0 (16 input / 0 Output is physically
present as base module)
Valid String: 32X0, 0X32, 16X0, 0X16, 16X16, 8X8,
8X0, 0X8, 0X6
NOTE: X should always be upper case.
FBEN
SlotID
NodeID
FBENO
RA_DNET_LDX_DISCRETE
DI_Module1
DI_Module2
Module1
Module2
Module3
DO_Module2
DO_Module3
Module4
DO_Module4
DO_Module1
DI_Module3
DI_Module4