Serial WriteBytes

Hello,

I’m trying to send the following hex values to a serial device using the system.serial.writeBytes() function: \x01\x01\x00\x00\x00\x0A\xBC\x0D

Can anyone assist me with how to convert that line of hex into the java.lang byte[] that Ignition is looking for? I’m been struggling with this all morning.

I discovered after reading many forum posts that once the serial module is installed a Modbus RTU (over serial link) device appears in the selection list when adding a device to OPC-UA.

Once I configured my device I was able to create tags as usual using modbus addresses.