omron — SETDEVICE program instruction

SETDEVICE program instruction device type being accessed. Details SETDEVICE is a general-purpose instruction for initializing external devices. It initializes the software and allows various parameters associated with the device to be set. Two standard SETDEVICE commands are recognized by all devices: command = 0 Initialize device This command should be issued once before accessing the device with any other command. Normally, no additional parameters are required, but some device types may permit them. command = 1 Reset device This command resets the device. Normally no additional parameters are required, but some device types may permit them.

See the supplementary documentation for specific devices for details and examples. For information on using the SETDEVICE instruction to access external encoders, see the section External Encoder Device in the eV+ Language User's Guide . Related Keywords DEVICE program instruction DEVICE real-valued function DEVICES program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 468