67
SECTION 5
Instruction Set
5-1
Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2
Notation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-3
Instruction Format
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4
Data Areas, Definer Values, and Flags
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4-1
Coding Other Instructions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5
Ladder Diagram Instructions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5-1
LOAD, LOAD NOT, AND, AND NOT, OR, and OR NOT
. . . . . . . . . . . . . . . . .
5-5-2
AND LOAD and OR LOAD
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6
Bit Control Instructions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6-1
OUTPUT and OUTPUT NOT – OUT and OUT NOT
. . . . . . . . . . . . . . . . . . . . .
5-6-2
DIFFERENTIATE UP and DIFFERENTIATE DOWN –
DIFU(13) and DIFD(14)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6-3
KEEP – KEEP(11)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7
INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03)
. . . . . . . . . . . . . . . . . . . .
5-8
JUMP and JUMP END – JMP(04) and JME(05)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-9
END – END(01)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-10 NO OPERATION – NOP(00)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-11 Timer and Counter Instructions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-11-1
TIMER – TIM
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-11-2
HIGH-SPEED TIMER – TIMH(15)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-11-3
Analog Timer Unit
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-11-4
COUNTER – CNT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-11-5
REVERSIBLE COUNTER – CNTR(12)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-11-6
HIGH-SPEED DRUM COUNTER – HDM(61)
. . . . . . . . . . . . . . . . . . . . . . . . . .
5-11-7
REVERSIBLE DRUM COUNTER – RDM(60)
. . . . . . . . . . . . . . . . . . . . . . . . .
5-12 Data Shifting
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-12-1
SHIFT REGISTER – SFT(10)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-12-2
REVERSIBLE SHIFT REGISTER – SFTR(84)
. . . . . . . . . . . . . . . . . . . . . . . . . .
5-12-3
WORD SHIFT – WSFT(16)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13 Data Movement
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-1
MOVE – MOV(21)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13-2
MOVE NOT – MVN(22)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14 DATA COMPARE – CMP(20)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-15 Data Conversion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-15-1
BCD-TO- BINARY – BIN(23)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-15-2
BINARY-TO-BCD – BCD(24)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-15-3
4-TO-16 DECODER – MLPX(76)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-15-4
16-TO-4 ENCODER – DMPX(77)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16 BCD Calculations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16-1
BCD ADD – ADD(30)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16-2
BCD SUBTRACT – SUB(31)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16-3
BCD MULTIPLY – MUL(32)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16-4
BCD DIVIDE – DIV(33)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16-5
SET CARRY – STC(40)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16-6
CLEAR CARRY – CLC(41)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-17 Subroutines
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-17-1
SUBROUTINE DEFINE and SUBROUTINE RETURN
SBN(92)/RET(93)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-17-2
SUBROUTINE ENTRY – SBS(91)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-18 Step Instructions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-18-1
STEP DEFINE and STEP START – STEP(08)/SNXT(09)
. . . . . . . . . . . . . . . . .
5-19 Special Instructions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-19-1
I/O REFRESH – IORF(97)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-19-2
END WAIT – ENDW(62)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-19-3
NOTATION INSERT – NETW(63)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Содержание SYSMAC C20K
Страница 1: ...Cat No W146 E1 5 Programmable Controllers SYSMAC C20K C28K C40K C60K ...
Страница 2: ...K type Programmable Controllers OPERATION MANUAL Revised July 1999 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 19: ...7 SECTION 2 Hardware Considerations 2 1 Introduction 2 2 Indicators 2 3 PC Configuration ...
Страница 225: ...Cat No W146 E1 5 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...