UL for Linux
User library to access and control supported MCC hardware over the Linux platform
|
The TC-32 supports the following UL for Linux capabilities.
Channels: | 0 to 31 0 to 63 if the TC-32-EXP is attached - see ulDevGetConfig()/DEV_CFG_HAS_EXP below |
TIn flags: | TIN_FF_DEFAULT, TIN_FF_WAIT_FOR_NEW_DATA |
TInArray Flags: | TINARRAY_FF_DEFAULT, TINARRAY_FF_WAIT_FOR_NEW_DATA |
Functions: | ulTIn(), ulTInArray(), ulAIGetConfig(), ulAISetConfig() |
Configuration: | Config Item (Get/Set): AI_CFG_CHAN_TC_TYPE, AI_CFG_CHAN_TYPE, AI_CFG_OTD_MODE, AI_CFG_REJECT_FREQ_TYPE, AI_CFG_CAL_TABLE_TYPE Config Item (Get): AI_CFG_CAL_DATE_STR, AI_CFG_EXP_CAL_DATE_STR |
Ports: | FIRSTPORTA, FIRSTPORTB SECONDPORTA, SECONDPORTB if the TC-32-EXP is attached - see ulDevGetConfig()/DEV_CFG_HAS_EXP below |
Bits: | FIRSTPORTA: 0 to 7 FIRSTPORTB: 0 to 31 SECONDPORTA: 0 to 7 SECONDPORTB: 0 to 31 |
Functions: | ulDIn(), ulDOut(), ulDBitIn(), ulDBitOut(), ulDIOGetConfig(), ulDClearAlarm() Call ulDevGetConfig() with the DEV_CFG_HAS_EXP configItem to determine the number of valid digital ports. |
Configuration: | Config Item (Get): DIO_CFG_PORT_DIRECTION_MASK |
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, DEV_CFG_HAS_EXP |
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.
Address | Value | DefauleValue |
0x00-0x01 | Network options: Bit 0: 0 = DHCP enabled, 1 = DHCP disabled Bit 1: 0 = Auto IP enabled, 1 = Auto IP disabled Bit 2-15: reserved | 0x0000 |
0x02-0x05 | Default IPv4 address | 192.168.0.101 |
0x06-0x09 | Default IPv4 subnet mask | 255.255.255.0 |
0x0A-0x0D | Default IPv4 gateway address | 192.168.0.1 |
0x0E-0x0F | Reserved | |
0x10-0x11 | Reserved | |
0x12-0x15 | Connection code, 4 bytes | 0x00000000 |
0x16-0x1F | Reserved |
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.