Hey, how do I set n7:1 to 14 decimal..... Just kidding....
My real question is, I'm putting some code in a A-series PLC and the Main Progam had too many steps in it, so we had to create a SUB1 program. I have placed my code in this SUB1 program and figured out that I need to use a [CHG] Instruction. The only problem is that I have never used one before...
I read the manual IB_NA_66250-H and put the example code in.
MAIN PROGRAM
M9036
---| |---------------------(M9050)---
M9036 M9051 M9057
---|/|-----|/|-----|/|------[CHG]----
----------------------------[FEND]---
SUB1 PROGRAM
M9036
---| |---------------------(M9050)---
M9036 M9051 M9056
---|/|-----|/|-----|/|------[CHG]----
----------------------------[FEND]---
Now because M9036 is "Always on" this would prevent the code from ever being triggered. I switched the XIO (M9036) to be XIC and when I was online I saw that it was switching back and forth between the two programs, but not executing any of my code in the SUB1 Program.
can anyone help me with this? If you need me to elaborate any more, let me know.
Thanks,
Scott.
My real question is, I'm putting some code in a A-series PLC and the Main Progam had too many steps in it, so we had to create a SUB1 program. I have placed my code in this SUB1 program and figured out that I need to use a [CHG] Instruction. The only problem is that I have never used one before...
I read the manual IB_NA_66250-H and put the example code in.
MAIN PROGRAM
M9036
---| |---------------------(M9050)---
M9036 M9051 M9057
---|/|-----|/|-----|/|------[CHG]----
----------------------------[FEND]---
SUB1 PROGRAM
M9036
---| |---------------------(M9050)---
M9036 M9051 M9056
---|/|-----|/|-----|/|------[CHG]----
----------------------------[FEND]---
Now because M9036 is "Always on" this would prevent the code from ever being triggered. I switched the XIO (M9036) to be XIC and when I was online I saw that it was switching back and forth between the two programs, but not executing any of my code in the SUB1 Program.
can anyone help me with this? If you need me to elaborate any more, let me know.
Thanks,
Scott.