Sign in to follow this  
Followers 0
EkremVK

IQ-F FX5U Predefined Protocol Support Function to Implement Modbus ASCII

1 post in this topic

Posted (edited)

Hi all!

I'm trying to read data from a magnetic sensor of Roboteq's called MGSW1600. The sensor allows Modbus ASCII communication with RS232 interface. I'm already using a RS232-RS485 converter but that's not enough to communicate. In attachments, you can find the related settings of the sensor for communication and packet structure for sending and receiving data.

I've tried using non-procedural communication and did all the settings but I guess sumcheck here is CRC, not LRC as denoted in the sensor's datasheet, moreover, I couldn't figure out how to sent all the necessary information to the sensor (node address, function code, register address to read from, number of registers to read) using RS2 function block. So, I'm thinking of using Predefined Protocol Support Function as soon as I obtain the necessary devices I ordered online. I also added Predefined Protocol Support Function settings in the attachments.

I need help with the ladder program and confirmation of settings or any other idea about how I can establish communication between FX5U's built-in Modbus RTU RS485 port and Modbus  ASCII RS232 sensor.

Packet Structure for Sending and Receiving Data.png

Serial Communication Settings of the Sensor.png

Predefined Protocol Function Settings 1.png

Predefined Protocol Function Settings - Send Packet.png

Predefined Protocol Function Settings - Receive Packet.png

Edited by EkremVK

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0