Delta Electronics — 6.18.2 Explanation of Peripheral Instructions

Chapter 6 Applied Instructions 6. When using on-line editing, please reset the conditional contact to initialize the instruction. Example 1. X0.0–X0.3 are connected to Y0.0–Y0.3 to form the first DIP switch, and X0.4–X0.7 are connected to Y0.0–Y0.3 to form the second DIP switch. When X1.0 is ON, the instruction converts the value that you enter with the first DIP switch into the binary value, and stores the conversion result in D20. The instruction converts the value that you enter with the second DIP switch into the binary value, and stores the conversion result in D21. 2. When X1.0 is ON, Y0.0–Y0.3 are ON cyclically. After the instruction completes, SM694 is ON for a scan cycle. 3.

The following graphic shows the outputs. Y0.0–Y0.3 must be transistors. X1.0 Cyclic action Y0.0 0.1s 0.1s 0.1s Y0.1 0.1s Y0.2 0.1s Interruption Y0.3 0.1s 6_ SM694 The execution of the insturciton is complete. 4. The following graphic shows the DIP switches. Bina ry cod ed d ecim al - wirin g of DIP switch es A dio de (1 N4 14 8) m u st b e con ne cted i n series . First DIP switch S eco nd DIP swtich No te : Th e tra nsist or o ut pu t mo du le AH16 AP11 T-5 A is use d in th is exam ple . 6-531 0 1 2 3 10 10 10 10 + 3 2 1 0 1 2 4 8 1 2 4 8 10 10 10 10 X0.0 X0.1 X0.2 X0.3 X0.

4 X0.5 X0.6 X0.7 S/S Y0.3 Y0.2 Y0.1 Y0.0 UP ZP 0 1 2 3 10 10 10 10 3 2 1 1 2 4 8 1 2 4 8 10 10 10 + 0 10 X0.0 X0.1 X0.2 X0.3 X0. 4 X0.5 X0.6 X0.7 S/S Y0.3 Y0.2 Y0.1 Y0.0 UP ZP