background image

14

Description of Tasks

Section 1-6

• A card that is activated will remain activated and will be read in subse-

quent sequences. A card that is deactivated will remain deactivated and
will be skipped until it is reactivated by another card.

1-6

Description of Tasks

Tasks are broadly grouped into the following types:

1,2,3...

1.

Cyclic tasks (32 max.)

Tasks that will be executed once per cycle if executable. Execution can
also be disabled for cyclic tasks if required.

2.

Interrupt tasks

Tasks that are executed when the interrupt occurs whether or not a cyclic
task is being executed.

Interrupt tasks are grouped into the following four types (five types includ-
ing the extra cyclic tasks for CS1-H, CJ1-H, or CJ1M CPU Units):

a) Power OFF interrupt task:

Executed when power is interrupted.
(1 max.)

b) Scheduled interrupt task:

Executed at specified intervals. (2 max.).

c)

I/O interrupt task (note):

Executed when an Interrupt Input Unit in-
put turns ON (32 max.).

d) External interrupt task (note):Executed (256 max.) when requested by

an Special I/O Unit, CPU Bus Unit, or In-
ner Board (CS Series only).

e) Extra cyclic tasks:

Interrupt tasks that are treated as cyclic
tasks. Extra cyclic tasks are executed
once every cycle as long as they are in an
executable condition.

A total of 288 tasks with 288 programs can be created and controlled through
the CX-Programmer. These include up to 32 cyclic tasks and 256 interrupt
tasks.

Note CJ1 CPU Units do not currently support I/O interrupt tasks and external inter-

rupt tasks. The maximum number of tasks for a CJ1 CPU Unit is thus 35, i.e.,
32 cyclic tasks and 3 interrupt tasks. The total number of programs that can
be created and managed is also 35.

Earlier program: 
Like a scroll

CS/CJ-series program:

Like a series of cards that can be activated 
or deactivated by other cards.

Activated

Deactivated

Содержание CJ1G-CPU series

Страница 1: ...PROGRAMMING MANUAL Cat No W394 E1 03 SYSMAC CS CJ Series CS1G H CPU EV1 CS1G H CPU H CJ1G CPU CJ1G H CPU H CJ1M CPU Programmable Controllers...

Страница 2: ...SYSMAC CS CJ Series CS1G H CPU EV1 CS1G H CPU H CJ1G CPU CJ1G H CPU H CJ1M CPU Programmable Controllers Programming Manual Revised July 2002...

Страница 3: ...iv...

Страница 4: ...reviated Wd in documentation in this sense The abbreviation PLC means Programmable Controller PC is used however in some Program ming Device displays to mean Programmable Controller Visual Aids The fo...

Страница 5: ...vi...

Страница 6: ...l Instructions 75 3 4 Timer and Counter Instructions 78 3 5 Comparison Instructions 82 3 6 Data Movement Instructions 86 3 7 Data Shift Instructions 89 3 8 Increment Decrement Instructions 93 3 9 Symb...

Страница 7: ...Functions 233 6 1 Cycle Time High speed Processing 235 6 2 Index Registers 252 6 3 Serial Communications 261 6 4 Changing the Timer Counter PV Refresh Mode 276 6 5 Using a Scheduled Interrupt as a Hig...

Страница 8: ...the functions used to manipulate file memory Section 6 provides details on advanced functions Cycle time high speed processing index registers serial communications startup and maintenance diagnostic...

Страница 9: ...S1G H CPU EV1 CS1G H CPU H CJ1G CPU CJ1G H CPU H CS1W SCB21 41 CS1W SCU21 CJ1W SCU41 Communications Commands Reference Manual W342 Describes the C series Host Link and FINS communications commands use...

Страница 10: ...e Controllers You must read this section and understand the information contained before attempting to set up or operate a PLC system 1 Intended Audience xii 2 General Precautions xii 3 Safety Precaut...

Страница 11: ...sure to read this manual before attempting to use the Unit and keep this man ual close at hand for reference during operation WARNING It is extremely important that a PLC and all PLC Units be used for...

Страница 12: ...asure for such problems external safety measures must be provided to ensure safety in the system When the 24 V DC output service power supply to the PLC is over loaded or short circuited the voltage m...

Страница 13: ...the PLC System can have a large effect on the longevity and reliability of the system Improper operating environments can lead to malfunction failure and other unforeseeable problems with the PLC Syst...

Страница 14: ...which can occur even if automatic allocation is used the PLC Link Units and I O Units may both exhibit faulty operation WARNING Always heed these precautions Failure to abide by the following precauti...

Страница 15: ...system If the PLC power supply is turned ON after the control power sup ply temporary errors may result in control system signals because the output terminals on DC Output Units and other Units will m...

Страница 16: ...s Not disconnecting the functional ground terminal may result in burning Install the Units properly as specified in the operation manuals Improper installation of the Units may result in malfunction W...

Страница 17: ...ing circuit boards cover them in antistatic mate rial to protect them from static electricity and maintain the proper storage temperature Do not touch circuit boards or the components mounted to them...

Страница 18: ...ards Note Applicable EMC Electromagnetic Compatibility standards are as follows EMS Electromagnetic Susceptibility CS Series EN61131 2 and EN61000 6 2 CJ Series EN61000 6 2 EMI Electromagnetic Interfe...

Страница 19: ...re Examples When switching an inductive load connect an surge protector diodes etc in parallel with the load or contact as shown below Circuit Current Characteristic Required element AC DC Yes Yes If...

Страница 20: ...load current The reversed dielectric strength value of the diode may be two to three times larger than the supply voltage if the surge protector is applied to electronic circuits with low circuit vol...

Страница 21: ...xxii Conformance to EC Directives 6...

Страница 22: ...ts Only 2 1 2 Using the Internal Clock CS1 CPU Units Only 5 1 3 Internal Structure of the CPU Unit 6 1 3 1 Overview 6 1 3 2 Block Diagram of CPU Unit Memory 7 1 4 Operating Modes 8 1 4 1 Description o...

Страница 23: ...Units Only Battery Installation Before using a CS1CPU Unit you must install the Battery Set in the CPU Unit using the following procedure 1 2 3 1 Insert a flat blade screwdriver in the small gap at th...

Страница 24: ...nnector to the battery connector terminals Connect the red wire to the top and the white wire to the bottom terminal There are two sets of battery connector terminals connect the battery to either one...

Страница 25: ...ory can also be cleared from the CX Programmer Refer to the CX Pro grammer Operation Manual for the actual procedure Clearing Errors After clearing memory clear any errors from the CPU Unit including...

Страница 26: ...U Unit When using the internal clock turn ON the power supply after mounting the Battery Set and 1 use a Programming Device Programming Console or CX Programmer to set the clock time 2 execute the CLO...

Страница 27: ...cuted in order starting at the top of the program After all cyclic tasks are executed the I O for all Units are refreshed and the cycle repeats again starting at the lowest cyclic task number Refer to...

Страница 28: ...ree operation without using a Memory Card I O memory including most of the DM Area are not backed up without a battery 1 3 2 Block Diagram of CPU Unit Memory CPU Unit memory RAM is comprised of the fo...

Страница 29: ...o flash memory Do not turn OFF the power supply to the CPU Unit until the backup operation has been completed i e until the BKUP indicator goes out Refer to 6 6 10 Flash Memory for details 1 4 Operati...

Страница 30: ...PU Unit Transferring I O memory from a host computer or from another PLC on a network MONITOR Mode The following operations can be performed through Programming Devices while the program is executing...

Страница 31: ...ses in the Auxiliary Area are held and others are cleared 2 Held areas Holding Area DM Area EM Area Counter PVs and Counter Completion Flags 3 Data in I O memory will be retained when the IOM Hold Bit...

Страница 32: ...rogramming Console is not connected Conditions CS1 CPU Unit CJ1 CS1 H or CJ1 H CPU Unit PLC Setup is set to start according to the mode set on the Programming Con sole but a Programming Console is not...

Страница 33: ...cyclic task will be interrupted and the program allocated to the interrupt task will be executed Refer to the section on CPU Unit operation in the CS CJ Series Operation Manual for information in refr...

Страница 34: ...has been executed will be executed in subsequent cycles and a task that is on standby will remain on standby in subsequent cycles unless it is executed again from another task Note Unlike earlier prog...

Страница 35: ...t task Executed at specified intervals 2 max c I O interrupt task note Executed when an Interrupt Input Unit in put turns ON 32 max d External interrupt task note Executed 256 max when requested by an...

Страница 36: ...d that tasks can be debugged individually When creating modular programs addresses can be specified by symbols to facilitate standardization Cyclic task 0 Executed in order starting from the lowest nu...

Страница 37: ...ot a Pro gramming Console to start or not to start at the beginning of operation Once program execution has been started tasks can be controlled with TKON 820 and TKOF 821 Task 0 control task Task 1 T...

Страница 38: ...uted at the start of operation unconditionally Task 1 executable when a is ON Task 1 put on standby when b is ON Task 2 is executable when c is ON and task 1 has been executed Task 0 Task 1 Task 2 Tas...

Страница 39: ...ns in a jumped program section JMP JME Since instructions in a non executed task do not add to the cycle time the overall system performance can be improved significantly by splitting the sys tem into...

Страница 40: ...a Formats 30 2 1 7 Instruction Variations 34 2 1 8 Execution Conditions 34 2 1 9 I O Instruction Timing 36 2 1 10 Refresh Timing 38 2 1 11 Program Capacity 41 2 1 12 Basic Ladder Programming Concepts...

Страница 41: ...ces Refer to 4 4 Programming Device Operations for Tasks and to the CS CJ series Pro gramming Consoles Operation Manual W341 and CX Programmer Opera tion Manual for more details CX Programmer The CX P...

Страница 42: ...put instructions execute all functions using the power flow as an execution condition Instruction Conditions Instruction conditions are special conditions related to overall instruction exe cution tha...

Страница 43: ...flags The status of these flags are input automatically to the instruction for all differentiated up down output instructions and the DIFU 013 DIFD 014 instructions Carry CY Flag The Carry Flag is us...

Страница 44: ...s 2 If an instruction requiring an execution condition is connected directly to the left bus bar without a logical start instruction a program error will occur when checking the program on a Programmi...

