omron — BITS program instruction

BITS program instruction BITS program instruction Syntax BITS first_sig, num_sigs = value Function Set or clear a group of digital signals based on a value. Usage Considerations Both external digital output signals and internal software signals can be referenced. Input signals must not be referenced. (Input signals are displayed by the monitor command IO 1.) No more than 32 signals can be set at one time. Any group of up to 32 signals can be set, provided that all the signals in the group are configured for use by the system. Parameters first_sig Real-valued expression defining the lowest-numbered signal to be affected.

num_sigs Optional real-valued expression specifying the number of signals to be affected. A value of 1 is assumed if none is specified. The maximum valid value is 32 . value Real-valued expression defining the value to be set on the specified signals. If the binary representation of the value has more bits than num_sigs, only the lowest num_sigs signals will be affected. Details Sets or clears one or more external output signals or internal software signals based on the value to the right of the equal sign. The effect of this instruction is to round value to an integer, and then set or clear a number of signals based on the individual bits of the binary representation of the integer.

All eV+ digital output instructions do not wait for a eV+ cycle, they turned on outputs immediately. However, digital inputs are checked every 2 milliseconds by the eV+ operating system. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 91