Hello Guest it is April 27, 2024, 12:42:16 AM

Author Topic: How to send DRO´s values to PLC trough modbus via VB  (Read 3631 times)

0 Members and 1 Guest are viewing this topic.

How to send DRO´s values to PLC trough modbus via VB
« on: August 21, 2008, 02:15:50 PM »
HEllo guys,
well, im trying to set up a bunch of timers in my DL05 plc.
Thing is i want mach3 to work as a HMI, have a page with a bunch of dros that represent the timer values.

Send the numbers in the dro´s to the plc to work as timer parameters.

Anyone know how to do this?

i guess i could do this in VB, but i dont want to have the sequential outputs that VB must have.
I could do this in brains, but I cant send the dro´s to timers there.

Any ideas?

Regards
Fernando

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: How to send DRO´s values to PLC trough modbus via VB
« Reply #1 on: August 25, 2008, 10:57:24 PM »
you can do it in brians,

ie. lets say UserDRO 2000 is where you put your timer value you want to send out.

in brain, put your input as UDRO2000>no op>serial modbus 0

so in your serial set up, the local var 0 would have the value of UDRO 2000 and send that to your register in your PLC.

If you want to do "Floating point" values then you will need to send two seperate 16 bit registers out, to two differnt registers in your plc, then combine the at the PLC side, you can send them back the same way, by first seperating your floating point values to two seperate register back to mach.

scott
fun times
Re: How to send DRO´s values to PLC trough modbus via VB
« Reply #2 on: August 26, 2008, 05:00:17 PM »
Cool!
I tried that with no success... now that I know it should work, I can try it again and commit this time.

Thansk!
Fernando