Страница 45: ...f bits 00 to 15 in word 0010 in the CIO Area would be as shown below This address is given as CIO 0010 in this manual DM and EM Areas addresses are given with D or E prefixes as shown below for the ad...

Страница 46: ...on examples Specifying bit addresses Specifying word addresses MOV 0003 D00200 The word and bit numbers are specified di rectly to specify a bit input input bits Bit number 00 to 15 Indicates the word...

Страница 47: ...Example If the Data Memory DM word contains 32768 E1_00000 in bank 0 in Extended Data Mem ory EM would be specified Note If the Extended Data Memory EM bank number is specified as n and the contents o...

Страница 48: ...cify constant IR Constant off sets range from 2048 to 2047 deci mal The offset is converted to binary data when the instruction is executed 5 IR0 31 IR1 LD 5 IR0 Loads the bit with the PLC memory addr...

Страница 49: ...9999999 Text string Description Symbol Examples Text string data is stored in ASCII one byte except for special charac ters in order from the leftmost to the rightmost byte and from the right most sma...

Страница 50: ...1 Hex 0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 0 Space 0 P p 0 P 0001 1 1 A Q a q 1 A Q 0010 2 2 B R b r 2 B R 0011 3 3 C S c s 3 C S 0100 4 4 D T d t 4 D T 0101 5 5 E U e u 5 E U 0110 6 6 F V f v 6 F V 0...

Страница 51: ...213 212 211 210 29 28 27 26 25 24 23 22 21 20 23 22 21 20 3276816384 81924092 2048 1024 512 256 128 64 12 16 8 4 2 1 23 22 21 20 23 22 21 20 23 22 21 20 Binary Decimal Hex Sign bit 0 Positive 1 Negat...

Страница 52: ...tain the exponent The exponent is expressed in binary as 127 plus n in 2n Note This format conforms to IEEE754 standards for single precision floating point data and is used only with instructions tha...

Страница 53: ...Hex use b Hex 10000 Hex a Hex Example to determine the two s complement of 3039 Hex use 10000 Hex 3039 Hex CFC7 Hex Similarly use a Hex 10000 Hex b Hex to determine the value a Hex from the two s comp...

Страница 54: ...0 0100 5 5 0101 0101 6 6 0110 0110 7 7 0111 0111 8 8 1000 1000 9 9 1001 1001 10 A 1010 0001 0000 11 B 1011 0001 0001 12 C 1100 0001 0010 13 D 1101 0001 0011 14 E 1110 0001 0100 15 F 1111 0001 0101 16...

Страница 55: ...e If the results are ON power flow is output i e the execution con dition is turned ON Input differentiated Instructions Upwardly Differentiated Instructions Instruction Preceded by Output Instruction...

Страница 56: ...instruction reads bit status makes comparisons tests bits or perform other types of processing every cycle and will output the execution condi tion power flow when results switch from ON to OFF The ex...

Страница 57: ...individual instructions using a program comprised of only LD and OUT instructions Differentiated Instructions A differentiated instruction has an internal flag that tells whether the previ ous value i...

Страница 58: ...the interlock is in effect Use in Jumps JMP JME Instructions Just as for interlocks the pre vious value flag for a differentiated instruction is not changed when the instruction is jumped i e the prev...

Страница 59: ...cuted in multiple tasks I O will be refreshed after the final END 001 instruction in the program allocated to the highest number among all ready cyclic tasks and will not be refreshed after the END 00...

Страница 60: ...c tion Units Refreshed for I O REFRESH Instruction Note C200H I O Units cannot be mounted to CJ series PLCs Location CPU or Expansion I O Rack but not SYSMAC BUS Slave Racks Units Basic I O Units CS C...

Страница 61: ...efreshed for IORF 097 Units Refreshed for DLNK 226 Location CPU or Expansion I O Rack but not SYSMAC BUS Slave Racks Units Basic I O Units CS CJ series Basic I O Units Refreshed C200H Basic I O Units...

Страница 62: ...eries PLCs was measured in words Refer to the information at the end of10 5 Instruction Execution Times and Number of Steps in the Operation Manual for your PLC for guidelines on converting program ca...

Страница 63: ...ng consists of instruction blocks that begin with an LD LD NOT instruction indicating a logical start Mnemonics A mnemonic program is a series of ladder diagram instructions given in their mnemonic fo...

Страница 64: ...Mnemonic 1 LD A 9 AND E 2 LD C 10 OUT R2 3 OUT TR0 11 LD A 4 AND D 12 AND B 5 OR LD 13 OUT R1 6 AND B 14 LD C 7 OUT R1 15 AND D 8 LD TR0 16 OUT R2 2 There is no limit to the number of I O bits work bi...

Страница 65: ...s timers counters and other output instructions cannot be con nected directly to the left bus bar If one is connected directly to the left bus bar a rung error will occur during the programming check...

Страница 66: ...ne indicating logi cal starts must match the total number of AND LD and OR LD instructions connecting the instruction blocks If they do not match then a rung error will occur during a Programming Devi...

Страница 67: ...the next LD LD NOT instruction is considered a single instruction block Create a single rung consisting of two instruction blocks using an AND LD instruction to AND the blocks or by using an OR LD ins...

Страница 68: ...First separate the rung into small blocks a to f 0000 00 0000 01 a 0010 00 0010 01 b 1 0005 00 c 2 0000 02 d 0000 03 3 0000 04 0000 05 e 0000 06 f 4 5 0000 03 0000 00 0000 01 0000 02 0010 00 0005 00 0...

Страница 69: ...2 a AND 000002 AND NOT 000003 0000 03 c 0000 06 f OR 000006 0000 04 0000 05 LD 000004 AND 000005 AND LD 0005 00 OUT 000500 1 2 3 4 5 Address Instruction Operand 000200 LD 000000 000201 AND 000001 0002...

Страница 70: ...m each individually Connect A and B blocks with an AND LD A block B block Program B1 block and then program B2 block Connect B1 and B2 blocks with an OR LD and then A and B blocks with an AND LD Progr...

Страница 71: ...as many A to n blocks as are present Connect A block and B block with an AND LD B1 block B2 block A1 block A2 block A block B block C block n block LD AND NOT 000001 LD NOT 000002 AND OR LD LD AND LD...

Страница 72: ...04 Instruction Operand Z 0000 00 0000 03 0000 01 0000 02 0002 04 0000 05 0000 04 0000 07 0000 06 0000 00 0000 03 0000 01 0000 02 Z 0000 00 Z 0000 03 0000 02 0000 00 0000 01 0000 00 0000 03 0000 02 000...

Страница 73: ...AND NOT 000003 OUT TIM 0100 AND OUT Instruction Operand Reset input Error input Error display If a holding bit is in use the ON OFF status would be held in memory even if the power is turned OFF and t...

Страница 74: ...e connected without modification In the example at the left a temporary storage bit TR0 output instruction and load LD instruction are needed at a branch point if the rungs are programmed without modi...

Страница 75: ...tion Results The same execution condition a is used for instructions A and B to execute instruction B based on the execution results of instruction A In this case instruction B will be executed accord...

Страница 76: ...diagram program The following is an exam ple Using Execution Results in N C and N C Inputs The Condition Flags will pick up instruction B execution results as shown in the example below even though th...

Страница 77: ...D00200 for instruction 1 but then the Equals Flag will be turned OFF because the 0200 source data is not 0000 Hex The MOV instruction at 2 will then be executed and 0300 will be moved to D0300 A rung...

Страница 78: ...from OFF to ON because of results reflected from a previous rung In this case then instructions A and B are not differentiated instructions the DIFU of DIFD instruction is used instead as shown below...

Страница 79: ...Flag will turn ON or OFF depending on whether the source data for the move instruction is 0000 Hex or not Carry Flag The CY Flag is used in shift instructions addition and subtraction instructions wi...

Страница 80: ...m section Instructions Instruction condition Status Subroutine SBS SBN and RET instruc tions Subroutine program is exe cuted The subroutine program sec tion between SBN and RET instructions is execute...

Страница 81: ...n a subroutine program is placed after a subroutine program SBN to RET that program will not be executed Instructions Not Available in Subroutines The following instructions cannot be placed in a subr...

Страница 82: ...OP END 001 END IL 002 and ILC 003 INTERLOCK and INTER LOCK CLEAR JMP 004 and JME 005 JUMP and JUMP END CJP 510 and CJPN 511 CONDITIONAL JUMP and CONDITIONAL JUMP NOT JMP0 515 and JME0 516 MULTIPLE JUM...

Страница 83: ...The program will not execute prop erly unless these instructions are paired Classification by Function Mnemonic Instruction Sequence Control FOR 512 NEXT 513 and BREAK 514 FOR NEXT and BREAK LOOP END...

Страница 84: ...s in instructions Indirect addressing errors will be detected in the pro gram execution check and the ER Flag will turn ON as described in the next section Refer to the CS CJ series Programmable Contr...

Страница 85: ...JPN JME SBS SBN RET MCRO SBN RET STEP SNXT BPRG BEND IF IEND LOOP LEND Restricted programming locations for BPRG BEND Restricted programming locations for SBN RET Restricted programming locations for...

Страница 86: ...turn ON if an instruction processing error occurs and the ER Flag turns ON CX Programmer Programming Consoles The following functionality is provided by the CX Programmer for multi word operands that...

Страница 87: ...of a word is used as a bit address If Instruction Errors are set to Stop Operation in the PLC Setup then opera tion will stop fatal error and the Illegal Access Error Flag A29510 will turn ON if an il...

Страница 88: ...ction is missing A29511 will be ON the address where END 001 was expected will be stored If there is a task execution error A29512 will be ON FFFFFFFF Hex will be stored in A298 A299 A298 Rightmost po...

Страница 89: ...w Error During online editing more than 131 071 differentiated instructions have been inserted or deleted The Differentiation Overflow Error Flag A29513 turns ON UM User Memory Overflow Error An attem...

Страница 90: ...108 3 14 Double precision Floating point Instructions CS1 H CJ1 H or CJ1M Only 112 3 15 Table Data Processing Instructions 116 3 16 Data Control Instructions 120 3 17 Subroutine Instructions 123 3 18...

