Set Multiple Bits in one Instruction - SETA Omron PLC Programming

SETA Omron PLC Programming Instruction :-

We all know about the popular SET instruction which is available in all the PLC used for SET of a particular bit. Think if we some time need to set more than one bit at a time , than this instruction can be beneficial. The instruction is available in all the omron PLC for setting multiple bits at a time.

Instruction Syntax :- SETA D N1 N2

where :- D is the beginning word ,N1 is the beginning bit in D and N2 is the number of Bits.

For example if we write that SETA d200 #5 #4

then when this instruction is executed than the bit no 5 to 9 are set in D100.

SETA(530) turns ON N2 bits, beginning from bit N1 of D, and continuing to the left (more-significant bits). All other bits are left unchanged. (No changes will be made if N2 is set to 0.)Bits turned ON by SETA(530) can be turned OFF by any other instructions, not just RSTA(531).

Download.