Delta Electronics AH — 2.1.9. Special Data Registers (SR)

Chapter 2 Devices, Symbols and Instructions 1. Regenerated output: Not until the program executes the instruction END is the information fed out according to the states of the outputs. For example, OUT Y0.0. 2. Direct output: When the instructions are executed, the information is fed out according to the states of the outputs. For example, OUT DY0.0. 2.1.6. Auxiliary Relays (M) The auxiliary relay has contact A and contact B. It can be used several times in the program. You can combine the control loops by means of the auxiliary relay, but can not drive the external load by means of the auxiliary relay. The auxiliary relays can be divided into two types according to their attributes. 1.

For general use: If an electric power cut occurs when the PLC is running, the auxiliary relay for general use will be reset to OFF. When the power supply is restored, the auxiliary relay for general use is still OFF. 2_ 2. For latched use: If an electric power cut occurs when the PLC is running, the state of the auxiliary relay for latched use will be retained. When the power supply is restored, the state remains the same as that before the power electric cut. 2.1.7. Special Auxiliary Relays (SM) SM: special auxiliary relays Every special auxiliary relay has its specific function. Please do not use the special auxiliary relays which are not defined.

For function descriptions of each special auxiliary relay (SM), refer to Appendix 1: Special Auxiliary Relays Table of AH Motion Controller - Standard Instructions Manual. 2.1.8. Data Registers (D) The data register stores the 16-bit data. The highest bit represents either a positive sign or a negative sign, and the values which can be stored in the data registers range from -32,768 to +32,767. Two 16-bit registers can be combined into a 32-bit register, i.e. (D+1, D) in which the register whose number is smaller represents the low 16 bits.

The highest bit represents either a positive sign or a negative sign, and the values which can be stored in the data registers range from -2,147,483,648 to +2,147,483,647. Besides, four 16-bit registers can be combined into a 64-bit register, i.e. (D+3, D+2, D+1, D) in which the register whose number is smaller represents the lower 16 bits. The highest bit represents either a positive sign or a negative sign, and the values which can be stored in the data registers range from -9,223,372,036,854,776 to +9,223,372,036,854,775,807. The data registers also can be used to refresh the values in the control registers in the modules other than digital I/O modules.

Please refer to ISPSoft User Manual for more information regarding refreshing the values in the control registers. The registers can be classified into two types according to their properties: 1. General-purpose register: If the PLC begins to run, or is disconnected, the value in the register will be cleared to zero. If you want to retain the data when the PLC begins to RUN, you can refer to ISPSoft User Manual for more information. Please notice that the value will still be cleared to zero if the PLC is disconnected. 2. Latched register: If the PLC is disconnected, the data in the latched register will not be cleared. In other words, the value before the disconnection is still retained.

If you want to clear the data in the latched area, you can use RST or ZRST. 2.1.9. Special Data Registers (SR) SR: special data registers. Every special data register has its definition and specific function. The system statuses and the error messages are stored in the special data registers. Besides, the special data registers can be used to monitor the system statuses. 2-7