Страница 91: ...D AND AND Takes a logical AND of the status of the specified operand bit and the cur rent execution condition Required AND NOT AND NOT AND NOT AND NOT AND NOT AND NOT AND NOT CS1 H CJ1 H or CJ1M CPU U...

Страница 92: ...D NOT AND NOT and OR NOT the execution condition is OFF when the specified bit in the specified word is ON and ON when the bit is OFF Not required BIT TEST AND TST 350 LD TST 350 AND TST 350 and OR TS...

Страница 93: ...OT and OR NOT the execution condition is OFF when the specified bit in the specified word is ON and ON when the bit is OFF Required Instruction Mnemonic Code Symbol Operand Function Location Execution...

Страница 94: ...n goes from OFF to ON rising edge B Bit DIFD 014 B Execution condition Status of B One cycle DIFD 014 turns the designated bit ON for one cycle when the execution condition goes from ON to OFF falling...

Страница 95: ...fied word when the execu tion condition is ON Unlike the RSET instruction RSTB 533 can be used to reset a bit in a DM or EM word Output Required SINGLE BIT OUTPUT CS1 H CJ1 H or CJ1M only OUTB OUTB OU...

Страница 96: ...eshing End of the main program Indicates the end of a program END 001 completes the execution of a program for that cycle No instructions written after END 001 will be executed Execution proceeds to t...

Страница 97: ...the same jump number JMP 004 and JME 005 are used in pairs N Jump number JME 005 N N Jump number CJP 510 N Execution condition OFF Instructions executed Instructions jumped Instructions in this sectio...

Страница 98: ...ed Instructions jumped Jumped instructions are processed as NOP 000 Instruction execution times are the same as NOP 000 Execution condition a OFF Execution condition b ON Instructions executed Instruc...

Страница 99: ...BCD CS1 H CJ1 H or CJ1M only N Timer number S Set value TIM N S Timer input Timer PV SV Completion Flag Timer input Timer PV SV Completion Flag TIM operates a decrementing timer with units of 0 1 s T...

Страница 100: ...Reset input Timer input Timer PV SV Completion Flag Reset input PV maintained Timing resumes TTIM 087 operates an incrementing timer with units of 0 1 s The setting range for the set value SV is 0 to...

Страница 101: ...SV 7 to Completion flags D1 Bit 7 to Timer PV Timer SVs SV 2 SV 1 SV 0 0 Bit 2 Bit 1 Bit 0 MTIM 543 operates a 0 1 s incrementing timer with eight independent SVs and Completion Flags The setting ran...

Страница 102: ...CJ1 H or CJ1M only Instruction Mnemonic Code Symbol Operand Function Location Execution condition N Counter number S Set value CNTR 012 N S Incre ment input Reset input Decre ment input Increment inp...

Страница 103: ...d LD AND OR S 302 307 312 317 322 327 S1 Comparison data 1 S2 Comparison data 2 Symbol comparison instructions signed compare two values constants and or the contents of specified words in signed 16 b...

Страница 104: ...d or the contents of specified words and outputs the result to the Arithmetic Flags in the Auxiliary Area S1 Comparison data 1 S2 Comparison data 2 CMPL 060 S1 S2 Unsigned binary comparison Arithmetic...

Страница 105: ...ta to the contents of 16 consecutive words and turns ON the corresponding bit in the result word when the contents of the words are equal S Source data T 1st word of table R Result word BCMP 068 S T R...

Страница 106: ...OM PARE CS1 H CJ1 H or CJ1M only ZCPL ZCPL 116 Compares the 32 bit unsigned binary value in CD and CD 1 word contents or constant to the range defined by LL and UL and outputs the results to the Arith...

Страница 107: ...to the specified word Source word Destination word Bit status not changed S 1st source word D 1st destination word MOVL 498 S D Transfers two words of data to the specified words S D Bit status not ch...

Страница 108: ...D Transfers the specified digit or digits Each digit is made up of 4 bits C Control word S 1st source word D 1st destination word XFRB 062 C S D Transfers the specified number of consecutive bits N N...

Страница 109: ...an offset value to the base address S Bs Bs n Of Bs Source base address Of Offset D Destination word COLL 081 Bs Of D Transfers the source word calculated by adding an offset value to the base address...

Страница 110: ...ter Status of data input for each shift input Lost E St 1 St 2 St C Control word St Starting word E End word SFTR 084 C St E Data input Shift direc tion Data input St E St E Creates a shift register t...

Страница 111: ...ifts the contents of Wd and Wd 1 one bit to the left Wd Word ASR 026 Wd Shifts the contents of Wd one bit to the right Wd Word ASRL 571 Wd Wd Wd 1 Shifts the contents of Wd and Wd 1 one bit to the rig...

Страница 112: ...the leftmost bit and to the Carry Flag CY Wd Word RRNL 577 Wd Wd 1 Wd Shifts all Wd and Wd 1 bits one bit to the right not including the Carry Flag CY The contents of the rightmost bit of Wd 1 is shi...

Страница 113: ...in Shifts the specified 16 bits of word data to the left by the specified number of bits D Shift word C Control word NSLL 582 D C Shift n bits Lost N bits Contents of a or 0 shifted in Shifts the spe...

Страница 114: ...s the 4 digit hexadecimal content of the specified word by 1 Wd Word L 591 Wd Wd 1 Wd Wd 1 Wd Increments the 8 digit hexadecimal content of the specified words by 1 Wd Word 592 Wd Wd Wd Decrements the...

Страница 115: ...ord R 1st result word L 401 Au Ad R Adds 8 digit double word hexadecimal data and or constants Au 1 Ad 1 R 1 CY Au Ad R Signed binary Signed binary Signed binary CY will turn ON when there is a carry...

Страница 116: ...Y CY Au Ad R CY BCD BCD BCD CY will turn ON when there is a carry Au 1st augend word Ad 1st addend word R 1st result word BCL 407 Au Ad R Adds 8 digit double word BCD data and or constants with the Ca...

Страница 117: ...is a borrow Mi Minuend word Su Subtrahend word R Result word B 414 Mi Su R Subtracts 4 digit single word BCD data and or constants Mi Su R CY BCD BCD BCD CY will turn ON when there is a carry Mi 1st...

Страница 118: ...and word Mr 1st multiplier word R 1st result word L 421 Md Mr R Multiplies 8 digit signed hexadecimal data and or constants Md 1 Md Mr 1 Mr R 1 R R 3 R 2 Signed binary Signed binary Signed binary Md M...

Страница 119: ...t single word signed hexadecimal data and or constants Dd Dr R 1 Signed binary Signed binary Signed binary Remainder Quotient R Dd 1st dividend word Dr 1st divisor word R 1st result word L 431 Dd Dr R...

Страница 120: ...Dd Dr R Divides 4 digit single word BCD data and or constants Dd Dr R 1 R BCD BCD BCD Remainder Quotient Dd 1st dividend word Dr 1st divisor word R 1st result word BL 435 Dd Dr R Divides 8 digit doub...

Страница 121: ...ion condition S Source word R Result word NEG 160 S R Calculates the 2 s complement of a word of hexadecimal data 2 s complement Complement 1 R S S 1st source word R 1st result word NEGL 161 S R Calcu...

Страница 122: ...decoding Bit m of R is turned ON C R R 1 Reads the numerical value in the specified digit or byte in the source word turns ON the corresponding bit in the result word or 16 word range and turns OFF a...

Страница 123: ...l 0 Convert one 16 word range n 1 Start with byte 1 256 to 8 bit decoding The location of the leftmost bit in the 16 word range m is written to R Finds leftmost bit Highest bit address C R FInds the...

Страница 124: ...n word LINE 063 S N D Converts a column of bits from a 16 word range the same bit number in 16 consecutive words to the 16 bits of the destination word 0 0 0 0 1 1 1 1 0 0 0 1 0 0 0 0 1 Bit 15 Bit 00...

Страница 125: ...of signed BCD data to one word of signed binary data C Control word S 1st source word D 1st destination word BISL 472 C S D Signed BCD format specified in C Signed BCD Signed binary Signed BCD Signed...

Страница 126: ...ult word ANDL 610 I1 I2 R Takes the logical AND of corresponding bits in double words of word data and or constants I1 I1 1 I2 I2 1 R R 1 I1 I1 1 I2 I2 1 R R 1 1 1 1 1 0 0 0 1 0 0 0 0 I1 Input 1 I2 In...

Страница 127: ...1 I2 I2 1 I1 I1 1 I2 I2 1 R R 1 I1 I1 1 I2 I2 1 R R 1 R R 1 1 1 0 1 0 1 0 1 1 0 0 0 I1 Input 1 I2 Input 2 R Result word XNRW 037 I1 I2 R Takes the logical exclusive NOR of corresponding single words o...

Страница 128: ...of the specified words and outputs the integer portion of the result to the specified result word R S 1 S Binary data 32 bits Binary data 16 bits S 1st source word R Result word ROOT 072 S R Computes...

Страница 129: ...ary data 32 bits R 1 R S Source word R 1st result word FLT 452 S R Converts a 16 bit signed binary value to 32 bit floating point data and places the result in the specified result words R 1 R S Float...

Страница 130: ...32 bits Dd 1 Dr Divisor floating point data 32 bits Dr 1 Result floating point data 32 bits S 1st source word R 1st result word RAD 458 S R Converts a 32 bit floating point number from degrees to rad...

Страница 131: ...S Source 32 bit floating point data S 1 Result 32 bit floating point data SIN 1 S 1st source word R 1st result word ACOS 464 S R Calculates the arc cosine of a 32 bit floating point number and places...

Страница 132: ...S 1st source word R 1st result word EXP 467 S R Calculates the natural base e exponential of a 32 bit floating point number and places the result in the specified result words R 1 R S Source 32 bit fl...

Страница 133: ...tion condition DOUBLE FLOAT ING TO 16 BIT BINARY FIXD FIXD 841 Converts the specified double precision floating point data 64 bits to 16 bit signed binary data and outputs the result to the destinatio...

