UL for Linux
User library to access and control supported MCC hardware over the Linux platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
E-DIO24

The E-DIO24 supports the following UL for Linux capabilities.

Unless otherwise indicated, the OEM version supports the same capabilities as the standard version.

Digital I/O

Ports:AUXPORT0, AUXPORT1, AUXPORT2
Bits:0 to 7
Functions:ulDIn(), ulDInArray(), ulDOut(), ulDOutArray(), ulDBitIn(), ulDBitOut(), ulDConfigPort(), ulDIOGetConfig()
Configuration:Config Item (Get): DIO_CFG_PORT_DIRECTION_MASK
Config Item (Set): DIO_CFG_PORT_INITIAL_OUTPUT_VAL

Counter

Counter argument:0
Functions:ulCIn(), ulCRead(), ulCLoad(), ulCClear()
Configuration:none

Device

Functions:ulFlashLed(), ulMemRead(), ulMemWrite(), ulDevSetConfig(), ulDevGetConfig(), ulDevGetConfigStr()
Configuration:Config Item (Get/Set): DEV_CFG_CONNECTION_CODE
Config Item (Get): DEV_CFG_IP_ADDR_STR, DEV_CFG_NET_IFC_STR

Settings memory map

The settings memory map is provided for advanced applications which require device configuration.
Note that default device settings are acceptable for most applications. If you need to change a device setting, however, the preferred method to use is InstaCal.

AddressValueDefauleValue
0x000-0x001Network options:
   Bit 0: 0 = DHCP enabled, 1 = DHCP disabled
   Bit 1: 0 = Auto IP enabled, 1 = Auto IP disabled
   Bit 2-15: reserved
0x0000
0x002-0x005Default IPv4 address192.168.0.101
0x006-0x009Default IPv4 subnet mask255.255.255.0
0x00A-0x00DDefault IPv4 gateway address192.168.0.1
0x00E-0x00FReserved 
0x010-0x011Reserved 
0x012-0x015Connection code, 4 bytes0x00000000
0x016DOut connection mode. This determines the DOut value when the connection status changes.
   0 = no change
   1 = apply specified tristate / latch values
0
0x017Reserved 
0x018DOut port 0 tristate mask for connection / disconnection (bits set to 0 are outputs, bits set to 1 are no change).0xFF
0x019DOut port 1 tristate mask for connection / disconnection (bits set to 0 are outputs, bits set to 1 are no change).0xFF
0x01ADOut port 2 tristate mask for connection / disconnection (bits set to 0 are outputs, bits set to 1 are no change).0xFF
0x01BReserved 
0x01CDOut port 0 latch value when host is connected.0x00
0x01DDOut port 1 latch value when host is connected.0x00
0x01EDOut port 2 latch value when host is connected.0x00
0x01FReserved 
0x020DOut port 0 latch value when host is disconnected.0x00
0x021DOut port 1 latch value when host is disconnected.0x00
0x022DOut port 2 latch value when host is disconnected.0x00
0x023-0x0FFReserved 

Note: The settings do not take effect until after the device is reset or power cycled.

If you are unable to communicate with the device after changing the settings section of memory, refer to the Restoring factory default settings section of the device user's manual.