LD I0.0ATT VW100, VW200
Siemens PLC ATT instruction
ATT instruction: to the table (TBL) to add a word (DATA)Explanation:(1) DATA for the data input terminal, whose operands: VW, IW, QW, MW, SW, SMW, LW, T, C, AIW, AC, constants, * VD, * LD, * AC; data type : integer.(2) TBL is the first address of the table, whose operands: VW, IW, QW, MW, … Continue reading Siemens PLC ATT instruction
Siemens PLC System Data Sheet
Data tables are used to store font data table shown in Figure 1. The first word that is the first address of the address table, the table address, the first address in the form of value is the maximum length (TL), that is the maximum number of sheet. The second word in the address table … Continue reading Siemens PLC System Data Sheet
Siemens PLC Convert inches to centimeters Reference Ladder Logic
1. Training Objective (1) grasp an arithmetic instruction and data conversion applications.(2) establish state control table and by the process of forcing the debugger.(3) lies in the engineering controls, make the methods and procedures of the operation unit conversion.2. Training ContentConvert inches to centimeters, known C10 of the current count value of the inch, 1 inch … Continue reading Siemens PLC Convert inches to centimeters Reference Ladder Logic
Siemens PLC increment, decrement instruction
Increasing, decreasing command is used to input an unsigned byte count, symbol number, symbol number two-word instructions plus 1 or minus 1.1. byte increments (INC-B) / Decrement Byte (DEC-B) instructionIncrement and decrement byte instruction bytes in the input byte (IN) plus 1 or minus 1, and the result is placed in the variable specified by … Continue reading Siemens PLC increment, decrement instruction
Siemens PLC Logical programming Ladder Logic
// 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
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