Страница 134: ...point values 64 bits each and outputs the result to the result words Output Required DOUBLE FLOAT ING POINT DIVIDE D D 848 Divides the specified double precision floating point values 64 bits each and...

Страница 135: ...The arc sine function is the inverse of the sine function it returns the angle that produces a given sine value between 1 and 1 Output Required DOUBLE ARC COSINE ACOSD ACOSD 855 Calculates the angle i...

Страница 136: ...loating point number 64 bits to the power of another double precision floating point number and outputs the result to the result words Output Required DOUBLE SYM BOL COMPARI SON LD AND or OR D 335 D 3...

Страница 137: ...egion to all zeroes TB 1st stack address S Source word PUSH 632 TB S PLC memory address PUSH 632 PLC memory address TB TB 1 TB 2 TB 3 TB TB 1 TB 2 TB 3 Writes one word of data to the specified stack T...

Страница 138: ...N Table number R Record number D Destination Index Register SETR 635 N R D Record number R Table number N PLC memory address SETR 635 writes the PLC memory ad dress m of the first word of record R to...

Страница 139: ...in the range C 1st control word R1 1st word in range D Destination word MAX 182 C R1 D R1 W 1 R1 PLC memory address Max value C words Finds the maximum value in the range C 1st control word R1 1st wo...

Страница 140: ...SINS SINS 641 Inserts the source data at the specified location in the stack and shifts the rest of the data in the stack downward The offset value indicates the location of the insertion point how ma...

Страница 141: ...ND 681 Output Required S Input word C 1st parameter word D Output word PID 190 S C D PV input S PID control Manipulated variable D Parameters C to C 8 Executes PID control according to the specified p...

Страница 142: ...oint A Point B S unsigned binary P P1 1 P1 2 P1 3 Converted value Converted value Scaling is performed according to the linear function defined by points A and B Converts unsigned binary data into uns...

Страница 143: ...Offset Offset X Y R signed binary S signed BCD Offset of 0000 X Y Max conver sion Min conver sion Max conversion Min conversion Max conver sion Min conversion X Y Converts signed BCD data into signed...

Страница 144: ...on condition ON Program end Calls the subroutine with the specified subroutine number and executes that program N Subroutine number S 1st input parameter word D 1st output parameter word MCRO 099 N S...

Страница 145: ...E ENTRY CS1 H CJ1 H or CJ1M only GSBN 751 Indicates the beginning of the subroutine program with the specified subroutine number Output Not required GLOBAL SUB ROUTINE RETURN CS1 H CJ1 H or CJ1M only...

Страница 146: ...for I O interrupts or scheduled interrupts Both I O interrupt tasks and scheduled interrupt tasks are masked disabled when the PC is first turned on MSKS 690 can be used to unmask or mask I O interrup...

Страница 147: ...n Location Execution condition DI 693 Disables execution of all interrupt tasks except the power OFF interrupt Disables execution of all interrupt tasks except the power OFF interrupt EI 694 Disables...

Страница 148: ...ier C Control data D 1st destination word PRV 881 is used to read the present value PV of a high speed counter pulse output or interrupt input counter mode Output Required COMPARISON TABLE LOAD CTBL C...

Страница 149: ...ORIGIN SEARCH ORG ORG 889 P Port specifier C Control data ORG 889 is used to perform origin searches and returns Output Required PULSE WITH VARIABLE DUTY FACTOR PWM 891 P Port specifier F Frequency D...

Страница 150: ...nit I O refreshing St E Refreshes the specified I O words S Source word Di Digit designator D 1st destination word SDEC 078 S Di D Number of digits First digit to convert Rightmost 8 bits 0 Di 7 segme...

Страница 151: ...ruction Mnemonic Code Symbol Operand Function Location Execution condition C Control data S Transfer source and number of words D Transfer destination and number of words IOWR 223 C S D Desig nated nu...

Страница 152: ...protocol mode to be changed during PLC operation Output Required Instruction Mnemonic Code Symbol Operand Function Location Execution condition NETWORK SEND SEND SEND 090 Output Required Instruction...

Страница 153: ...t destination word C 1st control word RECV 098 S D C D 15 0 15 0 S m n Requests data to be transmitted from a node in the network and receives the data Source node Local node S 1st command word D 1st...

Страница 154: ...Number of words specified in S1 and S1 1 D C Control word D1 1st destination word D2 Filename S 1st source word FWRIT 701 C D1 D2 S Memory Card or EM file memory Specified by the 4th digit of C File s...

Страница 155: ...DAR ADD CADD CADD 730 Output Required CALENDAR SUBTRACT CSUB CSUB 731 Output Required N Message number M 1st message word MSG 046 N M C 1st calendar word T 1st time word R 1st result word CADD 730 C T...

Страница 156: ...gram any number of times Output Not required Instruction Mnemonic Code Symbol Operand Function Location Execution condition S 1st source word D 1st destination word SEC 065 S D Minutes Seconds Hours S...

Страница 157: ...N M N FALS number M 1st message word or error code to generate 0000 to FFFF Execution of FALS 007 generates a fatal error with FALS number N FALS Error Flag ON Error code written to A400 Error code a...

Страница 158: ...us of the condition flags Output Required LOAD CONDI TION FLAGS CS1 H CJ1 H or CJ1M only CCL CCL 283 Reads the status of the condition flags that was saved Output Required CONVERT ADDRESS FROM CV CS1...

Страница 159: ...ion condition BLOCK PROGRAM BEGIN BPRG 096 Output Required BLOCK PROGRAM END BEND 801 Define a block programming area For every BPRG 096 there must be a cor responding BEND 801 Block program Required...

Страница 160: ...number N BPRS 812 BPRS 812 executed for block program n Block program n This block program will now be executed as long as bit a is ON to to to Pause and restart the specified block program from anot...

Страница 161: ...NDITIONAL BLOCK BRANCHING END IEND 804 If the operand bit is OFF only the instructions after IEND 804 will be exe cuted Block program Required Instruction Mnemonic Code Symbol Operand Function Locatio...

Страница 162: ...05 or WAIT 805 NOT When the execution condition goes ON OFF for WAIT 805 NOT the instruction from WAIT 805 or WAIT 805 NOT to the end of the program will be executed Block program Required TIMER WAIT...

Страница 163: ...N SV N Counter number SV Set value I Count input B executed A executed SV preset C C executed Time elapsed C executed C executed Delays execution of the rest of the block program until the specified...

Страница 164: ...ND 810 NOT turns ON or OFF respectively or until the execution condi tion for LEND 810 turns ON Block program Required Instruction Mnemonic Code Symbol Operand Function Location Execution condition Ex...

Страница 165: ...S1 Text string 1 S2 Text string 2 D First destination word 656 S1 S2 D Links one text string to another text string S1 Text string first word S2 Number of characters D First destination word LEFT 652...

Страница 166: ...a designated text string from within a text string S Text string first word D 1st destination word LEN 650 S D 1 3 5 2 4 Calculates the length of a text string S1 Text string first word S2 Replacement...

Страница 167: ...uired AND OR Required Instruction Mnemonic Code Symbol Operand Function Location Execution condition Ex1 1st exchange word 1 Ex2 1st exchange word 2 XCHG 665 Ex1 Ex2 Ex1 Ex1 Ex2 Ex2 Replaces a designa...

Страница 168: ...e specified task s task number is lower than the local task s task number m n Task m Task n Becomes execut able in that cycle Task m Task n Be comes execut able in the next cycle Makes the specified t...

Страница 169: ...148 Task Control Instructions Section 3 32...

Страница 170: ...Transitions 157 4 2 Using Tasks 158 4 2 1 TASK ON and TASK OFF 158 4 2 2 Task Instruction Limitations 162 4 2 3 Flags Related to Tasks 163 4 2 4 Designing Tasks 166 4 2 5 Global Subroutines 167 4 3 In...

Страница 171: ...ion of symbols Automatic allocation of local symbols to addresses 3 Improved overall response Overall response is improved because the system is divided into an overall control program as well as indi...

Страница 172: ...nd 0 to 255 for interrupt tasks 2 With the CS1 H CJ1 H or CJ1M CPU Units interrupt task interrupt task numbers 0 to 255 can be executed as cyclic tasks by starting them with TKON These are called extr...

Страница 173: ...ME instructions or SUBROUTINE CALL SUBROUTINE ENTRY SBS SBN instructions be split between two tasks With a CS1 H CJ1 H or CJ1M CPU Unit interrupt task can be executed as cyclic tasks by starting them...

Страница 174: ...Cyclic task n Extra cyclic task 0 Extra cyclic task m Normal cyclic tasks Extra cyclic tasks I O refresh Peripheral processing Executed in order starting at lowest number of the cyclic tasks Executed...

Страница 175: ...et With the CS1 H CJ1 H or CJ1M CPU Units interrupt task can be executed as cyclic tasks The built in interrupt inputs and high speed counter inputs on a CJ1M CPU Unit can be used to activate interrup...

Страница 176: ...cle interrupt tasks however are different from normal cyclic tasks in that they are started with the TKON 820 instruction Also the TKON 820 and TKOF instructions cannot be used in extra cyclic tasks m...

Страница 177: ...2 3 and 100 through 131 CS Series only can be created Interrupt tasks 0 4 through 99 and 132 through 255 cannot be created with a Programming Console except that 140 through 143 can be cre Task No Ex...

Страница 178: ...sk from Disabled status or Standby status to READY status Operation activated Tasks An operation activated cyclic task will switch from Disabled status to READY status when the operating mode is chang...

Страница 179: ...y status will not end the program 4 2 Using Tasks 4 2 1 TASK ON and TASK OFF The TASK ON TKON 820 and TASK OFF TKOF 821 instructions switch a cyclic task including extra cyclic tasks between READY and...

Страница 180: ...c task in READY status the Task Error Flag A29512 will turn ON and the CPU Unit will stop running Example Cyclic Task Cyclic task 0 READY status at the start of operation Cyclic task 1 Cyclic task 2 C...

Страница 181: ...Cyclic Task Numbers and the Execution Cycle Including Extra Cyclic Tasks If task m turns ON task n and m n task n will go to READY status the next cycle Example If task 5 turns ON task 2 task 2 will g...

