Siemens S7 series PLC integer arithmetic instructions

In STEP 7 can be integers, long integers and real numbers to add, subtract, multiply and divide arithmetic. Arithmetic instructions in accumulator 1 and 2 were as minuend or dividend accumulator value 2 in. Result of an arithmetic of preservation, the original value of the accumulator 1 Accumulator 1 is covered in the calculation result, … Continue reading Siemens S7 series PLC integer arithmetic instructions

Siemens S7 series PLC Conversion between integer and BCD

Conversion Instructions ACCU 1 data type conversion, the conversion still result in accumulator l. Switching operation can be realized are: Conversion BCD and integer and long integer between real and long integer between numbers negated negation, byte expansion.In STEP 7, the integer and long integer expressed as a complement form. BCD code values, there are … Continue reading Siemens S7 series PLC Conversion between integer and BCD

WinCC timer using the method described

1, Timer Functions2, the script describes the timer3, using a script to achieve more timer function3.1 The whole point of the archiveAvoid initial script execution and delayed implementation of the script 1:00 activated 3.2 WinCC projectTimer Functions    WinCC timer can make use of WinCC in accordance with the specified time period, or to perform tasks, such … Continue reading WinCC timer using the method described

Siemens PLC with four buttons control the four light – Ladder Diagram

                              input        I0.0           SB1               button1 Light control I0.1        SB2 button2                  Light control I0.2         SB3 button3 Light control I0.3         SB4 button4 Light control output Q0.0          EL1 light1 illumination Q0.1          EL2 light2 illumination Q0.2           EL3 light3 illumination Q0.3          EL4 light 4 illumination

Omron DRM21 module prompts E2 error, how to do?

Cause: indicates that the network communication timeout. Countermeasures: ① Check the main station must use the same baud rate from the station; ② Check the wiring of communication cable is loose; ③ whether the two terminals of the network terminating resistor; ④ check the current speed and distance network, consider reducing the baud rate of the network, using 125Kbps … Continue reading Omron DRM21 module prompts E2 error, how to do?

Omron DRM21 module prompts D5 error, how to do?

Reason: registered in the scan list from the station does not exist or is a local master node number is registered in the scan list of the master station. Countermeasures: ① initial commissioning or increase / decrease the slave node: a. Check the baud rate from the master station, you need to set the same;b. Using CX-Integrator software … Continue reading Omron DRM21 module prompts D5 error, how to do?