Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 07:17:15 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  How to send DRO´s values to PLC trough modbus via VB
Pages: 1   Go Down
Print
Author Topic: How to send DRO´s values to PLC trough modbus via VB  (Read 183 times)
0 Members and 1 Guest are viewing this topic.
fer_mayrl
Global Moderator
*
Offline Offline

Posts: 332


View Profile
« on: August 21, 2008, 01: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
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Online Online

Posts: 770


Briceville, TN, USA



View Profile WWW
« Reply #1 on: August 25, 2008, 09: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
Logged

All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
fer_mayrl
Global Moderator
*
Offline Offline

Posts: 332


View Profile
« Reply #2 on: August 26, 2008, 04: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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!