AH500 Motion Control Module Manual Fixed scan time 1. If SM039 is ON, the time it takes for the program to be scanned will depend on the value in SR039. If the execution of a program is complete, the program will not be scanned again until the fixed scan time set elapses. If the value in SR039 is less than the time it takes for a program to be scanned, the time it takes for a program to be scanned, will be given priority. SM039 and SR039 SM000 2. The values stored in SR010~SR012 include the value stored in SR039. contact The fixed scan time is 20 milliseconds. Setting an OX motion subroutine number Users can specify an Ox motion subroutine by setting SR1052.
The steps of setting SR1052 are as follows. 1. The users have to set bit 14 in SR1052 to 1, set bit 15 in SR1052 to 1, or set bit 14 and bit 15 in SR1052 to 1. Besides, the users have to write K99 (16#63) into bit 0~bit 13 in SR1052, that is, the Ox motion subroutine number specified is Ox99. To sum up, the users have to write 16#8063 into SR1052. 2. After the users write 16#1000 to SR1030, the Ox motion subroutine specified by SR1052 will be executed. The program is shown below. SR1052 X0.0 In the main program O100, X0.0 starts the motion subroutine Ox99. There are six high-speed counters.
High-speed counting SM200 and C200 SM204 and C204 SM208 and C208 SM212 and C212 SM216 and C216 SM220 and C220 *1. U/D: Counting up/Counting down; P/D: Pulse/Direction; A/B: A phase/B phase *2. The input terminals of AH05PM-5A/AH10PM-5A are transistors whose collectors are open collectors. The input terminals of AH20MC-5A are differential input terminals. X0.8 and X0.9 on AH15PM-5A are differential input terminals. X0.10~X0.15 on AH15PM-5A are transistors whose collectors are open collectors.
3-30 000 SM039 Fixed scan time ally-open ct MOV P K20 SR039 MOV P K20 SR039 MOV P 16#8063 SR1052 MOV P 16#1000 SR1030 Number Counter number Mode of counting External External Device *1 Setting value resetting input terminal *2 terminal 1 C200 K1SM200 0: U/D 1: P/D 2: A/B (One time the frequency of A/B-phase inputs) 3:
4A/B (Four times the frequency of A/B-phase inputs) X0.0+ and X0.0- SM203 X0.8, X0.9, and S/S 2 C204 K1SM204 X0.1+ and X0.1- SM207 X0.10, X0.11, and S/S 3 C208 K1SM208 X0.2+ and X0.2- SM211 X0.12, X0.13, and S/S 4 C212 K1SM212 X0.3+ and X0.3- SM215 X0.14, X0.15, and S/S 5 C216 K1SM216 X0.2+ and X0.2- SM219 X0.12, X0.13, and S/S 6 C220 K1SM220 X0.3+ and X0.3- SM223 X0.14, X0.15, and S/S