Chapter 6 Applied Instructions 3. S 2 works with 32-bit counters (HC0–HC255). When the inputs are the high-speed trigger input type, implement the hardware high-speed counter and use the DCNT instruction to enable the counter. When you need high-speed output, use the DMOV instruction to copy the output current position; for example copying the axis of SR460 to HC0, (DMOV SR460 HC0). 4. S 3 occupies seven consecutive 16-bit devices. S 3 +0 is n (the work station number) and S 3 +1 is m (the maximum object number). S 3 +2 is the result of the object being filtered. The range for n and m is between 1–64.
When this value is out of range, the value used is treated as the maximum (32) or the minimum (1). The range for S 3 +2 (the number of filter) is between 0–32767. Zero is used for any value less than 0 ; and a value of 0 disables the filtering are for falling-edge values (32-bit). Be sure to declare an array of 7 words or 7 consecutive word type variables. function. S 3 +3 (Low Word) and S 3 +4 (High Word) are for rising-edge values. S 3 +5 (Low Word) and S 3 +6 (High Word) 5. Set the maximum number for S 3 +1 (m). If m production line. 6. S 4 occupies 3xn consecutive 32-bit devices (6xn 16-bit devices). If the required space exceeds the range of device D, the instruction is not executed.
The value of n is the work station number set in the operand S 3 . The following table lists the functions for each device and the corresponding number for S 4 . Be sure to declare an array of 3n double words or 3 consecutive double word type variables for S . 6_ When you set the reference value to 0 for a specific work station, the specific work station stops working. You can use this technique to manage work stations. 7. D is the first corresponding device for the comparison result in the stack area. D occupies 2xn consecutive 16-bit devices and 2xmxn consecutive 32-bit devices (or 4xmxn consecutive 16-bit devices).
If the required space exceeds the range of device D, the instruction is not executed. The following table lists the functions for each device and the corresponding number for D .
6-219 Function Work station 1 Work station 2 ‧‧‧ Work station n Reference value for comparison (32-bit) S4+0 S4+2 ‧‧‧ S4+(n-1)x2 Observational error of the compared stack area for the entering-work-station ones (32-bit) S4+2xn S4+2xn+2 ‧‧‧ S4+(2xn-1)x2 Observational error of the compared stack area for the leaving-work-station ones (32-bit) S4+4xn S4+4xn+2 ‧‧‧ S4+(4xn-1)x2 Function Work station 1 Work station 2 ‧‧‧ Work station n Value of the head index (16-bit) D+0 D+1 ‧‧‧ D+(n-1) Value of the tail index (16-bit) D+n D+(n+1) ‧‧‧ D+(2xn-1)