![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585215.webp)
All BASIC commands
Section 4-2
203
/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
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...