Try to write simplest program for PLC CP1L, Omron. Use CX-One, CX-programmer. I want to connect a button to PLC and set a boolean flag on press.
I realized how to connect a button, made a symbol with type BOOL and address W0.00 (first word of work area, zero bit).
Then in program section connect a instruction MOV to my button. Point "Source" argument - digit "1", "Destination" argument - my boolean symbol name.
Try to compile - and get a error, Operand 2 out of range. Why it do not want to use my bool symbol?
Tried to make my symbol, for example, INT - compile OK.
How should I set boolean flag correctly? Where can I read about it? I barely can realize how to make a search request for google...
I realized how to connect a button, made a symbol with type BOOL and address W0.00 (first word of work area, zero bit).
Then in program section connect a instruction MOV to my button. Point "Source" argument - digit "1", "Destination" argument - my boolean symbol name.
Try to compile - and get a error, Operand 2 out of range. Why it do not want to use my bool symbol?
Tried to make my symbol, for example, INT - compile OK.
How should I set boolean flag correctly? Where can I read about it? I barely can realize how to make a search request for google...