8CP1E CPU Unit Instructions Reference Manual(W483)
CONTENTS

Introduction...............................................................................................................1

CP1E CPU Unit Manuals...........................................................................................2

Manual Structure.......................................................................................................5

Safety Precautions..................................................................................................15

Precautions for Safe Use........................................................................................18

Regulations and Standards....................................................................................19

Related Manuals......................................................................................................20

Section 1 Summary of Instructio ns ............................................ ..1-1

1-1 Summary of Instructions........................................................................................................1-2

Section 2 Instructions ................................ .................................... 2-1

Notation and Layout of Instruction Descriptions ......................................................................... 2-2
Sequence Input Instructions.......................................................................................................... 2-5
LD/LD NOT . ........................... ........................... .......................... ........................... ............................. ....... 2-7
AND/AND NOT ................... ......................... ........................ ........................ ......................... ..................... 2-9
OR/OR NOT ............ ......................... ........................ ........................ ......................... ...............................2-11
AND LD/OR LD ..... ........................ ........................ ......................... ........................ ........................ ..........2 -13
NOT ....................... ........................ ........................ ......................... ........................ ........................... .......2-16
UP/DOWN .................. ............................. ............................. ............................. ............................. .......... 2-1 7
Sequence Output Instructions..................................................................................................... 2-18
OUT/OUT NOT ................... ......................... ........................ ........................ ......................... ................... 2-18
TR ......................... ......................................... .......................................... ...................................... .......... 2-2 0
KEEP ....................................................................................................................................................... 2-2 1
DIFU ...................... ........................... .......................... ........................... .......................... ........... ............ .. 2-25
DIFD ...................... ........................... .......................... ........................... .......................... ........... ............ .. 2-27
SET/RSET ................. .............................................. .............................................. .................................. 2-29
SETA/RSTA ................................... .................................. .................................. ..................................... .. 2-31
SETB/RSTB ............... .................................... ..................................... .....................................................2-33
Sequence Control Instructions..................................................................................................... 2-35
END ...................... .............................................. .............................................. ....................................... 2-38
NOP ...................... ......................................... .......................................... ...................................... .......... 2-39
IL/ILC .................... .............................................. .............................................. ....................................... 2-40
MILH/MILR/MILC ......... ............................................ ............................................ .................................... 2-44
JMP/CJP/JME ............ ............................... ................................ ................................ ............................... 2-5 3
FOR/NEXT ................. ............................... ................................ ................................ ............................. .. 2-56
BREAK ..................................................................................................................................................... 2-5 9
Timer and Counter Instructions................................................................................................... 2-60
TIM/TIMX ................ ............................................ ............................................ ......................................... 2-66
TIMH/TIMHX .............. ....................................... ....................................... ......................................... ....... 2-69
TMHH/TMHHX ........... ............................... ................................ ................................ ............................... 2-7 2
TTIM/TTIMX ............... ............................... ................................ ................................ ...............................2-74
TIML/TIMLX ............... ......................................... ......................................... ............................................2-77
CNT/CNTX ................. ............................... ................................ ................................ ............................. .. 2-80