All BASIC commands
Section 4-2
204
/i
/i
Example
A sheet of glass is fed on a conveyor and is required to stop 250 mm
after the leading edge is sensed by a proximity switch. The proximity
switch is connected to the registration input:
MOVE(10000) 'Start a long move on conveyor
REGIST(3) 'set up registration
WAIT UNTIL MARK
'MARK becomes TRUE when sensor detects glass edge
OFFPOS = -REG_POS 'set position where mark was seen to 0
WAIT UNTIL OFFPOS=0 'wait for OFFPOS to take effect
MOVEMODIFY(250) 'change move to stop at 250mm
Example
A paper feed system slips. To counteract this, a proximity sensor is posi-
tioned one third of the way into the movement. This detects at which
position the paper passes, and thus how much slip has occurred. The
move is then modified to account for this variation.
paper_length=4000
DEFPOS(0)
REGIST(3)
MOVE(paper_length)
WAIT UNTIL MARK
slip=REG_POS-(paper_length/3)
offset=slip*3
MOVEMODIFY(paperoffset)
SENSOR SEEN
250mm
ORIGINAL MOVE
SENSOR
Summary of Contents for trajexia CJ1W-MCH72
Page 69: ...Specifications Section 2 4 58...
Page 83: ...FINS commands Section 3 4 72...
Page 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 277: ...All BASIC commands Section 4 2 266...
Page 371: ...360 Index...
Page 373: ...362...