Hello Guest it is July 07, 2020, 12:17:15 PM

Author Topic: macro to force oupt  (Read 2284 times)

0 Members and 1 Guest are viewing this topic.

macro to force oupt
« on: February 10, 2011, 04:41:36 AM »
 hi to everybody  :)

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 »

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: macro to force oupt
« 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
Re: macro to force oupt
« Reply #2 on: February 10, 2011, 08:00:14 AM »
ok Ian, thanks for the fast answer 
very kind 
regards 
moreno
Re: macro to force oupt
« 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

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: macro to force oupt
« Reply #4 on: February 10, 2011, 08:47:21 AM »
yes - my typing is quicker than my brain as usual  :)

Ian
Re: macro to force oupt
« Reply #5 on: February 10, 2011, 08:57:55 AM »
 :D :D
no problem
thanks

moreno