Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:15:49 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  macro to force oupt
Pages: 1   Go Down
Print
Author Topic: macro to force oupt  (Read 286 times)
0 Members and 1 Guest are viewing this topic.
riporeno
Active Member

Offline Offline

Posts: 20


View Profile
« on: February 10, 2011, 04:41:36 AM »

 hi to everybody  Smiley

as a macro can be made (example m300.m1s)  

what it forces an exit to 1(output #7) and another (example m301.1ms)  what does it to 0?  

the commanded signal, has to be also active after the reset
  
thanks  
  
moreno
« Last Edit: February 10, 2011, 04:47:32 AM by riporeno » Logged
stirling
Global Moderator
*
Online Online

Posts: 1,190

UK


View Profile WWW
« Reply #1 on: February 10, 2011, 07:39:51 AM »

Hi moreno

M300.m1s
activateSignal(OUTPUT7)

M301.m1s
deactiveSignal(OUTPUT7)

Add <space>M300 to the initialization string AND tick "use init string on ALL resets" both on the config/general config dialog.

Ian
Logged
riporeno
Active Member

Offline Offline

Posts: 20


View Profile
« Reply #2 on: February 10, 2011, 08:00:14 AM »

ok Ian, thanks for the fast answer 
very kind 
regards 
moreno
Logged
riporeno
Active Member

Offline Offline

Posts: 20


View Profile
« Reply #3 on: February 10, 2011, 08:34:50 AM »

m300 works 
m301 goes to error 
after some tests I have understood that the exact command is deactivateSignal(OUTPUT7) 
thanks   
good day 
moreno
Logged
stirling
Global Moderator
*
Online Online

Posts: 1,190

UK


View Profile WWW
« Reply #4 on: February 10, 2011, 08:47:21 AM »

yes - my typing is quicker than my brain as usual  Smiley

Ian
Logged
riporeno
Active Member

Offline Offline

Posts: 20


View Profile
« Reply #5 on: February 10, 2011, 08:57:55 AM »

 Cheesy Cheesy
no problem
thanks

moreno
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!