Страница 182: ...1 for example the new current EM bank number will be valid for cyclic task 2 as well 2 IR and DR values are not set when interrupt tasks including extra cyclic tasks are started If IR and DR are used...

Страница 183: ...nstructions can be used if an interrupt task is being used as an extra task The operation of the following instructions is unpredictable in an interrupt task TIMER TIM and TIMX 550 HIGH SPEED TIMER TI...

Страница 184: ...tion Flag will turn ON when cyclic tasks shift from Dis abled INI to READY status the tasks obtain the right to execute and the tasks are executed the first time It will turn OFF when the first execut...

Страница 185: ...CX Programmer or a Programming Console No program is allocated to an activated interrupt task Task Number when Program Stopped A294 The type of task and the current task number when a task stops exec...

Страница 186: ...Tasks Separated by Function Overall control task Conveyor task Error monitoring task MMI task Communications task Analog processing task Tasks Separated by Controlled Section Overall control task A s...

Страница 187: ...s 4 Allocate the lowest numbers to tasks with the highest priority Example Allocate a lower number to the control task than to processing tasks 5 Allocate lower numbers to high priority interrupt task...

Страница 188: ...ed by the task can be split into small program units as block programs that operate with the same execution condi tion ON condition 4 2 5 Global Subroutines Global subroutine can be called from more t...

Страница 189: ...the Interrupt Input Unit is ON Scheduled Interrupts A scheduled interrupt task will be executed at fixed intervals Power OFF Interrupt The power OFF interrupt task will be executed when power is turne...

Страница 190: ...external interrupts Power OFF CPU Unit Interrupt Pro gram Special I O Unit CS1 CPU Bus Unit or Inner Board CPU Unit Pro gram Interrupt Type Task No Execution condition Setting procedure Number of int...

Страница 191: ...hows execution I O interrupt task 103 when interrupt input No 3 of Interrupt Input Unit No 0 the leftmost of the two Units 0 and 1 is ON Note Do not enable unneeded I O interrupt tasks If the interrup...

Страница 192: ...rrupt tasks are disabled in the default PLC Setup at the start of cyclic task execution Perform the following steps to enable scheduled inter rupt tasks 1 2 3 1 Execute the MSKS SET INTERRUPT MASK ins...

Страница 193: ...the PLC Setup the power OFF interrupt task will be stopped after 10 ms minus the power OFF detection delay time setting in the PLC Setup In this case the power OFF interrupt task must execute in less...

Страница 194: ...C Setup Any remain ing instructions will not be executed after this time has elapsed The power OFF interrupt task will not be executed if power is interrupted during online editing In addition to the...

Страница 195: ...ated from a CS1W SCB 1 Serial Communications Board When the Serial Communications Board s response notification method is set for interrupt notification fixed number or interrupt notification receptio...

Страница 196: ...ion of the interrupt task with that task number 3 If an external interrupt task 0 to 255 has the same number as a power OFF task task 1 scheduled interrupt task task 2 or 3 or I O interrupt task 100 t...

Страница 197: ...pt tasks CS Series only scheduled interrupt tasks Each of the various types of interrupt task will be executed in order starting from the lowest number if more than one occurs Note Only one interrupt...

Страница 198: ...errupt tasks execute within 10 ms when using C200H Special I O Units or SYSMAC BUS Remote I O If an interrupt task executes for more than 10 ms during C200H Special I O Unit or SYSMAC BUS remote I O r...

Страница 199: ...plicated will be stored in A426 Interrupt Task Error Task Number The CPU Unit will continue running Note The leftmost bits of A426 Interrupt Task Error Task Number can be used to determine which of th...

Страница 200: ...are used to disable interrupt tasks during execution of an instruction that requires response reception and processing such as a network instruction or serial communications instruction Note With the...

Страница 201: ...d to create one cyclic task and one or more specific interrupt tasks simply by using the Programming Con sole s All Clear function and specifying Interrupt Tasks Only interrupt tasks 1 power OFF inter...

Страница 202: ...e by specifying CT00 to CT31 for a cyclic task or IT001 to IT255 for an interrupt task Note 1 A Programming Console cannot create new cyclic tasks 2 The CJ series CPU Units do not currently support I...

Страница 203: ...182 Programming Device Operations for Tasks Section 4 4...

Страница 204: ...cations 197 5 2 Manipulating Files 199 5 2 1 Programming Devices Including Programming Consoles 199 5 2 2 FINS Commands 202 5 2 3 FREAD 700 FWRIT 701 and CMND 490 203 5 2 4 Replacement of the Entire P...

Страница 205: ...ard in the PLC card slot of a personal computer to use the Memory Card as a storage device CPU Unit Memory Card File File File File EM area Category Type Capacity Model File data recognized by the CPU...

Страница 206: ...pecific example using CMND 490 Number of Writes Generally speaking there is no limit to the number of write operations that can be performed for a flash memory For the Memory Cards however a limit of...

Страница 207: ...the Memory Card Recognized Flag A34315 as an input condition as shown below 5 1 2 File Data The following files can be written from a Programming Device CX Program mer or Programming Console FINS com...

Страница 208: ...to enable automatic transfer at startup File File name Extension Contents Symbol table file SYMBOLS SYM Global and local symbols Comment file COMMENTS CMT Rung comments and comments annotations Progr...

Страница 209: ...automatically transferred from the Memory Card to the CPU Unit when the power is turned ON The file names are fixed as AUTOEXEC or ATEXEC Backup Files Not supported by CS series CS1 CPU Units that are...

Страница 210: ...ave to be on the Memory Card when the automatic transfer at startup function is being used Note The data in this file has higher pri ority if it overlaps the DM data contained in AUTOEXEC IOM ATEXECE...

Страница 211: ...rd when reading data from the Memory Card during backup BACKUPDM IOM General purposeDM Area Contains DM data from D00000 to D19999 This file must exist on the Memory Card when reading data from the Me...

Страница 212: ...btracting the available UM steps from the total UM steps These values are shown in the CX Pro grammer s Cross Reference Report Refer to the CX Programmer User Man ual for details File type File size D...

Страница 213: ...wer address word is stored second Extension Data format Contents Words field IOM Binary CS CJ series data format TXT See notes Non delimited words ASCII format This format is created by converting one...

Страница 214: ...i e what memory area is stored Be sure to give file names that indicate the contents as shown in the examples below to aid in file management Examples D00100 IOM CIO0020 IOM Data from the beginning o...

Страница 215: ...n the cells Other characters and codes cannot be used When you want to store hexadecimal digits in I O memory it is helpful to con vert the spreadsheet s decimal inputs to hexadecimal Use the followin...

Страница 216: ...ole or CX Programmer always specify the proper first address D20000 D00000 or E _00000 and make sure that the size of the file does not exceed the ca pacity of the DM Area or specified EM bank The con...

Страница 217: ...7 ON and turn pin 8 OFF on the CPU Unit s DIP switch insert the Memory Card and press and hold the Memory Card Power Supply Switch for three seconds The four backup files BACKUP IOM BACK UPIO IOR BACK...

Страница 218: ...le memory can be used for the following applications Data Files In this application DM Area data settings for Special I O Units CPU Bus Units and Inner Boards CS Series only are stored in the Memory C...

Страница 219: ...ication programs that control different processes are stored on individual Memory Cards The entire PLC configuration program PLC Setup etc can be changed by inserting a different Memory Card and using...

Страница 220: ...lating Files The following procedures are used to read write and otherwise work with files using the following methods Programming Devices FINS commands FREAD 700 FWRIT 701 and CMND 490 instructions i...

Страница 221: ...rd to be read and written by other pro grams such as Windows Explorer Formatting file memory Memory Cards OK OK EM files OK OK Changing file names OK Not possible Reading file memory data OK Not possi...

Страница 222: ...ory area or parameter area in the project work space and drop it Note Use project transfer operations to create and read symbol table files SYM BOLS SYM and comment files COMMENTS CMT on the CX Progra...

Страница 223: ...r Network PLC Another PLC on a network can send FINS command using CMND 490 2 Initialize Enter 9713 Memory Card or 8426 EM file memory 3 Delete Select OBJ CIO HR WR AR DM EM or STD Media type file nam...

Страница 224: ...sfer the specified file but rather the specified amount of data beginning at the specified start position in the file Host computer FTP client Ethernet Unit Memory Card or EM file memory Computer to M...

Страница 225: ...ts can transfer binary data IOM files and the V1 CPU Units can also transfer ASCII files TXT and CSV files FREAD 700 FWRIT 701 Transfers between I O memory and file memory CPU Unit FREAD FWRIT instruc...

Страница 226: ...ecuted at a time so FREAD 700 and FWRIT 701 must not be executed when any of the following file memory operations are being performed 1 2 3 1 Execution of FREAD 700 or FWRIT 701 Bits in C Settings Pro...

Страница 227: ...at Error Flag A34307 ON when the Memory Card is not formatted or a formatting error has occurred File Write Error Flag A34308 ON when an error occurred when writing to the file File Write Impossi ble...

Страница 228: ...ce Manual W342 for details on FINS commands CMND 490 cannot be executed to the local CPU Unit if another CMND 490 instruction is being executed to another CPU Unit FREAD 700 or FWRIT 701 is being exec...

Страница 229: ...ram Password A651 and Program File Name A654 to A657 must be Network Instruction Enabled Flag for port 7 File Memory Operation Flag When 000000 and A20207 are ON and A34313 is OFF CMND 490 issues FINS...

Страница 230: ...he program will not be executed while the program is being replaced After the program has been replaced operation will be started again just as if the CPU Unit were switched from PROGRAM mode to RUN o...

Страница 231: ...54 to A657 exists in the Memory Card s root directory The Memory Card has been detected by the CPU Unit A34315 ON No fatal errors have occurred No file memory operations are being executed A34313 OFF...

Страница 232: ...ple backup operation is being performed Memory Card Detected Flag Not supported by CS series pre EV1 CS1 CPU Units A34315 ON when a Memory Card has been detected IOM Hold Bit A50012 When this bit is O...

Страница 233: ...ram replacement has been com pleted or not Program Password Not supported by CS series pre EV1 CS1 CPU Units A651 Write the password to this word to enable program replacement A5A5 Hex Enables the Rep...

