Lệnh này trong tiếng anh có tên gọi là Load NONC Contact tạm dịch ra tiếng Việt là đọc giá trị của tiếp điểm. Mô tả lệnh số 1, lệnh load NO này sẽ gán giá trị của X0 và X1 cho 2 tiếp điểm như hình, nếu X0 và X1 cùng ON thì ngõ ra Y1 sẽ ON. Mô tả lệnh số 2, Lệnh load NC sẽ gán giá trị đảo của X0 cho tiếp điểm in đậm. Nếu X0 off và X1 On thì ngõ ra Y1 sẽ ON. Lệnh AND và OR trên plc delta
Trang 1Danh sách tổng hợp tập lệnh lập trình trên plc delta
Danh sách tổng hợp tập lệnh lập trình plc delta dưới đây được lấy từ manual của nhà sản xuất plc delta Các bạn vui lòng tra kỹ thông tin của lệnh bao gồm:
API: là mã số của lệnh
Cú pháp: là mã của lệnh bao gồm 16 và 32 bit
Mô tả: mô tả ngắn gọn về lệnh
Hỗ trợ chi tiết dòng plc nào
STEPS: là số bước sử dụng trong vòng quét của plc
Tham khảo thêm sản phẩm: plc delta cũ
Tham khảo thêm sản phẩm: dây cáp lập trình plc delta
Chi tiết danh sách tổng hợp tập lệnh lập trình trên plc delta
API Lệnh 16
bit
Lệnh 32 bit Mô tả ngắn ES2
12 MOV DMOV Move P P P P 5 9
13 SMOV – Shift move P P P P 11 –
Trang 214 CML DCML Complement P P P P 5 9
15 BMOV – Block move P P P P 7 –
16 FMOV DFMOV Fill move P P P P 7 13
20 ADD DADD Addition P P P P 7 13
21 SUB DSUB Subtraction P P P P 7 13
22 MUL DMUL Multiplication P P P P 7 13
23 DIV DDIV Division P P P P 7 13
24 INC DINC Increment P P P P 3 5
25 DEC DDEC Decrement P P P P 3 5
26 WAND DAND Logical Word
27 WOR DOR Logical Word
28 WXOR DXOR Logical XOR P P P P 7 13
29 NEG DNEG 2’s Complement
(Negation) P P P P 3 5
114 MUL16 MUL32
16-bit/32-bit Binary Multiplication
115 DIV16 DIV32 16-bit/32-bit
Binary Division P P P P 7 13
30 ROR DROR Rotate right P P P P 5 9
31 ROL DROL Rotate left P P P P 5 9
32 RCR DRCR Rotate right with
33 RCL DRCL Rotate left with
Trang 334 SFTR – Bit shift right P P P P 9 –
35 SFTL – Bit shift left P P P P 9 –
36 WSFR – Word shift right P P P P 9 –
37 WSFL – Word shift left P P P P 9 –
Trang 460 IST – Initial state P P P P 7 –
61 SER DSER Search a data
66 ALT – Alternate state P P P P 3 –
67 RAMP DRAMP Ramp variable
68 DTM – Data transform
and move P P P P 9 –
69 SORT DSORT Data sort P P P P 11 21
70 TKY DTKY 10-key input P P P P 7 13
71 HKY DHKY Hexadecimal
75 ARWS – Arrow switch P P P P 9 –
76 ASC – ASCII code
conversion P P P P 11 –
77 PR – Print (ASCII
code output) P P P P 5 –
Trang 578 FROM DFROM
Read CR data from special modules
79 TO DTO
Write CR data into special modules
80 RS – Serial
communication P P P P 9 –
81 PRUN DPRUN Parallel run P P P P 5 9
82 ASCII – Convert HEX to
87 ABS DABS Absolute value P P P P 3 5
88 PID DPID PID control P P P P 9 17
89 PLS – Rising-edge
output P P P P 3 –
90 LDP –
Rising–edge detection operation
91 LDF –
Falling–edge detection operation
92 ANDP –
Rising-edge series connection
93 ANDF –
Falling-edge series connection
94 ORP –
Rising-edge parallel connection
95 ORF –
Falling-edge parallel connection
Trang 6103 REV –
Reverse Operation of VFD
ES2-
295 DMVRW –
DMV Communication Command
110 – DECMP Floating point
compare P P P P – 13
Trang 7111 – DEZCP Floating point
Trang 8134 – DACOS Arc Cosine P P P P – 9
135 – DATAN Arc Tangent P P P P – 9
172 – DADDR Floating point
149 MEMW –
Writing the data into the file register
203 SCLP DSCLP Parameter
proportional
Trang 9value calculation
205 CMPT DCMPT Compare table P P P P 9 17
207 CSFO –
Catch speed and
proportional output
192 – DPPMA
2-Axis Absolute Point to Point Motion
193 – DCIMR
2-Axis Relative Position Arc Interpolation
194 – DCIMA
2-Axis Absolute Position Arc Interpolation
195 – DPTPO
Single-Axis pulse output by table
160 TCMP – Time compare P P P P 11 –
161 TZCP – Time Zone
Compare P P P P 9 –
Trang 10162 TADD – Time addition P P P P 7 –
163 TSUB – Time
subtraction P P P P 7 –
166 TRD – Time read P P P P 3 –
167 TWR – Time write P P P P 3 –
169 HOUR DHOUR Hour meter P P P P 7 13
170 GRY DGRY BIN → Gray
186 MBRD – Matrix bit read P P P P 7 –
187 MBWR – Matrix bit write P P P P 7 –
188 MBS – Matrix bit shift P P P P 7 –
189 MBR – Matrix bit rotate P P P P 7 –
190 MBC – Matrix bit status
Trang 11221 OR& DOR& S1 & S2 P P P P 5 9
Trang 13270 BLDI DBLDI
Load NC contact by specified bit
271 BAND DBAND
Connect NO contact in series
by specified bit
272 BANI DBANI
Connect NC contact in series
by specified bit
273 BOR DBOR
Connect NO contact in parallel
by specified bit
274 BORI DBORI
Connect NC contact in parallel
Trang 14291 – FOR<= S1 ≦ S2 P P P P – 9
292 – FOR>= S1 ≧ S2 P P P P – 9
Trang 15Danh sách lệnh ứng dụng PLC Mitsubishi (dòng Micro PLC)
Danh sách lệnh ứng dụng PLC Mitsubishi: FX1S, FX1N, FX2N, FX3U, FX1NC, FX2NC, FX3UC
Ghi chú:
⦾: Được hỗ trợ bởi phiên bản 3.00 hoặc cao hơn
◊: Được hỗ trợ bởi phiên bản 1.30 hoặc cao hơn
□: Được hỗ trợ bởi phiên bản 2.20 hoặc cao hơn
Trang 16Phân loại FNC số Mnemonic Chức năng PLC áp dụng
18 BCD Chuyển sang thập phân mã hóa
Trang 17Phân loại FNC số Mnemonic Chức năng PLC áp dụng
Trang 18Phân loại FNC số Mnemonic Chức năng PLC áp dụng
Thiết bị I/O bên ngoài
FX
72 DSW Chuyển mạch số (đầu vào bánh
lật)
81 PRUN Chạy song song (Chế đọ bát
phân)
Trang 19Phân loại FNC số Mnemonic Chức năng PLC áp dụng
116 ESTR Chuyển dấu phẩy động sang
118 EBCD Chuyển ký dấu phẩy động
sang ký hiệu khoa học
119 EBIN Chuyển ký hiệu khoa học sang
dấu phẩy động
129 INT Chuyển dấu phẩy động sang số
nguyên
136 RAD Chuyển độ dấu phẩy động sang
rađian
Trang 20Phân loại FNC số Mnemonic Chức năng PLC áp dụng
137 DEG Chuyển rađian dấu phẩy động
sang độ
Điều khiển đồng hồ thời
Trang 21Phân loại FNC số Mnemonic Chức năng PLC áp dụng
(FX2N/FX2NC)
204 RIGHT Tách dữ liệu chuỗi ký tự từ bên
Trang 22Phân loại FNC số Mnemonic Chức năng PLC áp dụng
207 MIDW Thay thế ngẫu nhiên các chuỗi ký
tự
212 POP Đọc dịch dữ liệu cuối [điều khiển
FILO]
Trang 23Phân loại FNC số Mnemonic Chức năng PLC áp dụng
259 SCL Chia tỉ lệ (phối hợp bởi dữ liệu
Ghi chú:
⦾: Được hỗ trợ bởi phiên bản 3.00 hoặc cao hơn
◊: Được hỗ trợ bởi phiên bản 1.30 hoặc cao hơn
Trang 24 □: Được hỗ trợ bởi phiên bản 2.20 hoặc cao hơn
*1: Truyền dữ liệu
*2: Chức năng mở rộng
*3: Truyền dữ liệu
*4: Xử lý tốc độ cao
Trang 25Tổng hợp danh sách tập lệnh lập trình plc siemens s7-1200
Bit logic operations
• —| |—: Normally open contact (S7-1200, S7-1500)
• —| / |—: Normally closed contact (S7-1200, S7-1500)
• –|NOT|–: Invert RLO (S7-1200, S7-1500)
• —( )—: Assignment (S7-1200, S7-1500)
• –( / )–: Negate assignment (S7-1200, S7-1500)
• —( R )—: Reset output (S7-1200, S7-1500)
• —( S )—: Set output (S7-1200, S7-1500)
• SET_BF: Set bit field (S7-1200, S7-1500)
• RESET_BF: Reset bit field (S7-1200, S7-1500)
• SR: Set/reset flip-flop (S7-1200, S7-1500)
• RS: Reset/set flip-flop (S7-1200, S7-1500)
• –|P|–: Scan operand for positive signal edge (S7-1200, S7-1500)
• –|N|–: Scan operand for negative signal edge (S7-1200, S7-1500)
• –(P)–: Set operand on positive signal edge (S7-1200, S7-1500)
• –(N)–: Set operand on negative signal edge (S7-1200, S7-1500)
• P_TRIG: Scan RLO for positive signal edge (S7-1200, S7-1500)
• N_TRIG: Scan RLO for negative signal edge (S7-1200, S7-1500)
• R_TRIG: Detect positive signal edge (S7-1200, S7-1500)
• F_TRIG: Detect negative signal edge (S7-1200, S7-1500)
Timer operations
• TP: Generate pulse (S7-1200, S7-1500)
• TON: Generate on-delay (S7-1200, S7-1500)
• TOF: Generate off-delay (S7-1200, S7-1500)
• TONR: Time accumulator (S7-1200, S7-1500)
• —( TP )—: Start pulse timer (S7-1200, S7-1500)
• —( TON )—: Start on-delay timer (S7-1200, S7-1500)
• —( TOF )—: Start off-delay timer (S7-1200, S7-1500)
• —( TONR )—: Time accumulator (S7-1200, S7-1500)
• —( RT )—: Reset timer (S7-1200, S7-1500)
• —( PT )—: Load time duration (S7-1200, S7-1500)
Counter operations
Trang 26• IN_RANGE: Value within range (S7-1200, S7-1500)
• OUT_RANGE: Value outside range (S7-1200, S7-1500)
• —-I OK I—-: Check validity (S7-1200, S7-1500)
• —-I NOT_OK I—-: Check invalidity (S7-1200, S7-1500)
• MOD: Return remainder of division (S7-1200, S7-1500)
• NEG: Create twos complement (S7-1200, S7-1500)
• INC: Increment (S7-1200, S7-1500)
• DEC: Decrement (S7-1200, S7-1500)
• ABS: Form absolute value (S7-1200, S7-1500)
• MIN: Get minimum (S7-1200, S7-1500)
• MAX: Get maximum (S7-1200, S7-1500)
• LIMIT: Set limit value (S7-1200, S7-1500)
• SQR: Form square (S7-1200, S7-1500)
• SQRT: Form square root (S7-1200, S7-1500)
• LN: Form natural logarithm (S7-1200, S7-1500)
• EXP: Form exponential value (S7-1200, S7-1500)
• SIN: Form sine value (S7-1200, S7-1500)
Trang 27• COS: Form cosine value (S7-1200, S7-1500)
• TAN: Form tangent value (S7-1200, S7-1500)
• ASIN: Form arcsine value (S7-1200, S7-1500)
• ACOS: Form arccosine value (S7-1200, S7-1500)
• ATAN: Form arctangent value (S7-1200, S7-1500)
• FRAC: Return fraction (S7-1200, S7-1500)
• MOVE_BLK: Move block (S7-1200, S7-1500)
• MOVE_BLK_VARIANT: Move block (S7-1200, S7-1500)
• UMOVE_BLK: Move block uninterruptible (S7-1200, S7-1500)
• FILL_BLK: Fill block (S7-1200, S7-1500)
• UFILL_BLK: Fill block uninterruptible (S7-1200, S7-1500)
• SCATTER: Parse the bit sequence into individual bits (S7-1200, S7-1500)
• SCATTER_BLK: Parse elements of an ARRAY of bit sequence into individual bits (S7-1200, S7-1500)
• GATHER: Merge individual bits into a bit sequence (S7-1200, S7-1500)
• GATHER_BLK: Merge individual bits into multiple elements of an ARRAY of bit sequence (S7-1200, S7-1500)
• AssignmentAttempt: Attempt assignment of a VARIANT to a reference (S7-1500)
• CONVERT: Convert value (S7-1200, S7-1500)
• ROUND: Round numerical value (S7-1200, S7-1500)
• CEIL: Generate next higher integer from floating-point number (S7-1200, S7-1500)
• FLOOR: Generate next lower integer from floating-point number (S7-1200, S7-1500)
• TRUNC: Truncate numerical value (S7-1200, S7-1500)
• SCALE_X: Scale (S7-1200, S7-1500)
• NORM_X: Normalize (S7-1200, S7-1500)
Program control operations
Trang 28• —( JMP ): Jump if RLO = 1 (S7-1200, S7-1500)
• —( JMPN ): Jump if RLO = 0 (S7-1200, S7-1500)
• LABEL: Jump label (S7-1200, S7-1500)
• JMP_LIST: Define jump list (S7-1200, S7-1500)
• SWITCH: Jump distributor (S7-1200, S7-1500)
• –(RET): Return (S7-1200, S7-1500)
• Runtime control (S7-1200, S7-1500)
Word logic operations
• AND: AND logic operation (S7-1200, S7-1500)
• OR: OR logic operation (S7-1200, S7-1500)
• XOR: EXCLUSIVE OR logic operation (S7-1200, S7-1500)
• INVERT: Create ones complement (S7-1200, S7-1500)
• ROR: Rotate right (S7-1200, S7-1500)
• ROL: Rotate left (S7-1200, S7-1500)
Date and time-of-day
• T_COMP: Compare time tags (S7-1500)
• T_CONV: Convert times and extract (S7-1200, S7-1500)
• T_ADD: Add times (S7-1200, S7-1500)
• T_SUB: Subtract times (S7-1200, S7-1500)
• T_DIFF: Time difference (S7-1200, S7-1500)
• T_COMBINE: Combine times (S7-1200, S7-1500)
• Time-of-day functions (S7-1200, S7-1500)
String + Char
• S_MOVE: Move character string (S7-1200, S7-1500)
• S_COMP: Compare character strings (S7-1500)
• S_CONV: Convert character string (S7-1200, S7-1500)
Trang 29• STRG_VAL: Convert character string to numerical value (S7-1200, S7-1500)
• VAL_STRG: Convert numerical value to character string (S7-1200, S7-1500)
• Strg_TO_Chars: Convert character string to Array of CHAR (S7-1200, S7-1500)
• Chars_TO_Strg: Convert Array of CHAR to character string (S7-1200, S7-1500)
• MAX_LEN: Determine the length of a character string (S7-1200, S7-1500)
• JOIN: Join multiple strings (S7-1500)
• SPLIT: Splitting an array of characters into multiple strings (S7-1500)
• ATH: Convert ASCII string to hexadecimal number (S7-1200, S7-1500)
• HTA: Convert hexadecimal number to ASCII string (S7-1200, S7-1500)
• LEN: Determine the length of a character string (S7-1200, S7-1500)
• CONCAT: Combine character strings (S7-1200, S7-1500)
• LEFT: Read the left character of a character string (S7-1200, S7-1500)
• RIGHT: Read the right characters of a character string (S7-1200, S7-1500)
• MID: Read middle characters of a character string (S7-1200, S7-1500)
• DELETE: Delete characters in a character string (S7-1200, S7-1500)
• INSERT: Insert characters in a character string (S7-1200, S7-1500)
• REPLACE: Replace characters in a character string (S7-1200, S7-1500)
• FIND: Find characters in a character string (S7-1200, S7-1500)
• Runtime information (S7-1200, S7-1500)
Distributed I/O
• Overview of the types of data records (S7-1200, S7-1500)
• RDREC: Read data record (S7-1200, S7-1500)
• WRREC: Write data record (S7-1200, S7-1500)
• GETIO: Read process image (S7-1200, S7-1500)
• SETIO: Transfer process image (S7-1200, S7-1500)
• Program example for GETIO & SETIO (S7-1200, S7-1500)
• GETIO_PART: Read process image area (S7-1200, S7-1500)
• SETIO_PART: Transfer process image area (S7-1200, S7-1500)
• Program example for GETIO_PART & SETIO_PART (S7-1200, S7-1500)
• RALRM: Receive interrupt (S7-1200, S7-1500)
• D_ACT_DP: Enable/disable DP slaves (S7-1200, S7-1500)
• ReconfigIOSystem: Reconfigure IO system (S7-1200, S7-1500)
• Others (S7-1200, S7-1500)
PROFIenergy
Trang 30• Description of PROFIenergy (S7-1200, S7-1500)
• IO controller (S7-1200, S7-1500)
• iDevice / iSlave (S7-1200, S7-1500)
Interrupts
• ATTACH: Attach an OB to an interrupt event (S7-1200, S7-1500)
• DETACH: Detach an OB from an interrupt event (S7-1200, S7-1500)
• Gen_UsrMsg: Generate user diagnostic alarms (S7-1200, S7-1500)
• Program example for Get_Alarm & Ack_Alarms (S7-1200, S7-1500)
Diagnostics
• RD_SINFO: Read current OB start information (S7-1200, S7-1500)
• RT_INFO: Read out runtime statistics (S7-1500)
• LED: Read LED status (S7-1200, S7-1500)
• Get_IM_Data: Reading identification and maintenance data (S7-1200, S7-1500)
• GET_NAME: Read out name of an IO device or a DP slave (S7-1200, S7-1500)
• GetStationInfo: Read information of an IO device (S7-1200, S7-1500)
• GetChecksum: Read out checksum (S7-1200, S7-1500)
• GetSMCinfo: Reading out information about the SIMATIC memory card (S7-1500)
• GetClockStatus: Read out status of the CPU clock (S7-1500)
• DeviceStates: Read module status information in an IO system (S7-1200, S7-1500)
• ModuleStates: Read module status information of a module (S7-1200, S7-1500)
• GEN_DIAG: Generate diagnostics information (S7-1500)
• GET_DIAG: Read diagnostic information (S7-1200, S7-1500)
Pulse
• CTRL_PWM: Pulse-width modulation (S7-1200)
• CTRL_PTO: Output a pulse sequence with a preset frequency (S7-1200)
Recipes and data logging
• Recipe functions (S7-1200, S7-1500)
• Data logging (S7-1200, S7-1500)
Data block functions
Trang 31• CREATE_DB: Create data block (S7-1200, S7-1500)
• READ_DBL: Read from data block in the load memory (S7-1200, S7-1500)
• WRIT_DBL: Write to data block in the load memory (S7-1200, S7-1500)
• ATTR_DB: Read data block attribute (S7-1200, S7-1500)
• DELETE_DB: Delete data block (S7-1200, S7-1500)
• Program example for CREATE functions (S7-1200, S7-1500)
Addressing
• Instructions for address conversion (S7-1200, S7-1500)
• GEO2LOG: Determine hardware identifier from slot (S7-1200, S7-1500)
• LOG2GEO: Determine slot from hardware identifier (S7-1200, S7-1500)
• LOG2MOD: Determine the hardware identifier from addressing of STEP 7 V5.5 SPx (S7-1500)
• IO2MOD: Determine hardware identifier from an IO address (S7-1200, S7-1500)
• RD_ADDR: Determine IO addresses from the hardware identifier (S7-1200, S7-1500)
• System data type GEOADDR (S7-1200, S7-1500)