dandrummerman21
Stainless
- Joined
- Feb 5, 2008
- Location
- MI, USA
Someone trashed a tool today because a hard switch for coolant auto was not turned on.
I would like to edit the ladder (i have LADDER III) and have already done so. I've even tried what I thought might work but hit a snag, as it doesn't do what I want it to. I'm sure it's relatively simple.
The status of R291.3 turns to 1 when the auto switch is on. I want to write a quick subprogram (called with m-code) that checks if the switch is on.
I figured I would choose #1115 as a user macro output for my check program.
So what I thought I wanted was:
---|\|------------0---
R291.3 F55.7(uo015)
However, fladder doesn't let me use f55.7, says cannot be written to. So I tried G55.7(ui015)
---|\|----------------0---
R291.3 G55.7(UI015)
This ladder compiled. And I loaded it into the machine. But doesn't seem to change any user macro variable at all (#1000-1015 / #1100-1115) when I toggle the switch.
What am I getting wrong here? And does anyone have a suggestion how I should write it?
I would like to edit the ladder (i have LADDER III) and have already done so. I've even tried what I thought might work but hit a snag, as it doesn't do what I want it to. I'm sure it's relatively simple.
The status of R291.3 turns to 1 when the auto switch is on. I want to write a quick subprogram (called with m-code) that checks if the switch is on.
I figured I would choose #1115 as a user macro output for my check program.
So what I thought I wanted was:
---|\|------------0---
R291.3 F55.7(uo015)
However, fladder doesn't let me use f55.7, says cannot be written to. So I tried G55.7(ui015)
---|\|----------------0---
R291.3 G55.7(UI015)
This ladder compiled. And I loaded it into the machine. But doesn't seem to change any user macro variable at all (#1000-1015 / #1100-1115) when I toggle the switch.
What am I getting wrong here? And does anyone have a suggestion how I should write it?