// Byte operationLD I0.0ANDB VB1, VB2// Word or actionMOVW VW100, VW300ORW VW200, VW300// Double word exclusive-OR operationXORD AC0, AC1// Byte negated operationMOVB VB5, VB6INVB VB6 Operation is as follows:VB1 VB2 VB20001 1100 WAND 1100 1101 → 0000 1100VW100 VW200 VW3000001 1101 1111 1010 WOR 1110 0000 1101 1100 → 1111 1101 1111 1110VB5 VB60000 1111 INV … Continue reading Siemens PLC Logical programming Ladder Logic
Category: plc program
Siemens S7-200 PLC logic operation instruction
Logical operation is unsigned number bit by bit AND, OR, XOR, inversion and other operations. The length of the operands have B, W, DW.1. Logic and (WAND) command: input IN1, IN2 logic operation by phase and, get, into the storage unit specified by OUT.2. Logical OR (WOR) command: input IN1, IN2 bitwise or logical operation … Continue reading Siemens S7-200 PLC logic operation instruction
Siemens PLC Mathematical function transformation instruction Seeking 45º sine
D I0.1MOVR 3.14159, AC1/R 180.0, AC1*R 45.0, AC1SIN AC1, AC0
Siemens S7 PLC real number arithmetic instruction
Real additions (ADD-R), subtraction (SUB-R) instruction: two 32-bit real numbers are added or subtracted, and produces a 32-bit real number result, the output from the designated storage unit OUT.Real multiplication (MUL-R), a divider (DIV-R) command: enable input is active, the two 32-bit real number multiplied (except), and produces a 32-bit product (quotient), a storage unit … Continue reading Siemens S7 PLC real number arithmetic instruction
Siemens PLC Mathematical function transformation instruction
Mathematical functions transform comprises the square root, natural logarithm, exponential, trigonometric functions and so on. (1) Square Root (SQRT) instruction: 32-bit real number (IN) taking the square root, and produces a 32-bit real number result, the output from the designated storage unit OUT. (2) natural logarithm (LN) instruction: IN values in natural logarithm, and place the result … Continue reading Siemens PLC Mathematical function transformation instruction
Simple plc Ladder Logic
One Jog switch control A lamp Steady Off PLC ladder
Press once to switch X0, 30s after the lights off; for twice, long bright eternal light; pressed for more than two seconds when the lamp is off
Alternating Loop ladder diagram
Differentiated instruction ladder diagram
Edge differential DF, DFI falling differential ladder diagram
DF: When detecting the rising edge of the input trigger signal, only the contact closure of a scan cycle.DFI: When detecting the falling edge of the input trigger signal, only the contact closure of a scan cycle.Beginners must master several of ladder diagram - turnExample shows Upon detection of the rising edge X0 (OFF → … Continue reading Edge differential DF, DFI falling differential ladder diagram









