對應的PLC程式語句如下:network
1: A( O "s0" O "m0" ) AN "s1" = "m0"network
2: A "m0" A "ls1" A C 0 = "ly1"network
3: A "ls2" = "ly2"network
4: A "ls2" CD C 0 BLD 101 A "s0" L C#10 S C 0 A "ls1" R C 0 NOP 0 NOP 0 NOP 0
對應的PLC程式語句如下:network
1: A( O "s0" O "m0" ) AN "s1" = "m0"network
2: A "m0" A "ls1" A C 0 = "ly1"network
3: A "ls2" = "ly2"network
4: A "ls2" CD C 0 BLD 101 A "s0" L C#10 S C 0 A "ls1" R C 0 NOP 0 NOP 0 NOP 0