2. Programming Concepts 2. If the PLC is powered OFF then ON again in STOP status, the modified communication format on COM1~COM3 will be reset to default communication format (9600, 7, E, 1). Definitions of the pins in COM1: (It is suggested that users should use the Delta communication cable DVPACAB2A30.) CN1 CN2 3000 50 ± CN1 1 3 6 4 8 7 Unit mm : 5 2 8 PIN MINI DIN 9 PIN D-SUB female PC/HMI COM PLC COM1 4 5 8 1,2 1 4 6 Tx Rx 3 2 GND 5 Rx Tx GND 5V 1 2 3 4 5 6 7 8 7 8 Function Group Enable SPD function Number M1037, D1037 Contents: 1. M1037 and D1037 can be used to enable 8 sets of SPD instructions. When M1037 is ON, 8 sets of SPD instructions will be enabled.
When M1037 is OFF, the function will be disabled. 2. The detected speed will be stored in the registers designated by D1037, e.g. if D1037 = K100, the user has to set up the value in D100, indicating the interval for capturing the speed value (unit: ms). In addition, the captured speed value will be stored in D101 ~ D108 in order. ※ When the function is enabled, C235~C242 will be occupied and unavailable in PLC execution process program. 2-53 31.
M1002 ZRST C235 C242 MOV K100 D1037 MOV K1000 D100 M1 M1037 M1000 PLSY K10000 K0 Y0 M1000 PLSY K9000 K0 Y1 M1000 PLSY K8000 K0 Y2 M1000 PLSY K7000 K0 Y3 END END ZRST C235 C242 MOV K100 D1037 MOV K1000 D100 PLSY K10000 K0 Y0 PLSY K9000 K0 Y1 PLSY K8000 K0 Y2 PLSY K7000 K0 Y3