CONFIG_CONFIGURABLE_IO_EX

This structure extends CONFIG_CONFIGURABLE_IO with twice the mapping space per I/O category. It allows more fine-grained control over I/O logic states and safety signals.

BYTE#

Field Name

Data Type

Value

Remarks

0

_iIO

unsigned char[TYPE_LAST][NUM_DIGITAL * 2]

Mapping of configurable Safety I/O ports

Total size: 64 bytes

Defined in: DRFS.h

typedef struct _CONFIG_CONFIGURABLE_IO_EX
{
    /* Safety I/O mapping table
       TYPE_LAST : number of I/O categories
       NUM_DIGITAL : number of channels per category
       (×2 for extended configuration area)
    */
    unsigned char _iIO[TYPE_LAST][NUM_DIGITAL * 2];

    /* trigger level (not used)
    unsigned char _bLevel[TYPE_LAST][NUM_DIGITAL];
    */

} CONFIG_CONFIGURABLE_IO_EX, *LPCONFIG_CONFIGURABLE_IO_EX;

Note

  • Extends CONFIG_CONFIGURABLE_IO to double the mapping space.

  • Allows customization for both safety-critical and user-defined I/O functions.

  • Typically used with system setup commands in the controller’s I/O configuration module.