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
Category: plc program
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
Siemens S7 series PLC comparing two real numbers
If memory double word MD 24 real number greater than 1.0, the output Q 4.1 is 1; if less than 1.0 to 1 output Q 4.2. L MD 24 L + 1.359E + 02 > R = Q 4.1 // if (MD 24)> + 1.359E + 02, Q 4.1 is 1, 0 otherwise <R = … Continue reading Siemens S7 series PLC comparing two real numbers
How to shorten the Siemens PLC scan cycle
PLC improve operational efficiency, reduce execution time to complete the same tasks.1, no need to share signal when placed in the same network where multiple instructions could result in additional operating out of the stack (specifically converted into STL to analyze), and if not a logical requirement should avoid lateral series, so you can at … Continue reading How to shorten the Siemens PLC scan cycle
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 NT series touch screen and PLC connection, Display after power on the initial screen, flash on black
Control area address within the value set for the NT 0000, you can write a program in the PLC program as follows:
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?
Omron C200Ha series PLC and Mitsubishi inverter whether communication?
First, the Mitsubishi inverter must have a communication function, and then the inverter communication protocol must be open, the PLC Omron C200Ha plus a support plate communications protocol macro function with macro protocol to communicate.




