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 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 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