Delta Electronics — 6.18.2 Explanation of Peripheral Instructions

Chapter 6 Applied Instructions  Function keys:  When A is pressed, M0 stays ON. When D is pressed, M0 switches OFF, and M3 stays ON.  If several function keys are pressed, the key which is pressed first has priority. F E D C B A 2. Output signals:  When a key within the range between A and F is pressed, M6 is ON.  When a key within the range between 0 and 9 is pressed, M7 is ON. 3. When the conditional contact X1.0 switches to OFF, the value that was stored in D0 is unchanged. However, M0–M7 are switched OFF. 4. The external wiring: 6_ Note: The transistor output module is used in this example. AH16AP11T-5A Additional remarks 1.

When this instruction is executed, a too long or a too short scan cycle time will cause the state of the switches to be read incorrectly. Use the following tips to solve the issue.  When the scan cycle is too short, the I/O may not be able to respond in time and cannot read the correct states of the inputs. You can set a fixed scan time to solve this issue.  When the scan cycle is too long, the switch may become slow to react. You can write this instruction to a timer interrupt task to set a fixed time to execute this instruction. 2. If you declare the operand S in ISPSoft, the data type is ARRAY [4] of BOOL. 3. If you declare the operand D1 in ISPSoft, the data type is ARRAY [4] of BOOL.

4. If you declare the operand D3 in ISPSoft, the data type is ARRAY [8] of BOOL. 6-529 M5 M4 M3 M2 M1 M0 24VDC + X0.0 X0.1 X0.2 X0.3 S/S Y0.0 Y0.1 Y0.2 Y0.3 UP ZP