omron — BITS program instruction

BITS program instruction Examples Set external output signals 1-8 (8 bits) to the binary representation of the current monitor speed setting: BITS 1,8 = SPEED(1) If the monitor speed were currently set to 50% (0011 0010 binary), then signals 1-8 are set as follows after this instruction: signal 1 -> 0 (off) signal 5 -> 1 (on) signal 2 -> 1 (on) signal 6 -> 1 (on) signal 3 -> 0 (off) signal 7 -> 0 (off) signal 4 -> 0 (off) signal 8 -> 0 (off) Set external output signals 5-9 (4 bits) to the binary representation of the BCD digit 7: BITS 5,4 = BCD(7) Set external output signals 1-8 (8 bits) to the binary representation of the constant 255, which is 11111111 (binary).

Thus, signals 1-8 will all be turned on: BITS 1,8 = 255 Related Keywords BITS real-valued function IO monitor command RESET monitor command SIG real-valued function SIG.INS real-valued function SIGNAL monitor command SIGNAL program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 92