Yaskawa Ladder Works Programming Manual Manual de usuario

Busca en linea o descarga Manual de usuario para Equipo Yaskawa Ladder Works Programming Manual. Yaskawa Ladder Works Programming Manual User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 220
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1 - Ladder Works

Ladder WorksLadder Editor Programming Manual

Pagina 2 - TABLE OF CONTENTS

1.4 10-MS OFF-DELAY TIMER Instructions (TOFF[10ms]) 1-5 1.4 10-MS OFF-DELAY TIMER Instruction (TOFF[10ms]) [Outline] The TOFF[10ms] is executed while

Pagina 3

6.1 BIT ROTATION LEFT Instruction (ROTL) 6-3 [Program Example] The data having MB00000A (bit A of MW00000) as the head address and a bit width of 10

Pagina 4

6.2 BIT ROTATION RIGHT Instruction (ROTR) 6-4 6.2 BIT ROTATION RIGHT Instruction (ROTR) [Outline] The ROTR instruction is used to rotate bits to the

Pagina 5 - Appendix

6.2 BIT ROTATION RIGHT Instruction (ROTR) 6-5 [Program Example] The data having MB00000 (bit 0 of MW00000) as the head address and a bit width of 10

Pagina 6 - 1 Relay Circuit Instructions

6.3 MOVE BITS Instruction (MOVB) 6-6 6.3 MOVE BITS Instruction (MOVB) [Outline] The MOVB instruction moves the designated number of bits (Width) from

Pagina 7

