Vabs
Junior Member
Posts: 14
|
Post by Vabs on Aug 8, 2019 16:10:06 GMT
I am communicating HMI(350t) with pid controller using rs485, now I want to read data from HMI using modbud address with 2nd port, plz help with some eg so I can read data from hmi
|
|
Vabs
Junior Member
Posts: 14
|
Post by Vabs on Aug 9, 2019 5:25:38 GMT
sir i am reading reg address 4006 from PID controller on levi350t using re485, now i want to read same address from hmi using com2(rs485 or 232) on modscan 32 so plz help how to read this data
|
|
|
Post by gavra on Aug 9, 2019 14:25:34 GMT
Hello,
If You read address with HMI, that means the HMI is master. So You should use the same network and the same port 485. Just asign new station number on new device on the network. And make HMI send data to that new address(read from the pid controller first station, and send it to the second station). It could be done with address mapping in Settings meny, or with scripts. Make connection from HMI to PID controller, and from PID controller to the second station. Put 120 ohm resistors between first and the last connection points. Use twisted pair wires for connection.Put same communication parameters in all devices, except station numbers (HMI = 0, PID controller =1, new device = 2 ). And check in manual of the new device which address You should write in with HMI, so he would tagret the right registers in new device.
Bye
|
|
Vabs
Junior Member
Posts: 14
|
Post by Vabs on Aug 10, 2019 7:29:54 GMT
Thanks sir, actually my requirment is that, i am reading and wrighting data to the pid controller from him(350t) usnig rs485 modbus and its working fine....Now i have my own software, from that software i want to read data (and if possible wright data) from hmi to store in my pc using reg address, so it required two comm port hmi or single port? If any demo program or video is available please give me, vaibhavsabnees@gmail.com
Thanks in advance
|
|
|
Post by gavra on Aug 12, 2019 12:05:34 GMT
Hello,
1. If You have You own software, I suppose that software on PC would be master. So with one modbus network PC could be master, HMI slave, and PID regulator slave. So You could make Your software read from PID regulator, and write it to panel(so You could see results on HMI). And to read some register from HMI where You want to write set value, and write it to PID regulator with PC. This should be two way communication, and You could have all data in PC. This kind require only one 485 port on all devices.
2. If You want to make HMI master, and to exchange data between PC and PID regulator You need 2 485 ports on HMI. Because I suppose You also want PC to be master. So one network is HMI - PID regulator(with first 485 port), and second network is HMI - PC(with second 485 port).
I think first option is easier and better.
Bye
|
|
Vabs
Junior Member
Posts: 14
|
Post by Vabs on Aug 14, 2019 3:33:00 GMT
Thanx sir, i will try first one,for any query i will gate back you.
|
|
Vabs
Junior Member
Posts: 14
|
Post by Vabs on Aug 17, 2019 7:02:26 GMT
dear sir i am not able to communicate hmi with pc(modscan32 soft) using rs485, as my pid controller id is1 and it communicate with hmi. i set HMI no.2(hmi id), but whe i set device id 2 in modscan32 its not communicating. i am using single rs485 port of 350t to communicate with pc and pid controller
|
|
|
Post by gavra on Aug 19, 2019 9:45:46 GMT
Hello, You should pick Modbus RTU Master in communication of the HMI, so the panel would be slave. (RS485, Modbus, Modbus RTU master) Make all communication parameters same in all devices. Put 120 ohm resistors on both sides of 485 network. Set some registers on HMI screen (as numeric input) from HDW3500 up to HDW7999. HDW3500 is address 0 in Your modbus code (address where you write data to), and HDW3501 is address 1 ..... Also You can read from this addresses in same order 0 for HDW3500, 1 for reading address of HDW3501.... Take a look at picture from manual. Bye
|
|
Vabs
Junior Member
Posts: 14
|
Post by Vabs on Aug 20, 2019 5:24:06 GMT
thanx...its working fine
|
|
Vabs
Junior Member
Posts: 14
|
Post by Vabs on Aug 21, 2019 7:46:18 GMT
Sir if u know how to auto log off in user permission function by script or any other method let me know,ho to do that.
Thanx
|
|
|
Post by gavra on Aug 26, 2019 11:06:37 GMT
Hello,
Have You tried to set bit HSX10000.2
That should be Log out for user account.
And in script it could be set to wait some time , and then to auto set that bit, and reset it after a while.
Or it could be triggered when leaving current screen.(in screen script "close")
Bye
|
|
Vabs
Junior Member
Posts: 14
|
Post by Vabs on Aug 30, 2019 10:37:03 GMT
thanx sir.....its working thanx
|
|
|
Post by gavra on Aug 30, 2019 18:23:07 GMT
No problem,
I am glad I could help You.
Bye
|
|