Mitsubishi — 3.7 Timers

AH500 Motion Control Module Manual 3.4 Auxiliary Relays Auxiliary relay (M): Auxiliary relay numbers are decimal numbers. There are 4096 M devices (M0~M4096) in an AH500 series motion control module. Functions of auxiliary relays: A M device has an output coil and a Form A contact/Form B contact. There is no limitation on the number of times an M device can be used in a program. Users can combine control loops by means of M devices, but can not drive external loads by means of M devices. If a power cut occurs when an AH500 series motion control module runs, the M devices in the AH500 series motion control module will be reset to OFF.

When the supply of electricity is restored, the M devices are still OFF. 3.5 Special Auxiliary Relays Special auxiliary relay (SM): Special auxiliary relay numbers are decimal numbers. There are 16384 SM devices (SM0~SM16383) in an AH500 series motion control module. Functions of special auxiliary relays: A SM device has an output coil and a Form A contact/Form B contact. There is no limitation on the number of times a SM device can be used in a program. Users can combine control loops by means of SM devices, but can not drive external loads by means of SM devices. Every SM device has its own specific function. Please do not the SM devices which are not defined.

3.6 Stepping Relays Stepping relay (S): Stepping relay numbers are decimal numbers. There are 1024 S devices (S0~S1023) in an AH500 series motion control module. Functions of stepping relays: A S device has an output coil and a Form A contact/Form B contact. There is no limitation on the number of times an S device can be used in a program. Users can combine control loops by means of SM devices, but can not drive external loads by means of S devices. An S device can be used as a general auxiliary relay. 3.7 Timers Timer (T): Timer numbers are decimal numbers. There are 256 timers (T0~T255) in an AH500 series motion control module.

Users can change a timer to a latching timer by setting a parameter. Functions of timers: 10 milliseconds are a unit of measurement for time. A timer counts upwards for measuring time which elapses. If the present timer value is equal to the setting value, the output coil will be ON. The setting value can be a decimal value preceded by K, or the value in a data register. Actual time measured by a timer= Unit of measurement for time x Setting value 1. If the instruction TMR is executed, a timer will count for measuring time which elapses once. If the timer value matches the setting value, the output coil will be ON.

If X0.0 is ON, the timer T0 will count upwards from the present time value every 10 milliseconds. If the present timer value matches the setting value K100, the output coil T0 will be ON. If X0.0 is OFF, or there is a power cut, the present value in T0 will become 0, and the output coil T0 will be OFF. X0.0 T0 Y0.0 1 second X0.0 Present value The setting value is K 100. T0 Y0.0 3-6 .0 TMR T0 K100