3. Instruction Set 2. Description of associated special D registers: D1030: Present number of Y0 output pulses (Low word). D1031: Present number of Y0 output pulses (High word). D1032: Present number of Y1 output pulses (Low word). D1033: Present number of Y1 output pulses (High word). D1221: Phase of the 2 nd group pulse output (Y2,Y3), please refer to explanations of the instruction. 3. More explanations for M1347,M1348, M1524, M1525: Generally when pulse output is completed, PLSY instruction has to be reset so that the instruction can start pulse output one more time.
When M1347, M1348, M1524 or M1525 is enabled, the associated output terminals (Y0~Y3) will be reset automatically when pulse output is completed, i.e. the PLSY instruction is reset. When PLC scans to PLSY instruction again, the pulse output starts automatically. In addition, PLC scans the 4 flags after END instruction, hence PLSY instruction in continuous pulse output mode requires a delay time of one scan cycle for next pulse output operation. The function is mainly used in subroutines or interrupts which require high speed pulse output. Here are some examples: Program Example 1: EI FEND M1000 I 001 IRET M1000 I 101 IRET END 3-143 D1336: Present number of Y2 output pulses (Low word). D1337:
Present number of Y2 output pulses (High word). D1338: Present number of Y3 output pulses (Low word). D1339: Present number of Y3 output pulses (High word). D1220: Phase of the 1st group pulse output (Y0,Y1), please refer to explanations of the instruction. SET M1347 DPLSY K1000 K1000 Y0 SET M1524 DPLSY K1000 K1000 Y2