Issue
How to read the Modbus device's register and, via Menta in a Xenta 700, convert the value in to the 4 bytes required to bind these values to the SNVT_preset member Value.
Environment
- Vista 5.1.X
- Communication with a Modbus device.
- Xenta 700 5.1.X (Menta)
Cause
SNVT_preset includes a member value[4] which is an unsigned long containing 4 bytes. Modbus contains only 16 bit registers. The SNVT member Value is shown as 4 separate bytes in Vista.
Resolution
Click here to download an Xbuilder project containing the correct Menta file to convert from a Modbus register to the 4 bytes that the member Value contains.
Instructions:
- Download the zip file and extract the Xbuilder project.
- Open the Xbuilder project and change the IP address to your device's IP address.
- Download the project to the Xenta server and save to Vista.