Twido Slave Modbus connection testing?

Cristiansen

Member
Join Date
Dec 2013
Location
Cluj
Posts
1
Hello everybody!

I am having an issue I'm hoping someone here can help me with. I have a TWDLCAA24DRF plc which I have configured to act as a slave in MODBUS RTU communication. What I want to do is test the modbus connection via a TSXCUSB485 RS485 to usb converter.
I have downloaded the trial for Modbus Poll off of internet and I am trying to connect the PC (as a master) to the PLC (as slave) just to see if I can write a word from the PC to the PLC via Modbus.

I have turned the switch on the converter into position 3 (Other Direct) which, I suppose, connects pin 5 to 0V, so that the controller knows the connection is no longer a programming connection. However whenever i am attempting to connect to the controller in Modbus Poll I keep getting Timeout error.

The cable is connected int port no1 of the controller and the connection settings are:
Baud :19200
Data Bits: 8 (RTU)
Parity :none (recommended for port 1)
Stop bit: 1
Response timeout 1 sec
Time between frames 10 ms

Since the controller is a slave i Have set the adress of the port to 2.

Could anyone help me figure out what I'm doing wrong, or are there other Modbus master PC emulating programs which i could use that are easier to comprehend?:cry:

Thank you!
 
My suggestions for RS-485 are
- what virtual COM port is the USB-485 converter installed on? Is that the COM port you've selected in Modbus Poll? The COM port is shown in Windows Device Manager under Ports (COM & LPT).

- The 485 is probably 2 wire. Have you tried swapping the leads at one end? The labeling of A and B lines (or + and -) is not consistent between manufacturers. Although A should connect to A, sometimes A connects to B.

With Modbus in general, it's my experience that I'll never try to write until I can read a unique value (something other than zero) from a register. Getting a valid read of a known, confirmable value tells you the com link is working, and that you have the correct register, not one on before or after it.

Can you read values with Modbus Poll?

I'm not sure Modscan32 is any easier to use than Modbus Poll, but since I'm used to Modscan, I can set it up quickly. It runs for only 5 minutes before timing out in the trial mode, but can be restarted immediately.
 

Similar Topics

Hello, I am not new to PLC's but I am new to Twido. I am using Twido Suite 2.20.11 with a TWDLCAE40DRF. I cannot find a resource that explains...
Replies
3
Views
4,243
Hi guys!! I'm New here and new with this type of plcs i have TWDLMDA40DTK and i need to get a copy of the program and i don't have an original...
Replies
6
Views
685
Dear friend, how to read the input register (3xxxxx) of device from twido plc. i have tried the comm macro but it always read the holding register...
Replies
3
Views
1,567
Good, how do I control through an Analog output of a valve, that is, open the valve from 10% to 10% until it reaches 100%, and then close it...
Replies
4
Views
2,238
Hi! I bought a secondhand Twido base unit to help me learn programming and also faultfind expansion modules (one of my customers machines uses...
Replies
4
Views
1,685
Back
Top Bottom