Delta Electronics — 6.18.2 Explanation of Peripheral Instructions

AS Series Programming Manual Example 1. The instruction defines X0.0 as the down arrow, X0.1 as the up arrow, X0.2 as the right arrow, and X0.3 as the left arrow. The instruction stores the setting value in D20, and the setting value must be between 0–9,999. 2. When X1.0 is ON, the digit in the place 10 3 is selected. If the left arrow is pressed, the places are selected in sequence (10 3 →10 0 →10 1 →10 2 →10 3 →10 0 ). 3. If you press right arrow, the places are selected in sequence (10 3 →10 2 →10 1 →10 0 →10 3 →10 2 ). The LED indicators for the corresponding places are connected to Y0.4–Y0.7. When the digits in the places are selected in sequence, the LED indicators are ON in sequence.

4. If you press the up arrow, the digit in the place selected changes (0→1→2→…8→9→0→1). If you press the down arrow, the digit in the place selected changes (0→9→8→…1→0→9). The new digit is shown on seven-segment display. Y0.4 Up arrow _6 Y0.6 Y0.5 X0.1 Y0.7 LED indicators Left arrow Right arrow X0.2 X0.3 10 10 10 10 3 2 1 0 Y0.0 Y0.1 Y0.2 Y0.3 1 2 4 8 X0.0 Down arrow Four-digit seven-segment display The four keys are used to select the place and change the digit Additional remarks 1. If n exceeds the range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 2. If you declare the operand S 1 in ISPSoft, the data type is ARRAY [4] of BOOL. 3.

If you declare the operand D 2 in ISPSoft, the data type is ARRAY [8] of BOOLL. 6-534