使用photoeyes的blocked procedure和cleared procedure,例如:0 G6 B6 e/ m s3 P) G; G# t
begin Conveyor.Photoeyes1 blocked procedure + l2 m; y! ^) b4 A/ Y if the load color = red then begin $ @! Z0 A$ `; R) O travel to ........ 6 a, Y, r2 a. u end( C- ~, ~. L; ~5 `5 U" M
end5 M6 S; D2 F5 I/ h1 X