Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: fer_mayrl 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
-
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
-
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