Siemens PLC programming instruction set, after reading you are also a master!

1, bit logic instructions

1.1 -||- Normally open contact (address)
1.2 -|/|- Normally closed contact (address)
1.3 XOR XOR 1.4 -|NOT|- Signal flow reversal 1.5 -( ) Output coil 1.6 -(#)- Intermediate output 1.7 -(R) Coil reset 1.8 -(S) Coil set 1.9 RS Complex position bit trigger 1.10 RS Set reset trigger 1.11 -(N)- RLO falling edge detection 1.12 -(P)- PLO rising edge detection 1.13 -(SAVE) Store RLO in BR memory 1.14 MEG Address falling edge detection 1.15 POS Address rising edge detection

Siemens PLC programming instruction set, after reading you are also a master!

2, comparison instructions
2.1 CMP?I Integer comparison 2.2 CMP?D Double integer comparison 2.3 CMP?R Real number comparison

3, conversion instructions
3.1 Convert BCD_IBCD code to integer 3.2 I_BCD Convert integer to BCD code 3.3 I_DINT Convert an integer to a double integer 3.4 Convert BCD_DIBCD code to double integer 3.5 DI_BCD Convert double integer to BCD code 3.6 DI_REAL Convert double integers to floating point numbers 3.7 INV_I Integer binary inverse 3.8 INV_DI Double integer binary code 3.9 NEG_I Integer two's complement 3.10 NEG_DI Binary complement of double integer 3.11 NEG_R Floating point number negation 3.12 ROUND Rounding to a double integer 3.13 TRUNC Round off the decimal to a double integer 3.14 CEIL Take up 3.15 FLOOR Take down

4, counter instructions
4.1 S_CUD Addition and subtraction count 4.2 S_CU Up counter 4.3 S_CD Down counter 4.4 -(SC) Counter initial value 4.5 -(CU) Counter coil 4.6 -(CD) Down counter coil

5, data block instructions
5.1 -(OPN) Open the data block: DB or DI

6, logic control instructions
6.1 -(JMP) Unconditional jump 6.2 -(JMP) Conditional jump 6.3 -(JMPN) If not, jump 6.4 LABEL Label

7, integer arithmetic operation instructions
7.1 ADD_I Integer addition 7.2 SUB_I Integer subtraction 7.3 MUL_I Integer multiplication 7.4 DIV_I Integer division 7.5 ADD_DI double integer addition 7.6 SUB_DI double integer subtraction 7.7 MUL_DI double integer multiplication 7.8 DIV_DI double integer division
7.9 MOD_DI returns the double integer of the remainder

8, floating-point arithmetic operation instructions

8.1 Basic instruction 8.1.1 ADD_R Real Addition 8.1.2 SUB_R real number subtraction 8.1.3 MUL_R real multiplication 8.1.4 DIV_R real number division 8.1.5 ABS Floating point absolute value operation


8.2 Extended instruction 8.2.1 SQR Floating point square 8.2.2 SQRT Square root of floating point number 8.2.3 EXP Floating point index operation 8.2.4 LN Floating point natural logarithm operation 8.2.5 SIN Floating point sine operation 8.4.6 COS Floating point cosine operation 8.2.7 TAN Floating point tangent 8.2.8 ASIN Floating point inverse sine operation 8.2.9 ACOS Floating point inverse cosine operation 8.2.10 ATAN Floating point inverse tangent

9, assignment instructions 9.1 MOVE Assignment

10, program control instructions
10.1 - (Call) Call FC/SFC from coil (no parameter)
10.2 CALL_FB Call FB from the block
10.3 CALL_FC Call FC from the box
10.4 CALL_SFB Calling SFB from a block
10.5 CALL_SFC Call SFC from the box
10.6 - (MCR<) Main control relay is connected 10.7 - (MCR>) Main control relay disconnected 10.8 - (MCRA) Main control relay starts 10.9 - (MCRD) Main control relay stopped 10.10 - (RET) return

11, shift and loop instructions

11.1 Shift instruction 11.1.1 SHR_I Integer right shift 11.1.2 SHR_DI double integer right shift 11.1.3 SHL_W Word shift to the left 11.1.4 SHR_W Shift right 11.1.5 SHL_DW double word left shift 11.1.6 SHR_DW double word right shift

11.2 Cycle instruction 11.2.1 ROL_DW double word left loop 11.2.2 ROR_DW double word right loop

12, status bit instructions 12.1 OV -||- overflow exception bit 12.2 OS -||- Storage Overflow Exception Bit 12.3 UO -||- disordered exception bit 12.4 BR -||- Abnormal bit binary result 12.5 ==0-||- Result bit is equal to "0"
12.6 <>0-||- Result bit is not equal to "0"
12.7 >0-||- Result bit is greater than "0"
12.8 <0-||- Result bit is less than "0"
12.9 >=0-||- Result bit is greater than or equal to "0"
12.10 <=0-||- Result bit is less than or equal to "0"

13, timer instructions 13.1 S_PULSE Pulse S5 timer 13.2 S_PEXT Extended pulse S5 timer 13.3 S_ODT On-delay S5 timer 13.4 S_ODTS Hold type on-delay S5 timer 13.5 S_OFFDT Power-off delay S5 timer 13.6 -(SP) Pulse timer coil 13.7 -(SE) Extended Pulse Timer Coil 13.8 -(SD) Turn on the delay timer coil 13.9 -(SS) Hold type on-delay timer coil 13.10 -(SF) Disconnect delay timer coil

14, word logic instructions 14.1 WAND_W Word and word "and"
14.2 WOR_W Word and word "or"
14.3 WAND_DW Double word and double word "and"
14.4 WOR_DW Double word and double word "or"
14.5 WXOR_W Word and word "exclusive or"
14.6 WXOR_DW Double word and double word "XOR"

MI Related Silicone products

Nantong Boxin Electronic Technology Co., Ltd. , https://www.ntbosen.com