使用photoeyes的blocked procedure和cleared procedure,例如:$ g- ^0 j. ~" t( ]8 V9 s8 t/ _
begin Conveyor.Photoeyes1 blocked procedure, B( V$ _$ ]; @4 z% C D
if the load color = red then begin : j+ W/ L4 {2 U3 c) y! M travel to ........ 7 z; n; r- p6 d. ?4 E: R0 f end R z- w {1 M hend 6 s$ ^& o. X1 r1 `6 J: n