Страница 234: ...fore pro gram replacement or IOM Hold Bit processing First Cycle Flag MOV Program version Version storage area Execution condition No File Flag Replacement Start Bit Writes the file name ABC in A654 t...

Страница 235: ...mory Card to the CPU Unit when the power is turned ON The following files can be read automatically to CPU Unit memory Note This function cannot be used to read EM file memory Always ON Flag Task prot...

Страница 236: ...ries CS1 CPU Units that are pre EV1 5 The automatic transfer at startup function can be used together with the program replacement function The Replacement Start Bit A65015 can be turned ON from progr...

Страница 237: ...are optional 4 Turn ON the PLC power supply Note Automatic Transfer Failure at Startup If automatic transfer fails at startup a memory error will occur A40115 will turn ON and the CPU Unit will stop...

Страница 238: ...write protecting program memory 3 When the backup files are read from the Memory Card by the backup func tion the status of I O memory and force set force reset bits will be cleared unless the necessa...

Страница 239: ...area data and I O memory data in the Memory Card with the corresponding data in the CPU Unit This function can be executed in any operating mode The following table provides a summary of the simple b...

Страница 240: ...hes the number of banks in the CPU Unit If the BACK UPE IOM files are not consecutive or the number of EM banks does not match the number of banks in the CPU Unit the EM file memory will revert to its...

Страница 241: ...ration man ual for the specific Unit or Board for details on Unit or Board errors File name and extension Contents Backup from I O memory to Memory Card creating files Restore from Memory Card to I O...

Страница 242: ...will be created with the following errors Insufficient Memory Card capacity See note 2 Memory error in CPU Unit I O bus error when writing data to a Unit or Board CS1 H or CJ1 H CPU Units only Restori...

Страница 243: ...he CPU Unit and the Memory Card Lit Remains lit while the Memory Card Power Switch is pressed Flashes once Lit while comparing OFF after data is compared Lit Remains lit while the Memory Card Power Sw...

Страница 244: ...number of the CPU Unit the EM area will be formatted based on the value in this word If the maximum EM bank numbers do not match the EM Area will revert to its unformatted condition Network Communica...

Страница 245: ...oards are supported as of July 2001 Note Data from the Units and Boards listed above will be automatically backed up for the simple backup operation There is no setting available to include or exclude...

Страница 246: ...oards will be restored from the Mem ory Card to the Units and Boards When the power supply is turned ON the MCPWR Indicator will flash once light during the read operation and then go OFF if the read...

Страница 247: ...ramming Console to initialize Memory Cards EM File Memory 1 2 3 1 Use a Programming Device like a Programming Console and set EM file memory settings in the PLC Setup to enable EM file memory and then...

Страница 248: ...44 to indicate that there is no EM file memory Note 1 Any file data present will be deleted at this time Bank n Bank C 2 Only banks 0 to 6 can be specified for a CJ series CPU Unit Address Name Descri...

Страница 249: ...ard file to the CPU Unit Automatically Transferring Files at Startup 1 2 3 1 Insert a Memory Card into the CPU Unit Already initialized 2 Use a Programming Device to write the automatic transfer at st...

Страница 250: ...file operations can be executed by issuing FINS commands to the local CPU Unit with CMND 490 Not supported by CS series CS1 CPU Units that are pre EV1 Replacing the Program during Operation 1 2 3 1 In...

Страница 251: ...50 Kstep Program and 12 ms Cycle Time in RUN mode Creating Variable Table and Comment Files Use the following CX Programmer procedure to create variable table files or comment files on Memory Cards or...

Страница 252: ...his case the affected file will be deleted automatically by the system the next time that power is turned ON The corresponding File Dele tion Notification Flag A39507 for the Memory Card A39506 for EM...

Страница 253: ...232 Using File Memory Section 5 3...

Страница 254: ...between Tasks 250 6 2 Index Registers 252 6 2 1 What Are Index Registers 252 6 2 2 Using Index Registers 252 6 2 3 Processing Related to Index Registers 255 6 3 Serial Communications 261 6 3 1 Host L...

Страница 255: ...298 6 7 5 Simulating System Errors 300 6 7 6 Disabling Error Log Storage of User defined FAL Errors 300 6 8 CPU Processing Modes 301 6 8 1 CPU Processing Modes 301 6 8 2 Parallel Processing Mode and M...

Страница 256: ...note Variations in I O response times can be eliminated by repeating the program with a fixed cycle time Note The cycle time can also be fixed for CS1 H CJ1 H or CJ1M CPU Units by using a Parallel Pro...

Страница 257: ...Flags and Words A Programming Device CX Programmer or Programming Console can be used to read the average of the cycle times in the last 8 cycles Address Name Setting Default 209 Bit 15 Enable Watch C...

Страница 258: ...it 6 1 5 Interrupt Functions Interrupt tasks can be executed for the following conditions Refer to 4 3 Inter rupt Tasks for more details I O Interrupts Interrupt tasks 100 to 131 An I O interrupt task...

Страница 259: ...te refreshing instructions can refresh data allocated to Basic I O Units Immediate refreshing is also possible for the built in I O on CJ1M CPU Units Note 1 When the instruction contains a bit operand...

Страница 260: ...to the Unit in the CIO Area Words allocated to the Unit in the DM Area Data specific to the Unit See note Note Data specific to a CPU Bus Unit would include data links for Control ler Link Unit or SY...

Страница 261: ...Bits for Special I O Units 0 to 95 correspond directly to the 96 bits in addresses 226 through 231 6 1 8 Improving Refresh Response for CPU Bus Unit Data This function is supported only by CS1 H CJ1 H...

Страница 262: ...efresh data for Basic I O Units and Special I O Units DLNK 226 is used to refresh CPU Bus Units CIO and DM Area words al located to the Units and special data for the Units END DLNK M DLNK N Data link...

Страница 263: ...token causing a total delay of up to two communications cycle times 3 The data transferred in data link processing arrives at the PLC CPU Unit 2 after data exchange so the data will not be read into...

Страница 264: ...so be a delay of up to one communications cycle time after receiving the token causing a total delay of up to two communications cycle times 3 The data transferred in data link processing arrives at t...

Страница 265: ...ed for large quantities of data processing such as data compilation or processing that is required only at special times e g once a day when reducing the effect on the cycle time is more impor tant th...

Страница 266: ...n Instructions Executed Normally and in the Background The differences between normal instruction execution and execution in the background are listed below Outputting to Index Registers IR If MAX 182...

Страница 267: ...ere is more than one to an index register the address will not be output to the index register and will be output to A595 and A596 instead Outputting to Data Registers DR for SRCH 181 If SRCH 181 is e...

Страница 268: ...0 to 7 When the simple backup operation is used to performed a write or compare operation for a Memory Card on a CS1 H CJ1 H or CJ1M CPU Unit a communications port will be automatically allocated and...

Страница 269: ...n the port Background Execution ER AER Flag A39510 Turns ON when an instruction execution error or illegal access error occurs in an instruction being executed in the background Turns OFF when power i...

Страница 270: ...as the execution condition a turns ON SUM 184 can be executed immediately after MAX 182 RSET a SET b MAX D00000 D00100 D00200 a A20200 RSET b SUM D00002 D00100 D00201 b A20200 SET c c A20200 Execution...

Страница 271: ...eeded in two or more tasks Refer to the section on index registers in the MAX D00000 D00100 D00200 a MOV IR0 D00300 Execution condition MAX 182 is executed completely as soon as the execution conditio...

Страница 272: ...index and data registers This setting cannot be made from a Programming Console 1 2 3 1 Select a PLC PLC in the CX Programmer project tree and click the right mouse button 2 Select Properties The fol...

Страница 273: ...tions in a loop can process tables of consecutive data very efficiently Basic Operation Basically Index Registers are used with the following steps 1 2 3 1 Use MOVR 560 to store the PLC memory address...

Страница 274: ...as the Index Registers are incre mented by one with each repetition Indirect addressing with DR offset DR IR Indirect addressing with auto increment Increment by 1 IR Increment by 2 IR Indirect addre...

Страница 275: ...in IR2 Writes 100 in D00000 Jumps the FOR NEXT loop if the pointers above haven t been set Repeats the FOR NEXT loop 100 times If the Work bit addressed in IR2 is OFF TIM starts the tim er with the ti...

Страница 276: ...truc tions DOUBLE MOVE MOVL 498 Transfers between Index Regis ters Used for exchanges and comparisons DOUBLE DATA EXCHANGE XCGL 562 Comparison Instructions DOUBLE EQUAL L 301 DOUBLE NOT EQUAL L 306 DO...

Страница 277: ...e word records Range instruc tions Basic pro cessing Find values such as the checksum a particular value the maximum value or minimum value in the range FCS 180 SRCH 181 MAX 182 MIN 183 and SUM 184 Sp...

Страница 278: ...the table CS1 H CJ1 H or CJ1M CPU Units only SWRITE 640 Writes a specific entry to the table CS1 H CJ1 H or CJ1M CPU Units only SINS 641 Inserts a specific entry in the table CS1 H CJ1 H or CJ1M CPU U...

Страница 279: ...Index Register When data is required from the record add the required offset to that Index Register to access any word in the record Use the record table instructions with Index Registers to perform...

Страница 280: ...crement the PLC memory address in the Index Register to switch to another record 4 Repeat steps 2 and 3 as required Example The following example uses Index Registers and the record table instructions...

Страница 281: ...ord 3 to ABCD and word 5 to 9999 If words 1 3 and 5 contain the comparison data the record number is stored in D00000 and BREAK interrupts the loop Returns execution to FOR to continue the loop Jump d...

Страница 282: ...the CPU Unit to the host computer to send data or information Use host link communications to monitor data such as operating status error information and qual ity data in the PLC or send data such as...

Страница 283: ...RS 422A Converter can be connected to the RS 232C port on each CPU Unit to communicate via RS 422A 485 or two CPU Units can communicate via an RS 232C connection The Serial PLC Links can also include...

Страница 284: ...uter to PLCs in the network Issue frame with the CPU Unit s SEND RECV CMND instruc tions Receive response from the host computer Application Use this method when communi cating primarily from the PLC...

