Welcome, Guest. Please login or register.
Did you miss your activation email?
December 05, 2008, 10:26:36 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Third party software and hardware support forums.
| |-+  Modbus
| | |-+  Using Mod I/O and building screens
Pages: 1   Go Down
Print
Author Topic: Using Mod I/O and building screens  (Read 1346 times)
0 Members and 1 Guest are viewing this topic.
rkowash
Active Member

Offline Offline

Posts: 31


View Profile
« on: December 15, 2006, 02:10:41 PM »

I am trying to build a screen which will control my DL06 over the modbus.  It is communicating, I can read the inputs and force the outputs from the setup modus in Mach3.  I am trying to correllate input 1 to an LED on a screen, but the pin 1 doesn't do it.  I am thinking this is really easy, I just can't get it.

 Huh
Logged
Graham Waterworth
Administrator
*
Offline Offline

Posts: 1,175


West Yorkshire, England



View Profile WWW
« Reply #1 on: December 15, 2006, 03:58:56 PM »

If you want the LED to reflect the input without you clicking something then the code has to run in the MacroPump.

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
rkowash
Active Member

Offline Offline

Posts: 31


View Profile
« Reply #2 on: December 15, 2006, 04:06:07 PM »

What I have is a prox sensor, and I want the LED to confirm it is active.  Do you still require the MacroPump?  Is it the same for Outputs?  Say I want to activate Y3 on the PLC, can I just use the Modbus # to fire it?
Logged
Graham Waterworth
Administrator
*
Offline Offline

Posts: 1,175


West Yorkshire, England



View Profile WWW
« Reply #3 on: December 15, 2006, 05:35:35 PM »

It depends on what you are using to do the task.

If all this is done using a button click or an M command macro then the VB behind the button or in the M macro can do this.  It can fire the output and then turn on your LED, or wait for the input to trigger and turn on the LED.

If the input is turned on by an outside control that Mach did not start then the code has to go in the macropump, then Mach will run the macropump vb code about 20 times a second and check the inputs and do what ever your code tell it to do.

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
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!