Download OPERATION MANUAL
Transcript
Section 4-6 Ladder Programming Examples Programming Example A20011 MOV(021) 000000 First Scan Flag Sets 0050 in D1000. #0050 D1000 MOV(021) Sets 0020 in D1001. #0020 D1001 000000 MOV(021) 000003 Execution condition D1000 3218 MOV(021) D1001 3219 ASL(025) 000001 000007 Sets D1000 (0050) in CIO 3218. (Moves data to the word in which MV upper limit value is allocated.) Sets D1001 (0020) in CIO 3219. (Moves data to the word in which MV lower limit value is allocated.) 0000 Shifts the contents of CIO 0000 one bit to the left. (Turns ON CIO 000001.) SET Turns ON the OUT Enable Bit. 320000 000002 330000 000010 Checks Output Completed Flags (If CIO 330000 is ON, output has been completed.) 000014 ASL(025) 0000 Shifts the contents of CIO 0000 one bit to the left. (Turns ON CIO 000002.) RSET 320000 Turns OFF the OUT Enable Bit. ASL(025) 0000 Shifts the contents of CIO 0000 one bit to the left. (Turns ON CIO 000003.) END(001) END 81