Страница 285: ...PLC PLC to Host computer Issue host link commands from the host computer Issue FINS commands from the host computer Execute SEND RECV CMND instructions in the PLC s program Receive responses in the ho...

Страница 286: ...word address in the SV of the specified timer counter instruction W SV CHANGE 2 Searches for the specified timer counter instruction beginning at the specified program address and changes the 4 digit...

Страница 287: ...range of the parameter area with the same data Program Area Access 03 06 PROGRAM AREA READ Reads data from the user program area 03 07 PROGRAM AREA WRITE Writes data to the user program area 03 08 PRO...

Страница 288: ...ied point in a file 22 03 SINGLE FILE WRITE Writes the specified amount of data from the specified point in a file 22 04 FILE MEMORY FORMAT Formats file memory 22 05 FILE DELETE Deletes the specified...

Страница 289: ...t of data Frame format Other functions Start code End code Data transmission PLC External device Execution of TXD 236 in the program 256 bytes Yes 00 to FF No None Yes 00 to FF or CR LF No None Send d...

Страница 290: ...sion of data after the execution of TXD 236 Refer to the CJ series Programmable Controllers Programming Manual W340 for more details on TXD 236 and RXD 235 6 3 3 NT Link 1 N Mode In the CS CJ Series c...

Страница 291: ...485 A PT that is set for NT Link 1 N communications can also be used together on the same network The polled PT uses the network to communicate in an NT link 1 N with the polling CPU Unit When a PT i...

Страница 292: ...es of Polled Units that are not present in the network These data areas are undefined in all nodes Item Specifications Connection method RS 232C or RS 422A 485 connection via the CPU Unit s RS 232C po...

Страница 293: ...agram Polled Unit No 2 is a PT or a Unit not participating in the network so the corresponding area in the Polling Unit is undefined Polling Unit Polled Unit No 0 Polled Unit No 1 Polled Unit No 3 Loc...

Страница 294: ...3117 CIO 3124 to CIO 3126 CIO 3180 to CIO 3189 CIO 3199 Not used CIO 3109 to CIO 3199 CIO 3118 to CIO 3199 CIO 3127 to CIO 3199 CIO 3190 to CIO 3199 Address Link words 1 word 2 words 3 words to 10 wo...

Страница 295: ...the default setting of 0 hex is used Settings at the Polled Unit Note The default baud rate is 38 4 kbps Item PLC address Set value Default Refresh timing Word Bit RS 232C port setting Serial communi...

Страница 296: ...A52600 Turn ON this bit to restart the RS 232C port Read write Cleared when power is turned ON Turned ON when restarting the RS 232C port except when communicating in peripheral bus mode Note Dependin...

Страница 297: ...word are taken as a BCD or binary value There are differences in the instruction operands for BCD mode and binary mode however so check and understand the differences between the BCD and binary modes...

Страница 298: ...ogrammer online opening the I O Table Window and selecting Unit Information CPU Unit The lot No will be displayed in the same format as shown in the above diagram i e comprised of the last two digits...

Страница 299: ...Binary mode The timer counter PV refresh mode set value set under the PLC properties will be stored in the CPU Unit s user memory when the user program is transferred from the CX Programmer to the CPU...

Страница 300: ...ry Area Timer Counter PV Refresh Mode Flag can be used to check whether a CPU Unit is operating in BCD mode or binary mode 6 4 4 BCD Mode Binary Mode Mnemonics and Data BCD Mode Binary Mode Mnemonics...

Страница 301: ...ll be automatically used If the CPU setting is different from the setting for the CX Programmer project an error will occur and the online connection will not be possible The following mes sage will b...

Страница 302: ...r an instruction for a different mode that for the timer counter PV refresh mode set in the CPU Unit the mnemonic will automatically be changed to that for the timer counter PV refresh mode set in the...

Страница 303: ...Instruction name BCD mode Binary mode Mnemonic TMHH 540 TMHHX 552 S timer set value 0000 to 9999 BCD j 0 to 65535 decimal or 0000 to FFFF hexa decimal Setting time unit 0 001 s 0 to 9 999 s 0 to 65 53...

Страница 304: ...ecimal Setting 0 to 9 999 times 0 to 65 535 times Instruction name BCD mode Binary mode Mnemonic CNR 545 CNRX 547 Instruction name BCD mode Binary mode Mnemonic TIMW 813 TIMWX 816 S timer set value 00...

Страница 305: ...k and the MSKS 690 in struction is executed to perform a scheduled interrupt reset start 3 After a fixed interval the scheduled interrupt task starts and output bit A in the scheduled interrupt task t...

Страница 306: ...t Is Specified 6 5 3 Reading the Internal Timer PV with MSKR 692 CJ1M CPU Units allow reading the PV of the internal timer that measures the scheduled interrupt time The time is read from either the s...

Страница 307: ...NITOR mode to PRO GRAM mode to stop program execution Note The following areas of I O memory will be cleared during mode changes PROGRAM RUN MONITOR unless the IOM Hold Bit is ON the CIO Area I O Area...

Страница 308: ...nit will start in RUN mode Change the PLC Setup from the default value to start in MONITOR mode or PROGRAM mode when the power is turned ON The CS series CS1 CPU Units however will start in PROGRAM mo...

Страница 309: ...at power is supplied by an external power supply only when the PLC is operating in RUN or MONITOR mode 6 6 4 Power OFF Detection Delay Setting Normally a power interruption will be detected about 10 t...

Страница 310: ...Clock Functions The CS CJ series PLCs have the following clock functions Monitoring of the time that power interruptions occurred Monitoring of the time that the PLC was turned on Monitoring of the to...

Страница 311: ...t is still possible to read and display the program when it is write protected Name Addresses Function Clock data A35100 to A35107 Second 00 to 59 BCD A35108 to A35115 Minute 00 to 59 BCD A35200 to A3...

Страница 312: ...ection from the PLC Properties Dialog Box and input the password 2 Set password protection online as follows a Select PLC Password Protection and then Set The Program Pro tection Setting Dialog Box wi...

Страница 313: ...the Programming Device s online operations are supported in these connections 6 6 9 Unit Profiles The following information can be read for CS CJ series Units from the CX Programer Manufacturing info...

Страница 314: ...he front of the CPU Unit will light while data is be ing written to flash memory Do not turn OFF the power supply to the CPU Unit until the backup operation has been completed i e until the BKUP indic...

Страница 315: ...ransfer To obtain this window setting to display the backup status dialog box must be checked in the PLC properties and the window must be selected from the View Menu For normal transfer operations th...

Страница 316: ...d if the Startup Condition is set to 0 0 If there is one or more of the specific Boards that has not completed startup processing the CPU Unit will go on standby in MONITOR or PROGRAM mode and wait fo...

Страница 317: ...red in the Error Log In addition to system generated errors the PLC records user defined FAL 006 and FALS 007 errors making it easier to track the operating status of the system Refer to the section o...

Страница 318: ...When the master function is used with the CS1W DRM21 or CJ1W DRM21 all slave outputs will be turned OFF When the slave function is used all inputs to the master will be OFF When the C200HW DRM21 V1 i...

Страница 319: ...nating the cause of the error and performing the error read clear operation from a Programming Device including a Programming Console 6 7 4 Failure Point Detection FPD 269 performs time monitoring and...

Страница 320: ...ng ON That bit address is output to D01000 and D01001 Auxiliary Area Flags and Words Error processing block Logic diagnosis execution condition B C Diagnostic output First register word Diagnostics ou...

Страница 321: ...system errors to clear the simulated sys tem errors Refer to the CS series Operation Manual or the CJ series Opera tion Manual for details All system errors simulated with FAL 006 and FALS 007 can be...

Страница 322: ...cle time and the cycle time is increased by the time required for peripheral servicing With the CS1 H or CJ1 H CPU Units however Parallel Processing Modes are supported that enable processing program...

Страница 323: ...h program execution but rather is executed following program exe cution just like it is in the normal execution mode i e following the I O refresh period All other peripheral servicing is executed in...

Страница 324: ...in processing 3 Peripheral servicing cycle time over errors can occur in the CPU Unit when parallel processing is used If the peripheral servicing cycle time exceeds 2 0 s for a CS1 H or CJ1 H CPU Un...

Страница 325: ...Operation Peripheral Servicing Cycle Time Over A40515 Turns ON when the peripheral servicing cycle time exceeds 2 s Operation will be stopped Peripheral Servicing Cycle Time A268 Contains the peripher...

Страница 326: ...ng Event servicing for Inner Boards CS Series only Event servicing for communications ports internal logic ports that are being used including background execution Overseeing I O bus check and other p...

Страница 327: ...in the words may not be concurrent If the same word in I O memory is read by more than instruction at differ ent locations in the program and peripheral servicing is executed between execution of the...

Страница 328: ...Unit or port will be serviced more than once dur ing the same cycle Unit or ports are serviced in the order in which they are detected by the CPU Unit Note 1 Even though the following instructions us...

Страница 329: ...xecution 5 to 255 ms in 1 ms increments Takes effect at the start of operation Can t be changed during oper ation 00 to 07 00 to FF Hex 00 00 Disable priority mode servicing 01 to FF Time slice for pe...

Страница 330: ...words being written by the pro gram are read from a peripheral before the write has been completed or when words being read by the program are written from a peripheral before the read has been compl...

Страница 331: ...interrupts for priority servicing I O interrupts scheduled interrupts and external interrupts Interrupts will remain disabled if DI 693 is executed when they are already disabled Symbol Applicable Pro...

Страница 332: ...lready enabled Symbol Applicable Program Areas Condition Flags Area Applicability Block programming areas Yes Step programming areas Yes Subroutine programs Yes Interrupt tasks No Flag Label Operation...

Страница 333: ...t be dependable The following data will be all zeros at startup Power ON Time A523 Power Interruption Time A512 and A513 and Number of Power In terruptions A514 The Error Log Area in A100 to A199 will...

Страница 334: ...power is turned ON Battery free Operation Initialize I O memory before program execution Initialize I O memory from the program Initialize only DM Area words allocated to CPU Bus Units and Inner Boar...

