Skip to Content
On this page

ICP DAS DCON

This plugin uses ICP DAS DCON ASCII commands to read industrial I/O module bits and write outputs supported by the module. It is named ICP DAS DCON in the device selector.

See Collection Configuration for common channel, device, variable, and data-format settings. This page covers only the DCON station, address options, and debug.

Compatible devices and models

Device series / model examplesConnection requirements
I-7000 modules supporting the corresponding digital commandsUse DCON ASCII mode with @AA digital-state and matching output commands. Match station, checksum and serial settings. Analog commands and Modbus-only modules require their corresponding protocol entry.

Configure a digital module in DCON Utility

Use ICP DAS DCON Utility to discover the module and inspect its station, baud rate, mode and digital I/O. This entry uses @AA digital-state commands and the corresponding output command; selecting Float does not add analog #AA commands.

  1. Match DCON ASCII, serial settings and the command’s no-extra-checksum response format. Release the utility’s serial port before starting the gateway.
  2. Use a serial channel or an unchanged ASCII tunnel. Set the actual decimal station; station 1 is formatted as hexadecimal 01 on the wire.
  3. Add read-only Boolean Input0, array length 1, address 0. Identify the input/output bit mapping in the module command table. This command returns one 16-bit status word; use indexes 0–15 and compare a known input in Utility before adding points.
  4. s=2;0 overrides the decimal module station. Network host, DTU identity and DCON station are separate settings.

The editor’s Write bytes (w=) selects an output data-field format, not an arbitrary register byte count. Current values 1/2 format the status high byte as at least one/two hexadecimal digits; 3/4 format the low 16 bits as four digits. Match the exact module command; do not assume w=4 controls every I-7000 module.

Writes support one Boolean value, with array length 1 and a bit index below 16. The plugin reads the state, modifies one bit and writes it back. Concurrent control of the same output word can race, so confirm the actual output in Utility and the device.

Digital points at the same station and polling interval share a status-word request. Increasing Maximum batch length does not add physical channels or change the response into analog data.

Open the plugin

Open Development Configuration → Collection Configuration, create a TCP client, TCP server, serial, or UDP channel matching the field link, then create a device using ICP DAS DCON.

For a direct serial link, add or edit the associated channel from the device’s Basic Information tab and select SerialPort. Enter the operating system’s COM port and match baud rate, data bits, parity and stop bits to the module. COM1 / 9600 / 8 / None / 1 below is an example; it does not change the module settings. Wire a two-wire RS-485 link to DATA+ and DATA− according to the terminal labels, and assign different stations to modules on the same bus. Enable DTR/RTS only when required by the converter.

DCON serial COM port, baud rate, data bits, parity and stop bits

Select ICP DAS DCON, associate that channel and set the collection interval. 1000 schedules collection once per second. Configure properties and variables before enabling the channel and device. Variable collection does not require Allow method calls.

ICP DAS DCON device plugin, associated channel and interval

Supported scope

ItemDescription
ChannelsTCP client, TCP server, serial, and UDP.
Digital variableUse Boolean, array length 1, and the corresponding status-word bit.
Type selectorOther common integer, floating-point and string types do not change the @AA command or add analog access. Writes support a single Boolean only.

Plugin properties

Open the device Plugin Properties, confirm its station and enter connection settings for the selected link. Leave DTU ID and heartbeat empty for a direct serial connection.

DCON station, packing and DTU fields

SettingDefaultDescription
Default station1Enter the module’s decimal station from Utility. The command formats it as two hexadecimal digits. An address with s=2 selects station 2. This is separate from the COM number and DTU identity.
Maximum batch length100Common packing setting retained by this entry; digital points share a status-word read for each station and interval. Changing it does not change the @AA response width.
DTU IDEmptyMatch the registered connection identity when using a TCP server in DTU mode. Leave empty for direct serial and ordinary TCP client links. This is not the module station.
HeartbeatEmptyApplies only to TCP server default DTU mode. A value overrides the channel heartbeat; empty inherits it. Do not use a DCON read command as a DTU heartbeat.
Heartbeat HexOffOff matches UTF-8 text; on matches hexadecimal bytes. This changes heartbeat encoding, not station/address syntax or the channel’s DTU identity encoding.
Read/write timeout3000 msTime allowed for a module response. Include converter and serial transmission delays. Repeated timeouts require checking station, checksum mode and serial format first.
Pre-frame delay0 msWait before a request. Set it when the module requires a minimum interval; a longer delay reduces polling speed.
Data orderABCDCommon multibyte options also include BADC, CDAB and DCBA. Keep the default for bit collection; changing order does not change channel mapping or add analog commands.
String byte/word reversalOffCommon string reordering option. Boolean points do not require it; enabling it does not add other module string commands.
Retry count3Retry setting after a failed request. A high value keeps an offline module on the serial bus longer; correct wiring and station errors first.
Read/write duty cycle3, minimum 1During continuous writes, schedule a read after the configured number of writes. Keep the default for read-only collection; adjust to the required state-refresh rate for output control.
Write priorityOffEnables writes to cancel a pending read and take priority. Keep off when a stable polling interval is needed and frequent writes would interrupt reads.

Set response timeout, pre-frame delay, retries and read/write scheduling in the lower part of the properties tab. Keep data order ABCD and string reversal off for Boolean bit collection.

DCON response timeout, retries, write priority and string reversal

In the right column, Pre-frame delay sets the wait before a request and Read/write duty cycle sets the read frequency during continuous writes. Keep the default data order for Boolean bit mapping.

DCON pre-frame delay, read/write duty cycle and data order

Address rules

Add or edit Input0 under Real-time Variables. Select read-only Boolean, array length 1, and address 0.

DCON Input0 name, Boolean type, address and read-only access

Confirm the associated device in the right column and keep array length 1. Enable collection after completing the variable settings.

DCON variable device, enable switch and array length

Open the address editor beside the variable address. Enter Channel or bit index, then optionally Station override and Write bytes. An empty station inherits the device setting; empty Write bytes uses 1. The editor can produce 3;s=2;w=4; prefix options shown below are also accepted.

The example below expands both optional overrides: bit index 0, station 1, and write format 1. Input reads can leave these overrides unchecked and inherit the device station. Set w= only when selecting the module output format.

DCON bit index, station override and write-format fields

Address fieldHow to fill it
Channel or bit indexThe editor accepts decimal 0–31; the command response contains only 16 bits, so digital points use 0–15. Match input/output mapping to the module command table.
Station overrideOptional decimal station, encoded as s=. Selects a module per variable on a shared bus; omit when the device station is correct.
Write bytesOptional 1–4, encoded as w=. Selects the output data-field format described above; it does not increase the data returned by a read.
ExampleDescription
0Reads bit 0 at the default station.
s=2;0Reads bit 0 at station 2.
w=2;0Selects the high byte formatted as at least two hexadecimal digits; use only with a matching module output map.
s=2;w=4;3Changes bit 3 at station 2 and sends the low 16 bits as four hexadecimal characters.
  • w accepts only 1, 2, 3, or 4.
  • The bit index for a Boolean write must be below 16.
  • Verify that the bit is an output channel before sending a write command.

No additional plugin-specific variable properties are required. Set inputs to read-only Boolean with array length 1. If the module table maps DI0 to bit 0, address 0 should show true when DI0 is on and false when off. If DI0 is mapped to bit 8, use address 8; do not swap byte order to compensate for an incorrect bit index.

Special methods

This plugin has no additional special methods. Variables use DCON addresses directly.

Device debug

Open Development Configuration → Collection Configuration, select the DCON device, open Protocol Debug at the top of the workspace.

FeaturePurpose
Read/WriteReads one DCON bit address or performs an approved write.
MessagesShows ASCII requests, responses, and connection logs.

Read/Write

Enter the bit address, data type, and array length. Read a known channel first and write only after verifying the module and site state.

Select Boolean, array length 1, and a confirmed input address such as 0. Compare it with the module’s DI monitor. For an output, use its mapped bit and true / false. Non-Boolean writes and Boolean array writes are unsupported.

Messages

Start message capture to verify the station, address, write length, request, response, and module result.

For station 1, a read request is ASCII @01 followed by CR (hexadecimal 40 30 31 0D). Its response is >, four hexadecimal status digits and CR. Check the module’s response format; checksum-bearing frames, analog responses and other protocols do not use this parser format.

Verify the configuration

  1. Read one known input bit and verify the station, bit index, and field state.
  2. Confirm a valid ASCII request and response under Messages.
  3. Write only an approved output bit and immediately verify the module and field state.

Troubleshooting

SymptomCheck
Module does not respondChannel, serial settings, station, network, and module protocol mode.
Address cannot be parseds=, w=, semicolons, and bit-index format.
Write is rejectedBit index below 16, w from 1 to 4, and target is an output channel.
State does not match the fieldStation, bit index, data type, and module channel mapping.