Instruction Manual

166 Inputs / Outputs Introduction
Publication 1398-PM601A-EN-P October 2000
TUTORIAL
Inputs / Outputs
Introduction
Inputs and outputs can be read and set as individuals or in groups. Groups of inputs can be read in a
binary (BIN) format or binary coded decimal (BCD) format. Outputs can be set in BIN or BCD format
or set all at one time.
I/O Instruction Summary
The following is a summary of the commands that can be used set outputs and read inputs. Refer to
Part 5 Language Reference for more detailed information.
Name Description
ALL ON/OFF Turn all outputs ON or OFF
BCD Om,n = variable Set a group of outputs to the BCD value of the variable
BCD variable = Im,n Read a group of inputs as a BCD value into the variable
BIN Om,n = variable Set a group of outputs to the binary value of the variable
BIN variable = Im,n Read a group of inputs as a binary value into the variable
DACn = value Set the DACn output to a voltage
Fn = Im Set a Flag ON if the input is ON and OFF if it is OFF
Om = Fn Set an output to the state of the F variable
Om = ON/OFF[,T = time] Turn an output ON or OFF
variable = ADCn Read the value of an analog to digital converter