Страница 335: ...required PLC Setup Disable detection a low battery voltage and set I O Memory Hold Bit status to be maintained at when power is turned ON Battery free Operation Initialize only DM Area words allocated...

Страница 336: ...S CJ Expansion Racks and C200H Expansion I O Racks This function allows each Rack s I O allocation area to be fixed within the range CIO 0000 to CIO 0999 The first words are allocated by rack num ber...

Страница 337: ...316 Other Functions Section 6 11...

Страница 338: ...ocesses used to transfer the program to the CPU Unit and the functions that can be used to test and debug the program 7 1 Program Transfer 318 7 2 Trial Operation and Debugging 318 7 2 1 Forced Set Re...

Страница 339: ...the program while the CPU Unit is in operation Refer to SEC TION 5 File Memory Functions for details 7 2 Trial Operation and Debugging 7 2 1 Forced Set Reset A Programming Device can force set ON or...

Страница 340: ...o ON or from ON to OFF the results are indicated in the a Differentiate Monitor Completed Flag A50809 The Flag will turn ON when conditions set for the differential monitor have been met A Programming...

Страница 341: ...data in the flash memory after online editing The BKUP indicator will be lit during this period The progress of the backup is displayed on the CX Programmer The increases per cycle are listed in the...

Страница 342: ...xe cute data such as Standby WAIT or Pause status will be cleared by online editing and the next execution will be from the beginning Online Editing from CX Programmer 1 2 3 1 Display the program sect...

Страница 343: ...another serial port and turn OFF the Online Edit Disable Bit A52709 The online editing will be pro cessed and Programming Console operations will be possible again 2 Performing Online Editing with the...

Страница 344: ...ve will be traced when the trace trigger condition is met and the data just after the delay see note 1 will be stored in Trace Memory 3 Trace Memory data will be sampled and the trace ended Note Delay...

Страница 345: ...eriod delay time and trigger conditions 2 Use CX Programmer to start sampling or turn ON the Sampling Start Bit A50815 3 Put the trace trigger condition into effect 4 End tracing 5 Use CX Programmer t...

Страница 346: ...g is started again by turning ON the Sampling Start Bit Trace Busy Flag A50813 This flag turns ON when sampling is started by a Sampling Start Bit and turns OFF when the trace has been completed Trace...

Страница 347: ......

Страница 348: ...6 528 bits 168 words 2 688 bits 400 words 6 400 bits 158 words 2 528 bits Holding bits 512 words 8 192 bits 512 words 8 192 bits 100 words 1 600 bits 300 words 4 800 bits Max 1 400 words 2 400 bits 10...

Страница 349: ...Cyclic refreshing Yes Yes Yes Yes Yes Scheduled refreshing No No No Yes No Zero cross refreshing No No No Yes No Immediate refreshing Yes Yes No Yes No Immediate refresh ing using IORF instruction Ye...

Страница 350: ...s Yes Yes Yes Yes Inner Board No Serial Communi cations Board Communica tions Board No Communica tions Board Built in serial ports Yes RS 232C x 1 Yes RS 232C x 1 Yes RS 232C x 1 Yes RS 232C or RS 422...

Страница 351: ...rupts Yes No No No From Communica tions Board No Yes Yes No No Power ON interrupt No No No Yes No Power OFF interrupt Yes Yes No Yes No Interrupt response time 0 17 ms Built in I O on CJ1M CPU Units 1...

Страница 352: ...ect input possible Direct input pos sible No Set in PLC Setup No Multiple use of JMP 0 instruction Multiple use already possible Multiple use already possible No Set in PLC Setup No Operation for inst...

Страница 353: ...nitial setting 1 000 ms fixed Set in PLC Setup 0 to 99 Unit 1 s 10 ms 100 ms Initial setting 120 ms fixed Detect cycle time over disable No No Set in PLC Setup No Set in PLC Setup Asynchronous instruc...

Страница 354: ...s No Peripherals con nected to CPU enabled disabled No No No Yes No Host Link NT Link Service Disable Bit No No No Yes No Peripheral Service Disable Bit No No No Yes No Scheduled Refresh Disable Bit N...

Страница 355: ...slot or change I O table made from CX Pro grammer Dummy I O Unit or change I O table from CX Program mer Automatic allo cation at star tup Spe cial I O Unit alloca tion CIO Area Allocation in Special...

Страница 356: ...Yes Holding Area Yes Yes Yes No No Auxiliary Area No No Yes No Yes SR Area No No No No No Link Area No No Yes No No Timer Counters Yes Flag Yes Flag Yes Flag Yes Flag Yes Flag DM Area No No No No No E...

Страница 357: ...SETA RSTA Yes Beginning bit and number of bits specified in binary Yes Beginning bit and number of bits specified in binary No 1 Beginning bit and number of bits specified in BCD No SINGLE BIT SET RES...

Страница 358: ...es Only resets timer or counter No Yes Also clears specified range in CIO area to zero No CNRX binary Yes 4 Yes 4 No No No Compari son Instruc tions Symbol compari son etc Yes All are sup ported for L...

Страница 359: ...unction is possible with another instruc tion Offset value specified in binary 0 to 65535 Yes Stack oper ation function is possible Offset value specified in BCD 0 to 8999 Yes Stack oper ation functio...

Страница 360: ...specified in binary Yes Number of bits to be shifted specified in binary No Yes Number of bits to be shifted specified in BCD 1 No DOUBLE SHIFT LEFT DOUBLE SHIFT RIGHT ASLL ASRL Yes Yes No Yes No DOUB...

Страница 361: ...n specified in BCD Yes Bit position specified in BCD SIGNED BCD TO BINARY DOUBLE SIGNED BCD TO BINARY BINS BISL Yes Yes No Yes 1 No SIGNED BINARY TO BCD DOUBLE SIGNED BINARY TO BCD BCDS BDSL Yes Yes N...

Страница 362: ...s SQUARE ROOT SQRT Yes Yes No Yes 1 Yes EXPONENT EXP Yes Yes No Yes 1 Yes LOGARITHM LOG Yes Yes No Yes 1 Yes EXPONENTIAL POWER PWR Yes Yes No No No Floating point Dec imal Comparison Exam ples F F CJ1...

Страница 363: ...pecified in BCD 1 to 6556 PLC memory address output to C 1 Number of matches cannot be output to DR0 FRAME CHECK SUM FCS Yes Yes Yes No Yes SUM SUM Yes Same as C200HX HG HE Sum possi ble for bytes as...

Страница 364: ...No No No ENABLE INTER RUPTS EI Yes Yes No No No ENABLE TIMER STIM No No No No Yes High speed Counter Pulse Out put Instruc tions MODE CONTROL INI Yes 5 No No No Yes PRESENT VALUE READ PRV Yes 5 No No...

Страница 365: ...No No No Yes 1 No Text String Processing Instructions MOV STRING MOV Yes Yes No No No CONCATENATE STRING Yes Yes No No No GET STRING LEFT LEFT Yes Yes No No No GET STRING RIGHT RGHT Yes Yes No No No G...

Страница 366: ...10 words set Can be used for Serial Communi cations Unit Yes 10 words set Can be used for Serial Communi cations Unit Yes 5 words set No Yes 5 words set PROTOCOL MACRO PMCR Yes Sequence number speci...

Страница 367: ...sages ended by CR text strings stored in order of leftmost to rightmost byte and then right most to leftmost word FAL num ber specified in BCD FAILURE POINT DETECTION FPD Yes Messages ended by NUL tex...

Страница 368: ...for CS1 and CJ1 CPU Units 5 CJ1M CPU Units with built in I O only Some operands differ from those used by the CQM1H Block Programming Instructions BPRG BEND IF ELSE IEND WAIT EXIT LOOP LEND BPPS BPRS...

Страница 369: ......

Страница 370: ...nsfers will no longer be possi ble Full duplex transmissions will be possible with the CS CJ series product but the host com puter s communications program hardware or both will need to be altered The...

Страница 371: ...half duplex transmissions that use CD Check the system for timing problems when using SEND RECV or CMND to initiate com munications from the PLC or timing problems in sending commands from the host co...

Страница 372: ...efore using it and make any correc tions required to handle different frame text lengths Refer to the CS CJ series Communications Com mands Reference Manual W342 for details CVM1 or CV series CPU Unit...

Страница 373: ......

Страница 374: ...s 350 complete link method 271 Condition Flags 54 operation in tasks 162 constants operands 28 counters refresh mode 276 CPU Unit basic operation 152 capacities 41 internal structure 6 operation 1 C s...

Страница 375: ...point math instructions 108 floating point decimal 31 force resetting bits debugging 318 force setting bits debugging 318 FOR NEXT loop 59 G Greater Than Flag 58 H high speed inputs 237 Host Link com...

Страница 376: ...ctions 78 timing 36 variations 34 interlocks 22 37 59 interrupt tasks 151 154 168 179 precautions 177 priority 175 related flags and words 176 interrupts 237 disabling 179 priority of interrupt tasks...

Страница 377: ...mnemonics 42 power flow 21 precautions 54 program capacity 41 program protection 290 program structure 12 15 42 programs and tasks 12 20 protecting the program 290 remote programming 292 restrictions...

Страница 378: ...160 execution conditions 156 execution time 18 features 150 flags 163 interrupt tasks 151 154 169 introduction 154 limitations 162 operation of Condition Flags 162 relationship to block programs 167 S...

Страница 379: ......

Страница 380: ...rmation on CJ1M CPU Units added throughout PC changed to PLC for Programmable Controller Other changes are as follows Pages xvi and xviii Caution added Page xix Item 2 at bottom of page changed Page 2...

Страница 381: ...360 Revision History...

Страница 382: ...adquarters OMRON EUROPE B V Wegalaan 67 69 NL 2132 JD Hoofddorp The Netherlands Tel 31 2356 81 300 Fax 31 2356 81 388 OMRON ELECTRONICS LLC 1 East Commerce Drive Schaumburg IL 60173 U S A Tel 1 847 84...

Страница 383: ...Authorized Distributor Cat No W394 E1 03 Note Specifications subject to change without notice Printed in Japan...

Отзывы: