On this page
Yudian AI-BUS
Read and write instrument parameters with Yudian AI-BUS. Enter decimal parameter codes and apply the decimal scaling defined for the instrument model.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| Yudian AI-series instruments supporting AI-BUS | Select AI-BUS mode and match station, serial settings and parameter addresses. Use a Modbus plugin for Modbus mode. |
1. Select AI-BUS on the instrument
The upper AI-516/516P display shows PV or the parameter name; the lower display shows SV or the value. The circular-arrow button is Setup, followed by the shift, decrease and increase buttons. COMM indicates communication activity.

- From the normal display, hold Setup for about 2 seconds to enter the field parameter list. Use shift/decrease/increase to edit, and Setup to save and advance. If an item is absent, follow the instrument’s
Locparameter instructions to access the complete list. - Check these communication settings.
AFCcombines options: preserve the AUX function when changing protocol or parity.
| Panel parameter | Setting and gateway mapping |
|---|---|
Addr | Decimal 0–80 for AI-BUS, 1 in the example, unique on the bus. Use the protocol range even when the panel accepts a larger number. |
bAud | Communication baud rate, 9600 here. Small values 0/1/2/3/4/8/12 can select non-communication functions on this model; they are not baud-rate indices. |
AFC | V9.18 uses A + 8×D + 64×G: A=1 selects AI-BUS; D=0 no parity, D=1 even parity; preserve the AUX choice G. Normal AUX/no parity is 1; normal AUX/even parity is 9. |
dPt | Defines scaling of measurements and parameters with the same units. Record it before converting raw integers to engineering values; it is not byte order. |
- This example uses
Addr=1,bAud=9600,AFC=1, matched by gateway9600 / 8 / None / 1. For even parity select Even in the gateway too. Match stop bits to the instrument configuration.
See pages 23, 27 and 41–45 of the AI-516/516P V9.18 manufacturer manual . For other versions, use the model-specific parameter and scaling tables in Yudian communication protocols .
2. Wire and create a channel
Verify that the correct RS-485 module is fitted, such as S/S4 in this manual. The standard-depth rear-terminal drawing below uses COMM 3=A(+), 4=B(-). Other cases, particularly D2/D6, have different terminals; use their own wiring diagram.

Wire with power off, using twisted pair and bus termination appropriate to the installation. One master polls the bus; do not let another debugging application open the same COM port and transmit simultaneously.
Open Development configuration → Collection configuration and add a SerialPort channel. Select the actual COM port; COM1 in the image is an example. Match baud rate, data bits, parity and stop bits.

For a transparent serial server use TCP client with its IP/raw port and configure serial settings at the converter. For an incoming DTU connection use TCP server. Both carry AI-BUS frames; do not enable Modbus TCP conversion.
3. Select the device and plugin properties
Add a Yudian AI-BUS device and associate the channel. The example execution interval is 1000 ms. Check settings before enabling the channel, device and variables. See Collection configuration for shared device fields.

Plugin properties: station and connection
| Parameter | Setting and effect |
|---|---|
| Default station | Default 0, decimal 0–80. Change it to 1 for the example, matching instrument Addr=1. Used when an address has no station override. Station numbers must be unique on an RS-485 bus. |
| DTU ID | For a DTU connecting to the TCP server, enter its connection identifier. Leave blank for a direct serial link or ordinary transparent TCP client. |
| Heartbeat content | Applies only to the TCP Server default DTU mode. Overrides the channel heartbeat when filled; blank inherits the channel setting. Match what the DTU sends. |
| Heartbeat hex | Off by default: match UTF-8 text. When on, match hexadecimal bytes. This changes the heartbeat representation, not the instrument protocol. |


Plugin properties: timing and scheduling
| Parameter | Setting and effect |
|---|---|
| Read/write timeout | Default 3000 ms. Maximum wait for a request response. Allow for instrument response time and link latency; a short timeout causes false failures, while a long one delays disconnect detection. |
| Pre-frame delay | Default 0 ms. Adds a delay before sending for instruments or converters requiring a frame interval. Increase according to their requirements; a larger delay slows polling. |
| Failure retry count | Default 3. Controls retries after a failed request. Correct the station, serial format and wiring before increasing it, to avoid occupying the bus with repeated failures. |
| Read/write duty cycle | Default 3, minimum 1. With continuous writes, schedule a read after n writes. A smaller number keeps collected values fresher. |
| Write priority | Off by default. When enabled, writes take priority and can cancel an active read. Repeated writes affect collection updates; enable only when lower control latency is required. |

| Data-format parameter | Use with this plugin |
|---|---|
| Reverse string byte words | Off by default. Text is converted from the same 16-bit number, not from a multiword string. |
| Data parsing order | Default ABCD; choices are ABCD, BADC, CDAB, DCBA. AI-BUS parses a fixed little-endian signed 16-bit parameter; this option does not apply decimal scaling. Keep the default. |

4. Parameter codes, types and decimals
In the manufacturer single-loop parameter table, code 0 is set value SV, 1 is HIAL high-limit alarm and 12 is dPt. They are not universal PV registers. Confirm the table for the actual model.
Create Parameter0Raw under this AI-BUS device with address 0, type Int16, read-only, array length 1. Compare the raw integer to the instrument setpoint first.

Open Field editor beside the address:
| Address field | Rule |
|---|---|
| Parameter code | Decimal 0–255, default 0. Use the AI-BUS parameter code for the model. Do not enter 40001 or hexadecimal 0C: dPt is decimal 12. |
| Station override | Unchecked inherits the device station. When checked, use 0–80. Station 1 and parameter 0 produce s=1;0. This selects another instrument, not another parameter meaning. |


Each native parameter is a little-endian signed 16-bit integer. Int32, Float, Double and Decimal convert that same parameter rather than combining successive parameters; String returns the raw integer as text. Unsigned types cannot represent negative values. Boolean converts zero to false and nonzero to true, suitable only for parameters defined as switches. Use one variable per parameter, array length 1. There are no extra plugin-specific variable properties.
With 0.1 resolution, a panel SV of 23.5 corresponds to raw parameter 0 value 235. Divide by 10 in the read conversion for engineering values and apply the inverse multiplication on write. Float or ABCD/BADC does not insert a decimal point. For code 12, interpret dPt according to the communication manual, including division by 10 for same-unit parameters when dPt≥128.
5. Read and write
After enabling collection, compare Parameter0Raw to instrument SV, not PV. Alternatively read address 0, Int16, length 1 in Protocol debugging → Read/write. Use Messages to check station, parameter and reply.
To change SV, first check that instrument Loc permits communication writes to SV and give the variable write access. For one decimal place, target SV 100.0 requires raw integer 1000; read parameter 0 again and compare panel SV. With an engineering-value variable, configure the inverse write conversion before writing 100.0. Raw writes must be integers within -32768–32767 and within the instrument setpoint limits; do not send a fractional raw value or an array.
Troubleshooting
- No reply: check the COMM module, AI-BUS mode, Addr, serial format and exclusive ownership of the serial port.
- Value differs by a factor of 10 or 100: check dPt and the parameter units, then correct the conversion rather than swapping bytes.
- Value
32767: the manufacturer protocol uses it for an invalid or inapplicable parameter code. Check the model’s table. - Written value is limited: the instrument may clamp it to the permitted range. Read it back instead of relying on transmission completion.
- Reads work but writes do not: check variable access, Loc communication restrictions and model support for the target parameter.
Related operations
- Collection configuration: conversions, shared fields and permissions.
- Plugin index: other collection protocols.