6.3 MOVE BITS Instruction (MOVB) 6-7 [Program Example] The 10 bits of data starting from MB000000 (bit 0 of MW00000) are transferred to MB000010 ( bi

Pagina 8

6.4 MOVE WORD Instruction (MOVW) 6-8 6.4 MOVE WORD Instruction (MOVW) [Outline] The MOVW instruction moves the designated number of words (Width) from

Pagina 9

6.4 MOVE WORD Instruction (MOVW) 6-9 [Program Example] The word data MW00000 to MW00009 are transferred to MW00100 to MW00109. Aftertransfer1234H2345

Pagina 10 - [Program Example]

6.5 EXCHANGE Instruction (XCHG) 6-10 6.5 EXCHANGE Instruction (XCHG) [Outline] The XCHG instruction is used to exchange data between data tables 1 (D

Pagina 11

6.5 EXCHANGE Instruction (XCHG) 6-11 [Program Example] The contents of MW00000 to MW00009 are exchanged to MW00100 to MW00109. Aftertransfer1031H103

Pagina 12

6.6 SET WORDS Instruction (SETW) 6-12 6.6 SET WORDS Instruction (SETW) [Outline] The SETW instruction stores the designated data (Set Data) in all re

Pagina 13

1.5 1-S ON-DELAY TIMER Instructions (TON[1s]) 1-6 1.5 1-S ON-DELAY TIMER Instruction (TON[1s]) [Outline] The TON[1s] times while the immediately-prec

Pagina 14

6.6 SET WORDS Instruction (SETW) 6-13 [Program Example] The contents of MW00100 to MW00119 are set to 0. 00000Transfer data Transfer destination0000

Pagina 15 - 1.9 COIL Instruction (COIL)

6.7 BYTE-TO-WORD EXPANSION Instruction (BEXTD) 6-14 6.7 BYTE-TO-WORD EXPANSION Instruction (BEXTD) [Outline] The BEXTD instruction stores the byte se

Pagina 16

6.7 BYTE-TO-WORD EXPANSION Instruction (BEXTD) 6-15 [Program Example] The 5 bytes beginning with MW00100 are expanded into five words beginning with

Pagina 17

6.8 WORD-TO-WORD COMPRESSION Instruction (BPRESS) 6-16 6.8 WORD-TO-WORD COMPRESSION Instruction (BPRESS) [Outline] The BPRESS instruction stores the

Pagina 18

6.8 WORD-TO-WORD COMPRESSION Instruction (BPRESS) 6-17 [Program Example] The 5 bytes beginning with MW00100 are compressed into five words beginning

Pagina 19

6.9 BINARY SEARCH Instruction (BSRCH) 6-18 6.9 BINARY SEARCH Instruction (BSRCH) [Outline] The BSRCH instruction uses a binary search method to searc

Pagina 20

6.10 SORT Instruction (SORT) 6-19 6.10 SORT Instruction (SORT) [Outline] The SORT instruction sorts data within the designated register range (Data T

Pagina 21

6.11 BIT SHIFT LEFT Instruction (SHFTL) 6-20 6.11 BIT SHIFT LEFT Instruction (SHFTL) [Outline] The SHFTL instruction shifts the bit sequence designat

Pagina 22 - [Program Example ]

6.12 BIT SHIFT RIGHT Instruction (SHFTR) 6-21 6.12 BIT SHIFT RIGHT Instruction (SHFTR) [Outline] The SHFTR instruction shifts the bit sequence design

Pagina 23

6.13 COPY WORD Instruction (COPYW) 6-22 6.13 COPY WORD Instruction (COPYW) [Outline] The COPYW instruction copies the designated number of words (Wid

Pagina 24

1.6 1-S OFF-DELAY TIMER Instructions (TOFF[1s]) 1-7 1.6 1-S OFF-DELAY TIMER Instruction (TOFF[1s]) [Outline] The TOFF[1s] times while the immediately

Pagina 25

6.14 BYTE SWAP Instruction (BSWAP) 6-23 6.14 BYTE SWAP Instruction (BSWAP) [Outline] The BSWAP instruction swaps the higher-place and lower-place byt

Pagina 26

6.14 BYTE SWAP Instruction (BSWAP) 6-24 12H13H 44H14H 54H34H 12H34H44H 13H54H 14HMW00100MW00101MW00102MW00100MW00102MW00101Upper LowerAfter swapBefore

Pagina 27

7 DDC Instructions 7-1 7 DDC Instructions 7.1 DEAD ZONE A Instruction (DZA)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・7-2 7.2 DEAD ZONE B Instruction (D

Pagina 28

7.1 DEAD ZONE A Instruction (DZA) 7-2 7.1 DEAD ZONE A Instruction (DZA) [Outline] The DZA instruction executes a dead zone operation on integer, doub

Pagina 29

7.1 DEAD ZONE A Instruction (DZA) 7-3 [Program Example] Integer type operation Double-length integer type operation Real number type operation

Pagina 30

7.2 DEAD ZONE B Instruction (DZB) 7-4 7.2 DEAD ZONE B Instruction (DZB) [Outline] The DZB instruction executes a dead zone operation on integer, doub

Pagina 31 - 2.8 MOD Instruction (MOD)

7.2 DEAD ZONE B Instruction (DZB) 7-5 [Program Example] Integer type operation Double-length integer type operation Real number type operation

Pagina 32 - 2.9 REM Instruction (REM)

7.3 UPPER/LOWER LIMIT Instruction (LIMIT) 7-6 7.3 UPPER/LOWER LIMIT Instruction (LIMIT) [Outline] The LIMIT instruction executes an upper/lower limit

Pagina 33 - 2.10 INC Instruction (INC)

7.3 UPPER/LOWER LIMIT Instruction (LIMIT) 7-7 [Parameter] Parameter Name Setting Input · Any integer type, double-length integer type and real numb

Pagina 34

7.3 UPPER/LOWER LIMIT Instruction (LIMIT) 7-8 [Program Example] Integer type operation Input (MW00100) Output (MW0010) -100 > MW00100 -00100 (un

Pagina 35 - 2.11 DEC Instruction (DEC)

1.7 RISING PULSE Instructions (ON – PLS) 1-8 1.7 RISING PULSE Instruction (ON – PLS) [Outline] The ON-PLS sets the value of the bit input to ON durin

Pagina 36

7.4 PI CONTROL Instruction (PI) 7-9 7.4 PI CONTROL Instruction (PI) [Outline] The PI instruction executes a PI control operation according to the con

Pagina 37

7.4 PI CONTROL Instruction (PI) 7-10 Here, the PI operation is expressed as follows: Y 1 X = Kp + Ki× Ti×S X : deviation input value Y : output val

Pagina 38

7.4 PI CONTROL Instruction (PI) 7-11 [Program Example] Integer type operation MW00100 to MW00111 are used for the parameter table. Real number type

Pagina 39

7.5 PD CONTROL Instruction (PD) 7-12 7.5 PD CONTROL Instruction (PD) [Outline] The PD instruction executes a PD control operation according to the co

Pagina 40

7.5 PD CONTROL Instruction (PD) 7-13 Here, the PD operation is expressed as follows: Y X = Kp + Kd×Td×S X : deviation input value Y : output value Th

Pagina 41

7.5 PD CONTROL Instruction (PD) 7-14 [Program Example] Integer type operation MW00100 to MW00109 are used for the parameter table. Real number intege

Pagina 42

7.6 PID CONTROL Instruction (PID) 7-15 7.6 PID CONTROL Instruction (PID) [Outline] The PID instruction executes a PID control operation according to

Pagina 43

7.6 PID CONTROL Instruction (PID) 7-16 Table of Real Type PID Instruction Parameters ADR Type Symbol Name Specification I/O 0 W RLY Relay I/O

Pagina 44

7.6 PID CONTROL Instruction (PID) 7-17 InputX OutputYLIMIT DB Ki Ts/Ti Z -1I LIMITZ -1+-++Kd Td/Ts +++Kp [Format] Symbol : PID Full Name : PID Co

Pagina 45

7.6 PID CONTROL Instruction (PID) 7-18 [Program Example] Integer type operation MW00100 to MW00115 are used for the parameter table. Real number type

Pagina 46

1.8 FALLING PULSE Instructions (OFF – PLS) 1-9 1.8 FALLING PULSE Instruction (OFF – PLS) [Outline] The OFF-PLS sets the value of the bit input to ON

Pagina 47

7.7 FIRST-ORDER LAG Instruction (LAG) 7-19 7.7 FIRST-ORDER LAG Instruction (LAG) [Outline] The LAG instruction calculates the first-order lag accordi

Pagina 48

7.7 FIRST-ORDER LAG Instruction (LAG) 7-20 [Format] Symbol : LAG Full Name : First Order Lag Category : DDC Icon : [Parameter] Parameter Name Set

Pagina 49

7.8 PHASE LEAD/LAG Instruction (LLAG) 7-21 7.8 PHASE LEAD/LAG Instruction (LLAG) [Outline] The LLAG instruction calculates the phase lead/lag accordi

Pagina 50

7.8 PHASE LEAD/LAG Instruction (LLAG) 7-22 [Format] Symbol : LLAG Full Name : Phase Lead Lag Category : DDC Icon : [Parameter] Parameter Name Sett

Pagina 51

7.9 FUNCTION GENERATOR Instruction (FGN) 7-23 7.9 FUNCTION GENERATOR Instruction (FGN) [Outline] The FGN instruction generates a function curve accor

Pagina 52

7.9 FUNCTION GENERATOR Instruction (FGN) 7-24 [Format] Symbol : FGN Full Name : Function Generator Category : DDC Icon : [Parameter] Parameter Name

Pagina 53

7.9 FUNCTION GENERATOR Instruction (FGN) 7-25 Real number type operation (number of data: N=20) #F00000 to #F00080 are used for the parameter table.

Pagina 54 - Instructions

7.10 INVERSE FUNCTION GENERATOR Instruction (IFGN) 7-26 7.10 INVERSE FUNCTION GENERATOR Instruction (IFGN) [Outline] The IFGN instruction generates a

Pagina 55 - 3.1 AND Instruction (AND)

7.10 INVERSE FUNCTION GENERATOR Instruction (IFGN) 7-27 X1 X2XX3X4Y1 Y2 Y Y3 Y4 ↑ OutPutvalue Y Input value X → [Format] Symbol : IFGN Full Name

Pagina 56 - 3.2 OR Instruction (OR)

7.10 INVERSE FUNCTION GENERATOR Instruction (IFGN) 7-28 #L00000 to #L00080 are used for the parameter table. Real number type operation (number of da

Pagina 57 - 3.3 XOR Instruction (XOR)

1.9 COIL Instruction (COIL) 1-10 1.9 COIL Instruction (COIL) [Outline] The COIL sets the value of the referenced register to 1 (ON) when the immediat

Pagina 58

7.11 LINEAR ACCELERATOR/DECELERATOR 1 Instruction (LAU) 7-29 7.11 LINEAR ACCELERATOR/DECELERATOR 1 Instruction (LAU) [Outline] The LAU instruction pe

Pagina 59

7.11 LINEAR ACCELERATOR/DECELERATOR 1 Instruction (LAU) 7-30 Table of Real Type LAU Instruction Parameters ADR Type Symbol Name Specification I/

Pagina 60

7.11 LINEAR ACCELERATOR/DECELERATOR 1 Instruction (LAU) 7-31 [Program Example] Integer type operation MW00100 to MW000106 are used for the parameter t

Pagina 61

7.12 LINEAR ACCELERATOR/DECELERATOR 2 Instruction (SLAU) 7-32 7.12 LINEAR ACCELERATOR/DECELERATOR 2 Instruction (SLAU) [Outline] The SLAU instruction

Pagina 62

7.12 LINEAR ACCELERATOR/DECELERATOR 2 Instruction (SLAU) 7-33 BIT Symbol Name Specification I/O 0 RN Line is running "ON" is input while

Pagina 63

7.12 LINEAR ACCELERATOR/DECELERATOR 2 Instruction (SLAU) 7-34 [Format] Symbol : SLAU Full Name : S-Curve Linear Accelerator Category : DDC Icon : [

Pagina 64

7.13 PULSE WIDTH MODULATION Instruction (PWM) 7-35 7.13 PULSE WIDTH MODULATION Instruction (PWM) [Outline] The PWM instruction converts the value of

Pagina 65

7.13 PULSE WIDTH MODULATION Instruction (PWM) 7-36 [Parameter] Parameter Name Setting Input · Any integer type register · Any integer type registe

Pagina 66

8 Table Data Manipulation Instructions 8-1 8 Table Data Manipulation Instructions 8.1 BLOCK READ Instruction (TBLBR)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・

Pagina 67

8.1 BLOCK READ Instruction (TBLBR) 8-2 8.1 BLOCK READ Instruction (TBLBR) [Outline] The TBLBR instruction consecutively reads file register table ele

Pagina 68

1.10 SET COIL Instructions (S-COIL) 1-11 1.10 SET COIL Instruction (S-COIL) [Outline] The S-COIL turns ON the output when the execution condition is

Pagina 69

8.1 BLOCK READ Instruction (TBLBR) 8-3 [Program Example] From the table defined as TABLE1, with DW00010 to DW00013 as a parameter table, data (elemen

Pagina 70 - Method of setting RSSEL

8.2 BLOCK WRITE Instruction (TBLBW) 8-4 8.2 BLOCK WRITE Instruction (TBLBW) [Outline] The TBLBW instruction writes the contents of a continuous regio

Pagina 71 - Method of setting MDSEL

8.2 BLOCK WRITE Instruction (TBLBW) 8-5 [Program Example] From the table defined as TABLE1, with DW00010 to DW00013 as a parameter table, area (eleme

Pagina 72

8.3 ROW SEARCH Instruction (TBLSRL) 8-6 8.3 ROW SEARCH Instruction (TBLSRL) [Outline] The TBLSRL instruction searches for the column element of the f

Pagina 73

8.3 ROW SEARCH Instruction (TBLSRL) 8-7 [Parameter] Parameter Name Setting Table Name Table name Search Data · Register address · Register addre

Pagina 74

8.4 COLUMN SEARCH Instruction (TBLSRC) 8-8 8.4 COLUMN SEARCH Instruction (TBLSRC) [Outline] The TBLSRC instruction searches for the row element of th

Pagina 75 - Instruction Sequence

8.4 COLUMN SEARCH Instruction (TBLSRC) 8-9 [Parameter] Parameter Name Setting Table Name Table name Search Data · Register address · Register ad

Pagina 76

8.5 BLOCK CLEAR Instruction (TBLCL) 8-10 8.5 BLOCK CLEAR Instruction (TBLCL) [Outline] The TBLCL instruction clears the data of the block element of

Pagina 77

8.5 BLOCK CLEAR Instruction (TBLCL) 8-11 [Program Example] The designated block in the table defined as TABLE1 is cleared using DW00010 to DW00013 as

Pagina 78 - Instruction Sequence 2

8.6 BLOCK MOVE Instruction (TBLMV) 8-12 8.6 BLOCK MOVE Instruction (TBLMV) [Outline] The TBLMV instruction transfers the data of the block elements o

Pagina 79

1.11 RESET COIL Instructions (R-COIL) 1-12 1.11 RESET COIL Instruction (R-COIL) [Outline] The R-COIL turns OFF the output when the execution conditio

Pagina 80

8.6 BLOCK MOVE Instruction (TBLMV) 8-13 [Parameter] Parameter Name Setting Src Table Name Table name Dest Table Name Table name Parameter · Regi

Pagina 81

8.7 QUEUE TABLE READ Instructions (QTBLR,QTBLRI) 8-14 8.7 QUEUE TABLE READ Instructions (QTBLR, QTBLRI) [Outline] The QTBLR/QTBLRI instruction consec

Pagina 82

8.7 QUEUE TABLE READ Instructions (QTBLR,QTBLRI) 8-15 [Parameter] Parameter Name Setting Table Name Table name Read Data · Register address (exce

Pagina 83

8.8 QUEUE TABLE WRITE Instructions (QTBLW, QTBLWI) 8-16 8.8 QUEUE TABLE WRITE Instructions (QTBLW, QTBLWI) [Outline] The QTBLW/QTBLWI instruction wri

Pagina 84

8.8 QUEUE TABLE WRITE Instructions (QTBLW, QTBLWI) 8-17 [Parameter] Parameter Name Setting Table Name 表名称 Write Data · Register address (except f

Pagina 85

8.9 QUEUE POINTER CLEAR Instructions (QTBLCL) 8-18 8.9 QUEUE POINTER CLEAR Instruction (QTBLCL) [Outline] The QTBLCL instruction returns the queue re

Pagina 86 - 5.2 SINE Instruction (SIN)

9 Standard System Function 9-1 9 Standard System Function 9.1 Counter Function (COUNTER)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・9-2 9.2 First-in Fi

Pagina 87

9.1 Counter Function (COUNTER) 9-2 9.1 Counter Function (COUNTER) [Outline] Increments or decrements the current value when the count up/down command

Pagina 88 - 5.3 COSINE Instruction (COS)

9.1 Counter Function (COUNTER) 9-3 The forms of parameter input and output are shown in below. Input Data Form Input Designation Description Bit inp

Pagina 89

9.2 First-in First-out Function (FINFOUT) 9-4 9.2 First-in First-out Function (FINFOUT) [Outline] This is a first-in first-out type block data transf

Pagina 90

2 Numeric Operation Instructions 2-1 2 Numeric Operation Instructions 2.1 STORE Instruction (STORE)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・2-2 2.

Pagina 91

9.3 Trace Function (TRACE) 9-5 9.3 Trace Function (TRACE) [Outline] Performs execution control of the traces of the trace data designated by the trac

Pagina 92

9.4 Data Trace Read Function (DTRC-RD) 9-6 9.4 Data Trace Read Function (DTRC-RD) [Outline] Reads out the trace data of the main controller unit and

Pagina 93

9.4 Data Trace Read Function (DTRC-RD) 9-7 9.4.1 Readout of Data Readout of Data is described Figure 9.1. Data Trace MemoryNumber ofread recordsOldNew

Pagina 94

9.4 Data Trace Read Function (DTRC-RD) 9-8 Record Length A Record is composed of the data for the selected items. Word length of 1 record = Bn 1 wor

Pagina 95

9.5 Failure Trace Read Function (FTRC-RD) 9-9 9.5 Failure Trace Read Function (FTRC-RD) [Outline] Reads the failure trace data and stores them in the

Pagina 96

9.5 Failure Trace Read Function (FTRC-RD) 9-10 9.5.1 Failure Occurrence Data Readout Failure occurrence data readout is described in figure 9.3. The

Pagina 97

9.5 Failure Trace Read Function (FTRC-RD) 9-11 Table 9.4 Bit Configuration No. Bit Configuration of ① Bit Configuration of ② 7 Defined flag (1 = de

Pagina 98

9.5 Failure Trace Read Function (FTRC-RD) 9-12 Record Configuration Record composition is shown in figure 9.9. Register Designation No.2 words1 word

Pagina 99

9.6 Inverter Trace Read Function (ITRC-RD) 9-13 9.6 Inverter Trace Read Function (ITRC-RD) [Outline] Reads out the trace data of the inverter and sto

Pagina 100

9.6 Inverter Trace Read Function (ITRC-RD) 9-14 Table 9.5 Configuration of the Inverter Trace Read Execution Status (STATUS) Name Bit Name Remarks

Pagina 101

2.1 STORE Instruction (STORE) 2-2 2.1 STORE Instruction (STORE) [Outline] The STORE instruction stores the contents of Source in the Dest. [Format]

Pagina 102

9.7 Send Message Function (MSG-SND) 9-15 9.7 Send Message Function (MSG-SND) [Outline] Sends a message to the called station which is on the line and

Pagina 103

9.7 Send Message Function (MSG-SND) 9-16 9.7.1 Parameters They adhere to contents-functions and so on and are collected into parameter numerical order

Pagina 104

9.7 Send Message Function (MSG-SND) 9-17 Status (PARAM01) Output the status of the transmission unit. Bit Assignment RESULTCOMMANDREQUESTPARAMETERF

Pagina 105

9.7 Send Message Function (MSG-SND) 9-18 REQUEST 1 = Request 0 = Completion of receipt report Called Station # (PARAM02) Serial 1~254 : Message is

Pagina 106

9.7 Send Message Function (MSG-SND) 9-19 Data Address The set contents will differ according to the function code as Table 9.10. Table 9.10 Address

Pagina 107

9.7 Send Message Function (MSG-SND) 9-20 0DH Discontinuous readout of holding register (expanded) 1 to 508 (1 to 01FCH) words 1 to 252 (1 to 00FCH)

Pagina 108

9.7 Send Message Function (MSG-SND) 9-21 9.7.2 Input EXCUTE (Send Message Execution Command) When the command becomes "ON", the message is

Pagina 109

9.7 Send Message Function (MSG-SND) 9-22 9.7.3 Program Example Program example is described Figure 9.11.

Pagina 110

9.7 Send Message Function (MSG-SND) 9-23 Figure 9.11 Program Sample

Pagina 111

9.8 Receive Message Function (MSG-RCV) 9-24 9.8 Receive Message Function (MSG-RCV) [Outline] Receives a message from a calling station which is on th

Pagina 112

TABLE OF CONTENTS 1 TABLE OF CONTENTS 1 Relay Circuit Instructions 1.1 N.O. Contact Instruction (NOC)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・1-2 1.2 N

Pagina 113

2.1 STORE Instruction (STORE) 2-3 [Program Example] Notes: When a double-length integer type data is stored in an integer type register, the lo

Pagina 114

9.8 Receive Message Function (MSG-RCV) 9-25 9.8.1 Parameters They adhere to contents-functions and so on and are collected into parameter numerical or

Pagina 115

9.8 Receive Message Function (MSG-RCV) 9-26 Status (PARAM01) Output the status of the transmission unit. See 5.5.1."Parameters" of "

Pagina 116 - 6.10 SORT Instruction (SORT)

9.8 Receive Message Function (MSG-RCV) 9-27 Input Relay Offset (PARAM09) Set the offset word address of the input relay. This is valid in the case

Pagina 117

9.8 Receive Message Function (MSG-RCV) 9-28 CH-NO (Channel No.) Designate the channel No. of the transmission unit. However, the channel number sho

Pagina 118

9.8 Receive Message Function (MSG-RCV) 9-29 9.8.4 Program Example Program example is described Figure 9.12.

Pagina 119

9.8 Receive Message Function (MSG-RCV) 9-30 Figure 9.12 Program Sample

Pagina 120

9.9 Inverter Constant Write Function (ICNS-WR) 9-31 9.9 Inverter Constant Write Function (ICNS-WR) [Outline] Writes the inverter constants. The types

Pagina 121

9.9 Inverter Constant Write Function (ICNS-WR) 9-32 Table 9.14 Configuration of Inverter Constant Write Execution Status (STATUS) Name Bit No. Rema

Pagina 122 - 7 DDC Instructions

9.9 Inverter Constant Write Function (ICNS-WR) 9-33 9.9.2 Method of Writing to an EEPROM Procedures for writing constants to an EEPROM (inverter inter

Pagina 123

9.9 Inverter Constant Write Function (ICNS-WR) 9-34 9.9.3 Program Example An example of a program (if MP930) that writes "200" in the consta

Pagina 124

2.2 ADDITION Instruction (ADD) 2-4 2.2 ADDITION Instruction (ADD) [Outline] The ADD instruction adds integer, double-length integer, and real number

Pagina 125

9.9 Inverter Constant Write Function (ICNS-WR) 9-35

Pagina 126

9.10 Inverter Constant Read Function (ICNS-RD) 9-36 9.10 Inverter Constant Read Function (ICNS-RD) [Outline] Reads the inverter constants. The types

Pagina 127

9.10 Inverter Constant Read Function (ICNS-RD) 9-37 Table 9.15 Configuration of Inverter Constant Read Execution Status (STASTUS) Name Bit No. Rema

Pagina 128

A-1 Appendix Expression Outline It is necessary to describe the conditional expression and the operational expression in IF, WHILE, and the EXPRESSI

Pagina 129

A-2 ・ Substitution operator = A right value is substituted for a left value ・ Reserved word true/false Value to logical expression ○ Priority leve

Pagina 130

A-3 in C language. The bool type variable takes only either of value of true or false. It can be used only for the logical expression. The fo

Pagina 131

A-4 ○ Comparison operator This operator can be used for the operand of the integer type and the real type. The register of the bit type should come

Pagina 132

A-5 MW00001 = MF00012 OK MB000102 = MW00010 OK MB000102 = true OK MW00010 = MB000101 NG MW00010 = true NG ○ Function The

Pagina 133

A-6 3. Application to ladder program The use of Expression in the ladder program is divided into three kinds of the following. ① Conditional express

Pagina 134

A-7 MW00003 = MW00000/50; OK MW00002 = MW00001 & 300; OK MW00010 = MW00003 – MW00002; OK MB000001 == true; NG MW00006 >= 100;

Pagina 135

2.2 ADDITION Instruction (ADD) 2-5 [Program Example ] Addition of integer type values Addition of real number type values Notes: In the case of

Pagina 136

YASKAWA ELECTRIC AMERICA, INC.Chicago-Corporate Headquarters 2121 Norman Drive South, Waukegan, IL 60085, U.S.A.Phone: (847) 887-7000 Fax: (847) 8

Pagina 137

2.3 EXTENDED ADDITION Instruction (ADDX) 2-6 2.3 EXTENDED ADDITION Instruction (ADDX) [Outline] The ADDX instruction adds integer values. Source B is

Pagina 138

2.4 SUBTRACTION Instruction (SUB) 2-7 2.4 SUBTRACTION Instruction (SUB) [Outline] The SUB instruction subtracts integer, double-length integer, and r

Pagina 139

2.4 SUBTRACTION Instruction (SUB) 2-8 [Program Example] Subtraction of integer type values Subtraction of real number type values Notes: In the

Pagina 140

2.5 EXTENDED SUBTRACTION Instruction (SUBX) 2-9 2.5 EXTENDED SUBTRACTION Instruction (SUBX) [Outline] The SUBX instruction subtracts integer values.

Pagina 141

2.6 MULTIPLICATION Instruction (MUL) 2-10 2.6 MULTIPLICATION Instruction (MUL) [Outline] The MUL instruction multiplies integer, double-length intege

Pagina 142

2.6 MULTIPLICATION Instruction (MUL) 2-11 Multiplication of double-length integer type values Multiplication of real number type values Notes: I

Pagina 143

2.7 DIVISION Instruction (DIV) 2-12 2.7 DIVISION Instruction (DIV) [Outline] The DIV instruction divides integer, double-length integer, and real num

Pagina 144

TABLE OF CONTENTS 2 3 Logical Operation/ Comparison Instructions 3.1 AND Instruction (AND)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・3-2 3.2 OR In

Pagina 145

2.7 DIVISION Instruction (DIV) 2-13 [Program Example] Real number type data

Pagina 146

2.8 MOD Instruction (MOD) 2-14 2.8 MOD Instruction (MOD) [Outline] The MOD instruction outputs the remainder of integer or double-length integer divi

Pagina 147

2.9 REM Instruction (REM) 2-15 2.9 REM Instruction (REM) [Outline] The REM instruction outputs the remainder of real number division to the Dest. He

Pagina 148

2.10 INC Instruction (INC) 2-16 2.10 INC Instruction (INC) [Outline] The INC instruction adds 1 to the designated integer or double-length integer re

Pagina 149

2.10 INC Instruction (INC) 2-17 Double-length integer type ⇔equivalent

Pagina 150

2.11 DEC Instruction (DEC) 2-18 2.11 DEC Instruction (DEC) [Outline] The DEC instruction subtracts 1 from the designated integer or double-length int

Pagina 151

2.11 DEC Instruction (DEC) 2-19 Double-length integer type ⇔equivalent

Pagina 152

2.12 ADD TIME Instruction (TMADD) 2-20 2.12 ADD TIME Instruction (TMADD) [Outline] The TMADD instruction adds one time (hours/minutes/seconds) to ano

Pagina 153

2.12 ADD TIME Instruction (TMADD) 2-21 [Program Example] The time data in DW0000 to DW00101 is added to the time data in MW00100 to MW00101. 8 hrs 40

Pagina 154

2.13 SUBTRACT TIME Instruction (TMSUB) 2-22 2.13 SUBTRACT TIME Instruction (TMSUB) [Outline] The TMSUB instruction subtracts one time (hours/minutes/

Pagina 155

TABLE OF CONTENTS 3 6 Data Manipulation Instructions 6.1 BIT ROTATION LEFT Instruction (ROTL)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・6-2 6.2 BIT ROTATION RIGHT

Pagina 156

2.13 SUBTRACT TIME Instruction (TMSUB) 2-23 [Program Example] The time data in DW0000 to DW0001 is subtracted to the time data in MW00100 to MW00101.

Pagina 157

2.14 SPEND TIME Instruction (SPEND) 2-24 2.14 SPEND TIME Instruction (SPEND) [Outline] The SPEND instruction subtracts one time (year/month/day/hours

Pagina 158

2.14 SPEND TIME Instruction (SPEND) 2-25 [Program Example] The time elapsed from the time data in MW00100 to MW00103 to the time data in DW00000 to D

Pagina 159 - Parameter Name Setting

2.15 SIGN INVERSION Instruction (INV) 2-26 2.15 SIGN INVERSION Instruction (INV) [Outline] The INV instruction inverts the sign of the contents of th

Pagina 160

2.15 SIGN INVERSION Instruction (INV) 2-27 [Program Example] Integer type data Double-length integer type data Real number type data

Pagina 161

2.16 1’S COMPLEMENT Instruction (COM) 2-28 2.16 1’S COMPLEMENT Instruction (COM) [Outline] The COM instruction determines the 1’s complement of the c

Pagina 162

2.17 ABSOLUTE VALUE CONVERSION Instruction (ABS) 2-29 2.17 ABSOLUTE VALUE CONVERSION Instruction (ABS) [Outline] The ABS instruction determines the a

Pagina 163

2.17 ABSOLUTE VALUE CONVERSION Instruction (ABS) 2-30 [Program Example] Integer type data Double-length integer type data Real number type data

Pagina 164

2.18 BINARY CONVERSION Instruction (BIN) 2-31 2.18 BINARY CONVERSION Instruction (BIN) [Outline] The BIN instruction converts a binary coded decimal

Pagina 165

2.19 BCD CONVERSION Instruction (BCD) 2-32 2.19 BCD CONVERSION Instruction (BCD) [Outline] The BCD instruction converts a binary value in the Source

Pagina 166

TABLE OF CONTENTS 4 9 STANDARD SYSTEM FUNCTION 9.1 Counter Function (COUNTER)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・9-2 9.2 First-in First-out Functi

Pagina 167

2.20 PARITY CONVERSION Instruction (PARITY) 2-33 2.20 PARITY CONVERSION Instruction (PARITY) [Outline] The PARITY instruction counts the number of bi

Pagina 168

2.21 ASCII CONVERSION Instruction ( ASCII ) 2-34 2.21 ASCII CONVERSION Instruction (ASCII) [Outline] The ASCII instruction converts the specified cha

Pagina 169

2.22 ASCII CONVERSION 2 Instruction (BINASC) 2-35 2.22 ASCII CONVERSION 2 Instruction (BINASC) [Outline] The BINASC instruction converts the 16-bit b

Pagina 170

2.22 ASCII CONVERSION 3 Instruction (ASCBIN) 2-36 2.23 ASCII CONVERSION 3 Instruction (ASCBIN) [Outline] The ASCBIN instruction converts four-digit h

Pagina 171

3 Logical Operation/ Comparison Instructions 3-1 3 Logical Operation/ Comparison Instructions 3.1 AND Instruction ( AND )・・・・・・・・・・・・・・・・・・・・・・・・・・・

Pagina 172

3.1 AND Instruction (AND) 3-2 3.1 AND Instruction (AND) [Outline] The AND instruction outputs the logical product (AND) of Source A and Source B to t

Pagina 173 - ADR Type

3.2 XOR Instruction (OR) 3-3 3.2 OR Instruction (OR) [Outline] The OR instruction outputs the logical sum (OR) of Source A and Source B to the Dest.

Pagina 174

3.3 XOR Instruction (XOR) 3-4 3.3 XOR Instruction (XOR) [Outline] The XOR instruction outputs the exclusive logical sum (XOR) of Source A and Source

Pagina 175

3.4 Comparison Instruction (<) 3-5 3.4 Comparison Instruction (<) [Outline] This instruction compare Source A with Source B and stores the comp

Pagina 176 - 9 Standard System Function

3.5 Comparison Instruction (<=) 3-6 3.5 Comparison Instruction (<=) [Outline] This instruction compare Source A with Source B and stores the co

Pagina 177

1 Relay Circuit Instructions 1-1 1 Relay Circuit Instructions 1.1 N.O. Contact Instruction (NOC)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・1-2 1.2 N.C

Pagina 178

3.6 Comparison Instruction (=) 3-7 3.6 Comparison Instruction (=) [Outline] This instruction compare Source A with Source B and stores the comparison

Pagina 179

3.7 Comparison Instruction (!=) 3-8 3.7 Comparison Instruction (!=) [Outline] This instruction compare Source A with Source B and stores the comparis

Pagina 180 - 9.3 Trace Function (TRACE)

3.8 Comparison Instruction (>=) 3-9 3.8 Comparison Instruction (>=) [Outline] This instruction compare Source A with Source B and stores the co

Pagina 181

3.9 Comparison Instruction (>) 3-10 3.9 Comparison Instruction (>) [Outline] This instruction compare Source A with Source B and stores the com

Pagina 182 - 9.4.1 Readout of Data

3.10 RANGE CHECK Instruction (RCHK) 3-11 3.10 RANGE CHECK Instruction (RCHK) [Outline] The RCHK instruction checks whether the input value in the Inp

Pagina 183 - ■ Number of Records

3.10 RANGE CHECK Instruction (RCHK) 3-12 [Program Example] Integer type data Input (MW00100) Output (DB000000) -1000>MW00100 OFF -1000<=MW001

Pagina 184

4 Program Control Instructions 4-1 4 Program Control Instructions 4.1 SUB-DRAWING CALL Instruction (SEE)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・4-2 4.2 FUN

Pagina 185 - Day and hour of occurrence

4.1 SUB-DRAWING CALL Instruction (SEE) 4-2 4.1 SUB-DRAWING CALL Instruction (SEE) [Outline] The SEE instruction is used to call a sub-drawing from a

Pagina 186

4.2 FUNCTION CALL Instruction (FUNC) 4-3 4.2 FUNCTION CALL Instruction (FUNC) [Outline] The FUNC instruction is used to call a user function or syste

Pagina 187

4.2 FUNCTION CALL Instruction (FUNC) 4-4 [Program Example]

Pagina 188

1.1 N.O. Contact Instruction (NOC) 1-2 1.1 N.O. Contact Instruction (NOC) [Outline] The NOC sets the value of the bit output to ON if the value of th

Pagina 189 - Name Bit Name Remarks

4.3 INPUT STRAIGHT Instruction (INS) 4-5 4.3 DIRECT INPUT STRING Instruction (INS) [Outline] The INS instruction continuously performs direct input t

Pagina 190

4.3 INPUT STRAIGHT Instruction (INS) 4-6 Method of setting MDSEL d:Data offset (0≦d≦7)FC840a b c d Hexadecimal: abcdHa:Input module typeb:Rack number

Pagina 191 - 9.7.1 Parameters

4.4 OUTPUT STRAIGHT Instruction (OUTS) 4-7 4.4 DIRECT OUTPUT STRING Instruction (OUTS) [Outline] The OUTS instruction continuously performs direct ou

Pagina 192 - PARAMETER

4.4 OUTPUT STRAIGHT Instruction (OUTS) 4-8 [Program Example] Two words output to LIO-01 mounted at rack 3, slot 10. Notes: Two outputs will be

Pagina 193 - ■ Function Code (PARAM04)

4.5 EXTENSION PROGRAM CALL Instruction (XCALL) 4-9 4.5 EXTENSION PROGRAM CALL Instruction (XCALL) [Outline] The XCALL instruction is used to call an

Pagina 194 - ■ Data Size (PARAM06)

4.6 WHILE Instruction (WHILE, END_WHILE) 4-10 4.6 WHILE Instruction (WHILE, END_WHILE) [Outline] Instruction between WHILE and END_WHILE is repeatedl

Pagina 195

4.6 WHILE Instruction (WHILE, END_WHILE) 4-11 [Program Example] The total for 100 registers, from MW00100 to MW00199, is stored in MW00200.

Pagina 196 - 9.7.2 Input

4.7 IF Instruction (IF, END_IF) 4-12 4.7 IF Instruction (IF, END_IF) [Outline] If the conditional expression in the IF instruction is approved, the i

Pagina 197 - 9.7.3 Program Example

4.8 IF Instruction (IF, ELSE, END_IF) 4-13 4.8 IF Instruction (IF, ELSE, END_IF) [Outline] If the conditional expression in the IF instruction is app

Pagina 198 - Figure 9.11 Program Sample

4.8 IF Instruction (IF, ELSE, END_IF) 4-14 [Program Example] MW00011 is set to 0 if MW00010 is positive number, and set to 1 if MW00010 is negative n

Pagina 199

1.2 N.C. Contact instruction (NCC) 1-3 1.2 N.C. Contact instruction (NCC) [Outline] The NCC sets the value of the bit output to OFF when the value of

Pagina 200 - 9.8.1 Parameters

4.9 FOR Instruction (FOR, END_FOR) 4-15 4.9 FOR Instruction (FOR, END_FOR) [Outline] The instruction sequence surrounded by the FOR instruction and t

Pagina 201 - Function Code Setting

4.9 FOR Instruction (FOR, END_FOR) 4-16 [Program Example] The high byte and low byte, form MW00100 to MW00102, are exchanged.

Pagina 202 - 9.8.2 Input

4.10 EXPRESSION Instruction (EXPRESSION) 4-17 4.10 EXPRESSION Instruction (EXPRESSION) [Outline] EXPRESSION instruction is composed by one block. It

Pagina 203 - 9.8.3 Output

5 Basic Function Instructions 5-1 5 Basic Function Instructions 5.1 SQUARE ROOT Instruction (SQRT)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・5-2 5.2 SINE I

Pagina 204 - 9.8.4 Program Example

5.1 SQUARE ROOT Instruction (SQRT) 5-2 5.1 SQUARE ROOT Instruction (SQRT) [Outline] The SQRT instruction calculates the square root of an integer or

Pagina 205 - Figure 9.12 Program Sample

5.1 SQUARE ROOT Instruction (SQRT) 5-3 [Program Example] Integer type data • When the input is a positive number • When the input is a negative numbe

Pagina 206

5.2 SINE Instruction (SIN) 5-4 5.2 SINE Instruction (SIN) [Outline] The SIN instruction calculates the sine of an integer or real number value as the

Pagina 207 - Name Bit No. Remarks

5.2 SINE Instruction (SIN) 5-5 [Program Example] Integer type data Input X = 30 degrees (MW00100 = 30*100 = 3000) Output SIN (X) = 0.50 (MW00102 = 0.

Pagina 208 - WRITE ENTER command

5.3 COSINE Instruction (COS) 5-6 5.3 COSINE Instruction (COS) [Outline] The COS instruction calculates the cosine of integer or real number values as

Pagina 209 - 9.9.3 Program Example

5.3 COSINE Instruction (COS) 5-7 [Program Example] Integer type data Input X = 60 degrees (MW00100 = 60*100 = 6000) Output COS (X) = 0.50 (MW00102 =

Pagina 210

1.3 10-MS ON-DELAY TIMER Instructions (TON[10ms]) 1-4 1.3 10-MS ON-DELAY TIMER Instruction (TON[10ms]) [Outline] The TON[10ms] is executed while the

Pagina 211

5.4 TANGENT Instruction (TAN) 5-8 5.4 TANGENT Instruction (TAN) [Outline] The TAN instruction uses the Source as the input (unit = degrees) and store

Pagina 212

5.5 ARC SINE Instruction (ASIN) 5-9 5.5 ARC SINE Instruction (ASIN) [Outline] The ASIN instruction uses the Source as the input and stores the arc si

Pagina 213

5.6 ARC COSINE Instruction (ACOS) 5-10 5.6 ARC COSINE Instruction (ACOS) [Outline] The ACOS instruction uses the Source as the input and stores the a

Pagina 214

5.7 ARC TANGENT Instruction (ATAN) 5-11 5.7 ARC TANGENT Instruction (ATAN) [Outline] The ATAN instruction calculates the arc tangent of integer or re

Pagina 215

5.7 ARC TANGENT Instruction (ATAN) 5-12 [Program Example] Integer type data Input X = 1.00 (MW00100 = 1.00*100 = 100) Output X = 45 degrees (MW00102

Pagina 216

5.8 EXPONENT Instruction (EXP) 5-13 5.8 EXPONENT Instruction (EXP) [Outline] The EXP instruction uses the Source as the input (x) and stores the natu

Pagina 217

5.9 NATURAL LOGARITHM Instruction (LN) 5-14 5.9 NATURAL LOGARITHM Instruction (LN) [Outline] The LN instruction uses the Source as the input (x) and

Pagina 218

5.10 COMMON LOGARITHM Instruction (LOG) 5-15 5.10 COMMON LOGARITHM Instruction (LOG) [Outline] The LOG instruction uses the Source as the input (x) a

Pagina 219

6 Data Manipulation Instructions 6-1 6 Data Manipulation Instructions 6.1 BIT ROTATION LEFT Instruction (ROTL)・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・6-2 6.

Pagina 220

6.1 BIT ROTATION LEFT Instruction (ROTL) 6-2 6.1 BIT ROTATION LEFT Instruction (ROTL) [Outline] The ROTL instruction is used to rotate bits to the le

Comentarios a estos manuales

Sin comentarios