Omron trajexia CJ1W-MCH72 Operation Manual page 106

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
4-2-24 AIN
4-2-25 ALL
/i
Type
I/O command
Syntax
AIN(analogue_chan)
Description
The AIN reads a value from the AIN array. The CJ1W-MCH72 does not
provide any analogue input. The contents of the AIN array may be
mapped to PLC memory to get values from e.g. PLC analogue input
units.
Arguments
analogue_chan.
Analogue input channel number 0..31
Example
MOVE(-5000)
REPEAT
a=AIN(1)
IF a<0 THEN a=0
SPEED=a*0.25
UNTIL MTYPE=0
The speed of a production line is governed by the rate at which material
is fed onto it. The material feed is via a lazy loop arrangement which is
fitted with an ultra-sonic height sensing device. The output of the ultra-
sonic sensor is in the range 0V to 4V where the output is at 4V when the
loop is at its longest.
Note: The analogue input value is checked to ensure it is above zero
even though it always should be positive. This is to allow for any noise
on the incoming signal which could make the value negative and cause
an error because a negative speed is not valid for any move type except
FORWARD or REVERSE.
See also
N/A
/i
Type
Slot modifier
Syntax
ALL
Description
The ALL modifier is used with the commands DEL and NEW. It indi-
cates that these commands are applied to all items in the directory
structure of the controller.
Arguments
N/A
Example
DEL ALL
This deletes all programs of the controller.
See also
DEL, NEW.
Section 4-2
95

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents