background image

38

3-4-1 SYSMAC NET/SYSMAC LINK System

Loop Status

SR 236 provides the local node loop status for SYSMAC NET Systems, as
shown below.

---

Bit in SR 236

Level 0

07

06

05

04

03

02

01

00

Level 1

15

14

13

12

11

10

09

08

Status/
Meaning

1

1

Central Power Supply

0: Connected
1: Not connected

1

Loop Status

11: Normal loop
10: Downstream backloop
01: Upstream backloop
00: Loop error

Reception Status

0: Reception enabled
1: Reception disabled

1

Completion Codes

SR 23700 to SR23707 provide the SEND/RECV completion code for operating
level 0 and SR 23708 to SR 23215 provide the SEND/RECV completion code for
operating level 1. The completion codes are as given in the following tables.

SYSMAC LINK

Code

Item

Meaning

00

Normal end

Processing ended normally.

01

Parameter error

Parameters for network communication instruction is
not within acceptable ranges.

02

Unable to send

Unit reset during command processing or local node
in not in network.

03

Destination not in
network

Destination node is not in network.

04

Busy error

The destination node is processing data and cannot
receive the command.

05

Response timeout

The response monitoring time was exceeded.

06

Response error

There was an error in the response received from
the destination node.

07

Communications
controller error

An error occurred in the communications controller.

08

Setting error

There is an error in the node address settings.

09

PC error

An error occurred in the CPU Unit of the destination
node.

SYSMAC NET

Code

Item

Meaning

00

Normal end

Processing ended normally.

01

Parameter error

Parameters for network communication instruction is
not within acceptable ranges.

02

Routing error

There is a mistake in the routing tables for
connection to a remote network.

03

Busy error

The destination node is processing data and cannot
receive the command.

04

Send error (token
lost)

The token was not received from the Line Server.

05

Loop error

An error occurred in the communications loop.

06

No response

The destination node does not exist or the response
monitoring time was exceeded.

07

Response error

There is an error in the response format.

SR (Special Relay) Area

Section 3-4

Summary of Contents for SYSMAC C200HE

Page 1: ...Cat No W303 E1 09 OPERATION MANUAL Programmable Controllers C200HX C200HG C200HE ...

Page 2: ......

Page 3: ...C200HX C200HG C200HE Programmable Controllers Operation Manual Revised August 2004 ...

Page 4: ...ment or addition to the above warranty See http oeweb omron com or contact your Omron representative for pub lished information 14 Limitation on Liability Etc OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL INDIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS WHETHER SUCH CLAIM IS BASED IN CONTRACT WARRANTY NEGLIGENCE ...

Page 5: ...ans word and is abbreviated Wd in documentation in this sense The abbreviation PC means Programmable Controller and is not used as an abbreviation for any thing else Visual Aids The following headings appear in the left column of the manual to help you locate different types of information Note Indicates information of particular interest for efficient and convenient operation of the product 1 2 3...

Page 6: ...vi ...

Page 7: ...apabilities 15 2 4 Memory Cassettes 16 2 5 CPU Unit DIP Switch 20 2 6 Operating without a Backup Battery 21 SECTION 3 Memory Areas 23 3 1 Introduction 24 3 2 Data Area Structure 25 3 3 IR Internal Relay Area 29 3 4 SR Special Relay Area 33 3 5 AR Auxiliary Relay Area 48 3 6 DM Data Memory Area 56 3 7 HR Holding Relay Area 68 3 8 TC Timer Counter Area 68 3 9 LR Link Relay Area 69 3 10 UM Area 70 3 ...

Page 8: ...JME 05 157 5 12 END END 01 158 5 13 NO OPERATION NOP 00 158 5 14 Timer and Counter Instructions 158 5 15 Data Shifting 171 5 16 Data Movement 180 5 17 Data Comparison 192 5 18 Data Conversion 204 5 19 BCD Calculations 228 5 20 Binary Calculations 243 5 21 Special Math Instructions 257 5 22 Logic Instructions 277 5 23 Subroutines and Interrupt Control 281 5 24 Step Instructions 295 5 25 Special Ins...

Page 9: ...ges 448 9 3 Reading and Clearing Errors and Messages 448 9 4 Error Messages 449 9 5 Error Flags 453 9 6 Host Link Errors 454 SECTION 10 Host Link Commands 457 10 1 Host Link Command Summary 458 10 2 Host Link End Codes 459 10 3 Host Link Commands 462 Appendices A Standard Models 505 B Programming Instructions 521 C Error and Arithmetic Flag Operation 527 D Word Assignment Recording Sheets 531 E Pr...

Page 10: ......

Page 11: ...al area in C200HX HG HE PCs that provides the user with flexible control of PC operating parameters Section 4 Writing and Entering Programs explains the basics of ladder diagram programming looking at the elements that make up the parts of a ladder diagram program and explaining how execution of this program is controlled It also explains how to convert ladder diagrams into mnemonic code so that t...

Page 12: ......

Page 13: ...e PC You must read this section and understand the information contained before attempting to set up or operate a PC system 1 Intended Audience xiv 2 General Precautions xiv 3 Safety Precautions xiv 4 Operating Environment Precautions xv 5 Application Precautions xv 6 EC Directives xvii 6 1 Applicable Directives xvii 6 2 Concepts xvii 6 3 Conformance to EC Directives xvii 6 4 Relay Output Noise Re...

Page 14: ...peration WARNING It is extremely important that a PC and all PC Units be used for the specified purpose and under the specified conditions especially in applications that can directly or indirectly affect human life You must consult with your OMRON representative before applying a PC System to the above mentioned applications 3 Safety Precautions WARNING Do not attempt to take any Unit apart while...

Page 15: ...ndensation due to radical temperature changes Where the ambient humidity is below 10 or over 90 Where there is any corrosive or inflammable gas Where there is excessive dust saline air or metal powder Where the PC is affected by vibration or shock Where any water oil or chemical may splash on the PC Caution The operating environment of the PC System can have a large effect on the lon gevity and re...

Page 16: ...adiation Locations near to power supply lines Be sure to tighten Backplane screws terminal screws and cable connector screws securely Do not attempt to take any Units apart to repair any Units or to modify any Units in any way Caution The following precautions are necessary to ensure the general safety of the sys tem Always heed these precautions Provide double safety mechanisms to handle incorrec...

Page 17: ... EC Directives To ensure that the machine or device in which the C200HX C200HG C200HE PC is used com plies with EC directives the PC must be installed as follows 1 2 3 1 The C200HX C200HG C200HE PC must be installed within a control panel 2 Reinforced insulation or double insulation must be used for the DC power supplies used for the communications and I O power supplies 3 C200HX C200HG C200HE PCs...

Page 18: ...are not required if the frequency of load switching for the whole system with the PC included is less than 5 times per minute Countermeasures are required if the frequency of load switching for the whole system with the PC included is 5 times or more per minute EC Directives 6 ...

Page 19: ...ions of peripheral devices used with the C200HX HG HE PCs a table of other manuals available to use with this manual for special PC applications and a description of the new features of the C200HX HG HE PCs are also provided 1 1 Overview 2 1 2 The Origins of PC Logic 2 1 3 PC Terminology 3 1 4 OMRON Product Terminology 4 1 5 Overview of PC Operation 4 1 6 Peripheral Devices 5 1 7 Available Manuals...

Page 20: ...ould be required i e How does the PC know when to activate each pusher Much more complicated operations however are also possible The problem is how to get the desired control signals from available inputs at appropriate times To achieve proper control the C200HX HG HE PCs use a form of PC logic called ladder diagram programming This manual is written to explain ladder diagram programming and to p...

Page 21: ...d an input point This input point is allocated a loca tion in memory that reflects its status i e either ON or OFF This memory loca tion is called an input bit The CPU Unit in its normal processing cycle monitors the status of all input points and turns ON or OFF corresponding input bits ac cordingly There are also output bits in memory that are allocated to output points on Units through which ou...

Page 22: ...C Operation The following are the basic steps involved in programming and operating a C200HX HG HE PC Assuming you have already purchased one or more of these PCs you must have a reasonable idea of the required information for steps one and two which are discussed briefly below This manual is written to explain steps three through six eight and nine The relevant sections of this manual that provid...

Page 23: ...tied to a motor by way of a counter within the PC When the PC receives an input from a start switch it could start the motor The PC could then stop the motor when the counter has received a specified number of input signals from the photoelectric switch Each of the related tasks must be similarly determined from the beginning of the control operation to the end Unit Requirements The actual Units t...

Page 24: ...nual SYSMAC BUS W136 Information on building an Optical Remote I O System to enable remote I O capability PC Link System Manual W135 Information on building a PC Link System to automatically transfer data between PCs Host Link System Manual SYSMAC WAY W143 Information on building a Host Link System to manage PCs from a host computer SYSMAC NET Link Unit Operation Manual W114 Information on buildin...

Page 25: ...M 9999 0 to 3 000 words DM 7000 to DM 9999 Extended Data Memory EM 6 144 words EM 0000 to EM 6143 C200HE None C200HG 6 144 words 1 bank C200HX 6 144 words 3 banks None I O allocation Expansion Racks 3 Racks 2 Racks in the C200HE CPU E or C200HX HG CPU3 E 4 E 2 Racks Group 2 Multipoint I O Units Unit numbers 0 to 9 A to F Incompatible with the C200HE CPU11 E Unit numbers 0 to 9 with the C200HE CPU ...

Page 26: ...from the RS 232C port through an RS 422 485 Link Adapter When the C200HE CPU E with a Communications Board is used only 3 PTs can be connected NT Link 1 1 SYSMAC LINK Service time 3 5 ms max 1 operating level 10 8 ms max 1 operating level Remote programming Possible from the Peripheral Port or RS 232C Ports including Communications Boards Possible from the Peripheral Port Effect on response time N...

Page 27: ... the C200HX HG HE allocate UM area for I O comments 5 Connect the SSS to the C200HX HG HE and go online 6 Make sure that pin 1 on the C200HX HG HE s CPU Unit is OFF to enable writing to the UM area 7 Transfer the program and and any other required data to the C200HX HG HE You will probably want to transfer DM data and the I O table if you have created an I O table for the C200H 8 Turn OFF the C200...

Page 28: ...X HG HE You will probably want to transfer DM data and the I O table if you have created an I O table for the C200H Make sure you specify transfer of the Expansion DM Area and if desired the I O Comment Area d Turn ON SR 27000 from the SSS to transfer UM data to the Memory Cas sette and continue from step 9 or To transfer to an EPROM Memory Cassette use the following procedure a Connect a PROM Wri...

Page 29: ...ies and Memory Cassettes This information is covered in detail in the C200HX HG HE Installation Guide 2 1 CPU Unit Components 12 2 1 1 CPU Unit Indicators 13 2 1 2 Peripheral Device Connection 13 2 2 PC Configuration 15 2 3 CPU Unit Capabilities 15 2 4 Memory Cassettes 16 2 4 1 Hardware and Software Settings 17 2 4 2 Writing Reading UM Data 17 2 4 3 Writing Reading IOM Data 18 2 5 CPU Unit DIP Swi...

Page 30: ... pins For the function of each of the pins refer to the following table All six pins are OFF when the PC is shipped 1 2 3 4 5 6 ON OFF ON Pin Setting Function 1 ON Data cannot be written to the UM area OFF Data can be written to the UM area 2 ON Memory Cassette data is read automatically at startup OFF Memory Cassette data is not read automatically at startup 3 ON Programming Console displays mess...

Page 31: ...ls of the Output Units will be interrupted turned OFF COMM orange Flashes when the CPU Unit is communicating with the device connected to the peripheral port or RS 232C port 2 1 2 Peripheral Device Connection A Programming Console or IBM PC AT running SSS can be used to program and monitor the C200HX HG HE PCs Programming Console A C200H PR027 E or CQM1 PRO01 E Programming Console can be con necte...

Page 32: ...ing Cable IBM PC AT or Compatible SYSMAC Support Software C500 ZL3AT1 E C200H PRO27 E CQM1 PRO01 E C200H DAC01 Support Software Peripheral Device Programming Console for C200H Data Access Console for C200H Programming Console XW2Z 200S 500S See note Connecting Cable Connecting Cable CQM1 CIF02 Note The connector of the XW2Z 200S 500S Connecting Cable is a male 25 pin ter minal An adapter is requir...

Page 33: ...unication between the two Racks Up to three Expansion I O Racks two with the C200HE PCs can be connected in series to the CPU Rack Unit Mounting Position Only I O Units and Special I O Units can be mounted to Slave Racks All I O Units Special I O Units Group 2 High density I O Units Remote I O Master Units PC and Host Link Units can be mounted to any slot on all other Racks Interrupt Input Units m...

Page 34: ...a areas that ex ceed the capacity of the C200HS and the new instructions BXF2 IEMS IORD IOWR PMCR STUP and XFR2 that aren t supported by the C200HS CPU Unit Data area addresses and instruc tions that aren t supported by the C200HS can t be used in the C200HS IOM data can t be retrieved to the PC s RAM unless the size of the IOM in the Memory Cassette matches the size of the IOM in the PC There are...

Page 35: ...00HX HG HE to PROGRAM mode 4 Use a host computer running SSS or a Programming Console to turn ON SR 27000 the Save UM to Cassette Bit The data will be written from the PC to the Memory Cassette SR 27000 will be turned OFF automatically af ter the data transfer has been completed 5 If you want to write protect the data on the Memory Cassette turn OFF the PC and set switch 1 of the Memory Cassette t...

Page 36: ...t match the memory capacity of the CPU Unit when IOM data is transferred to or from a Memory Cassette The memory requirements are as follows Writing IOM CPU Unit s capacity Memory Cassette s capacity Reading IOM CPU Unit s capacity Amount of IOM data in Memory Cas sette Note In C200HS PCs the data transfer will be performed even if the memory capaci ties don t match an error which can easily go un...

Page 37: ...0 is turned ON Use the following procedure to read IOM data from a Memory Cassette The contents of the error history DM 6000 through DM 6030 can t be read from the Memory Cassette Note There is no function that automatically reads IOM data from the Memory Cas sette 1 2 3 1 Install the Memory Cassette containing the data into the C200HX HG HE 2 Turn ON the C200HX HG HE and switch it to PROGRAM mode...

Page 38: ...ly to Programming Console Note 1 Standard communications parameters are as follows Serial communications mode Host Link or peripheral bus start bits 1 data length 7 bits parity even stop bits 2 baud rate 9 600 bps 2 The CX Programmer running on a personal computer can be connected to the peripheral port via the peripheral bus using the above standard communications parameters OFF The communication...

Page 39: ...on DM for Special I O Units or if you want to store I O comments in the PC 2 Write and transfer the user program including a line using the Always OFF Flag SR 25314 to ensure that the Output OFF Bit SR 25215 remains OFF 25314 Always OFF Flag 25215 3 Set the following in the PC Setup DM 6601 0000 To reset Forced Status Hold Bit SR 25211 and I O Status Hold Bit SR 25212 at startup DM 6655 bits 12 to...

Page 40: ... detect low battery voltage DM 6600 and DM 6602 to DM 6654 As required by the application 4 Set Fixed DM including the Communications Board settings in DM 6144 to DM 6599 and Expansion DM as required by the application 5 Check operation 6 Transfer the program Fixed DM and the PC Setup to the SSS 7 Write the program Fixed DM and the PC Setup to ROM using the SSS and a PROM writer 8 Mount the ROM on...

Page 41: ...C Port Communications Areas 45 3 4 20 Peripheral Port Communications Areas 46 3 4 21 Memory Cassette Areas 46 3 4 22 Data Transfer Error Bits 47 3 4 23 Ladder Diagram Memory Areas 47 3 4 24 Memory Error Flags 47 3 4 25 Data Save Flags 48 3 4 26 Transfer Error Flags 48 3 4 27 PC Setup Error Flags 48 3 4 28 Clock and Keyboard Mapping 48 3 4 29 Group 2 Error Flags 48 3 4 30 Special I O Unit Restart B...

Page 42: ...n flags PV and SV TIM 000 through TIM 015 are refreshed via interrupt processing as high speed timers Data Memory Area 6 144 words DM 0000 to DM 6143 Read Write DM 6031 is used for indirect DM addressing and EM bank information and should not be written by the user 1 000 words DM 0000 to DM 0999 Normal DM 2 600 words DM 1000 to DM 2599 Special I O Unit Area 3 400 words DM 2600 to DM 5999 Normal DM...

Page 43: ...rminal Area IR 200 to IR 231 Allocated to Optical I O Units and I O Terminals Work Area IR 232 to IR 235 For use as work bits in the program SR Area 1 SR 23600 to SR 25507 Contains system clocks flags control bits and status information SR Area 2 SR 256 to SR 299 Contains flags control bits and status informa tion SR 290 to SR 297 are used as I O words by MCRO 99 IR Area 2 I O Area 2 IR 300 to IR ...

Page 44: ...ither by word or by bit depending on the instruction in which the data is being used To designate one of these areas by word all that is necessary is the acronym if required and the two three or four digit word address To designate an area by bit the word address is combined with the bit number as a single four or five digit address The following table show examples of this The two rightmost dig i...

Page 45: ...1011101010111 which would be 5 757 hexadecimal or 22 359 in decimal 163 x 5 162 x 7 16 x 5 7 Because the numeric equivalent of each four BCD binary bits must be numeri cally equivalent to a decimal value any four bit combination numerically greater than 9 cannot be used e g 1011 is not allowed because it is numerically equiva lent to 11 which cannot be expressed as a single digit in decimal notati...

Page 46: ...ative values range from 2 147 483 648 8000 0000 to 1 FFFF FFFF The following table shows the corresponding decimal 16 bit hexadecimal and 32 bit hexadecimal values Decimal 16 bit Hex 32 bit Hex 2147483647 2147483646 32768 32767 32766 2 1 0 1 2 32767 32768 32769 2147483647 2147483648 7FFF 7FFE 0002 0001 0000 FFFF FFFE 8001 8000 7FFFFFFF 7FFFFFFE 00008000 00007FFF 00007FFE 00000002 00000001 00000000...

Page 47: ...re reset when power is inter rupted or PC operation is stopped Area Range IR Area 1 I O Area 1 IR 000 to IR 029 Group 2 High density I O Unit Area 1 and B7A Interface Unit Area IR 030 to IR 049 SYSMAC BUS and DeviceNet Output Area IR 050 to IR 099 Special I O Unit Area 1 IR 100 to IR 199 Optical I O Unit and I O Terminal Area IR 200 to IR 231 Work Area IR 232 to IR 235 IR Area 2 I O Area 2 IR 300 ...

Page 48: ...R 001 IR 002 IR 003 IR 004 IR 005 IR 006 IR 007 IR 008 IR 009 1st Expansion IR 010 IR 011 IR 012 IR 013 IR 014 IR 015 IR 016 IR 017 IR 018 IR 019 2nd Expansion IR 020 IR 021 IR 022 IR 023 IR 024 IR 025 IR 026 IR 027 IR 028 IR 029 3rd Expansion IR 300 IR 301 IR 302 IR 303 IR 304 IR 305 IR 306 IR 307 IR 308 IR 309 Unused Words Any words allocated to a Unit that does not use them can be used in progr...

Page 49: ...HG HE Racks I O words between IR 200 and IR 231 are allocated to Optical I O Units and I O Terminals by unit number The I O word allocated to each Unit is IR 200 n where n is the unit number set on the Unit Remote Master I O Units and Host Link Units do not use I O words and the PC Link Units use the LR area so words allocated to the slots in which these Units are mounted are available as work wor...

Page 50: ...not be used Note Unit numbers A to F cannot be set when using the following CPU Units C200HE CPU32 Z C200HE CPU42 Z C200HG CPU33 Z C200HG CPU43 Z C200HX CPU34 Z and C200HX CPU44 Z Set unit number 0 to 9 when using these CPU Units When setting I O numbers on the High density I O Units and B7A Interface Units be sure that the settings will not cause the same words to be allocated to more than one Un...

Page 51: ...tput area for operating level 0 of SYSMAC NET Link System 08 to 15 Node loop status output area for operating level 1 of SYSMAC NET Link System 237 00 to 07 Completion code output area for operating level 0 following execution of SEND 90 RECV 98 for SYSMAC LINK SYSMAC NET Link System or CMCR for a PC Card 08 to 15 Completion code output area for operating level 1 following execution of SEND 90 REC...

Page 52: ...r Bit 11 Forced Status Hold Bit 12 Data Retention Control Bit 13 Rack mounting Host Link Unit Level 0 Restart Bit 14 Not used 15 Output OFF Bit 253 00 to 07 FAL number output area see error information provided elsewhere 08 Low Battery Flag 09 Cycle Time Error Flag 10 I O Verification Error Flag 11 Rack mounting Host Link Unit Level 0 Communications Error Flag 12 Remote I O Error Flag 13 Always ON...

Page 53: ... RS 232C Port Reception Overflow Flag 08 to 11 Peripheral Port Error Code in General I O Mode 0 No error 2 Framing error 1 Parity error 3 Overrun error 12 Peripheral Port Communications Error in General I O Mode 13 Peripheral Port Send Ready Flag in in General I O Mode 14 Peripheral Port Reception Completed Flag in General I O Mode 15 Peripheral Port Reception Overflow Flag in General I O Mode 265...

Page 54: ...dder program size stored in Memory Cassette Ladder only File 04 4 KW 08 8 KW 12 12 KW 32 32 KW 00 No ladder program or a file other than a ladder program has been stored 08 to 15 Ladder program size and type in CPU Unit Specifications are the same as for bits 00 to 07 272 00 to 10 Reserved by system not accessible by user 11 Memory Error Flag PC Setup Checksum Error 12 Memory Error Flag Ladder Che...

Page 55: ...279 00 to 15 Used for keyboard mapping See page 416 280 00 to 15 Group 2 High density I O Unit Error Flags for Units 0 to F AR 0205 to AR 0214 also function as Error Flags for Units 0 to 9 281 00 to 15 Special I O Unit Restart Bits for Units 0 to F Units 0 to 9 can also be restarted with Special I O Unit Restart Bits AR 0100 to AR 0109 To restart a Special I O Unit either use for force set reset o...

Page 56: ...stination node is not in network 04 Busy error The destination node is processing data and cannot receive the command 05 Response timeout The response monitoring time was exceeded 06 Response error There was an error in the response received from the destination node 07 Communications controller error An error occurred in the communications controller 08 Setting error There is an error in the node...

Page 57: ...status The function of each bit is de scribed below Refer to Optical and Wired Remote I O System Manuals for de tails SR 25100 Error Check Bit If there are errors in more than one Remote I O Unit word SR 251 will contain error information for only the first one Data for the remaining Units will be stored in memory and can be accessed by turning the Error Check bit ON and OFF Be sure to record data...

Page 58: ... status of all PC Link Units connected to the PC Link Sys tem This includes a maximum of 32 PC Link Units If the PC is in a Multilevel PC Link System half of the PC Link Units will be in a PC Link Subsystem in operating level 0 the other half in a Subsystem in operating level 1 The actual bit assign ments depend on whether the PC is in a Single level PC Link System or a Multi level PC Link System ...

Page 59: ... 15 level 1 Unit 7 level 1 Unit 15 level 0 Unit 7 level 0 Application Example If the PC is in a Multilevel PC Link System and the content of word 248 is 02FF then PC Link Units 0 through 7 of in the PC Link Subsystem assigned operat ing level 1 would be in RUN mode and PC Link Unit 1 in the same Subsystem would have an error The hexadecimal digits and corresponding binary bits of word 248 would be...

Page 60: ... of SR 25212 will be preserved when power is turned OFF and ON If this is done and SR 25212 is ON then the status of IR and LR area bits will also be preserved as shown in the following table Status before shutdown Status at next startup SR 25212 SR 25212 IR and LR bits ON ON Status maintained OFF OFF Reset Note Refer to 3 6 4 PC Setup for details on enabling the I O Status Hold Bit 3 4 6 Output O...

Page 61: ...when PC operation begins and then turns OFF after one cycle of the program The First Cycle Flag is useful in initializing counter values and other operations An example of this is provided in 5 14 Timer and Counter Instructions 3 4 12 Clock Pulse Bits Five clock pulses are available to control program timing Each clock pulse bit is ON for the first half of the rated pulse time then OFF for the sec...

Page 62: ...emote I O Master Unit Although the PC will continue operation if SR 25415 turns ON the Units causing the error will stop operation and the ALM indicator will flash Check the status of AR 0000 to AR 0015 to obtain the unit numbers of the Units for which the error occurred and investigate the cause of the error Unit operation can be restarted by using the Restart Bits AR 0100 to AR 0115 SR 25207 and...

Page 63: ...its 26200 to 26215 are used to set the maximum processing time of the in terrupt subroutine Processing times are determined to within 0 1 ms incre ments SR bits 26300 to 26315 contain the maximum processing time interrupt subrou tine number Bit 15 will be ON if there is an interruption 3 4 19 RS 232C Port Communications Areas RS 232C Port Error Code SR bits 26400 to 26403 set when there is a RS 23...

Page 64: ...Mode SR bit 26415 turns ON when data overflow occurs following the reception of data Effective in General I O Mode SR 26600 to SR 26615 contains the number of peripheral port receptions in General I O Mode BCD SR bit 26705 turns ON when the PC is ready to transmit to the Host Link Unit SR bit 26713 turns ON when the PC is ready to receive data from the Host Link 3 4 21 Memory Cassette Areas Memory...

Page 65: ...C is in Read only Mode and data transfer is attempted SR bit 27014 turns ON when data transfer is attempted and available UM is in sufficient SR bit 27015 turns ON when data transfer is attempted and a Board Checksum error occurs 3 4 23 Ladder Diagram Memory Areas SR 27100 to SR 27107 indicate the amount of ladder program stored in a Memory Cassette Ladder only Files 04 4 KW 08 8 KW 12 12 KW 32 32...

Page 66: ...76 SR 276 contains the current time SR bits 27600 to 27607 contain the minutes 00 to 59 and SR bits 27608 to 27615 contain the hours 0 to 23 Keyboard Mapping SR 277 SR 277 through SR 279 are used for keyboard mapping 3 4 29 Group 2 Error Flags SR bits 28000 to SR 28015 are used as Error Flags for Group 2 High density I O Units with unit numbers 0 to F The corresponding Error Flag is turned ON when...

Page 67: ... 28109 10 Restart Bit for operating level 1 of SYSMAC LINK or SYSMAC NET Link System 11 Restart Bit for operating level 0 of SYSMAC LINK or SYSMAC NET Link System 12 13 Not used 14 Remote I O Master Unit 1 Restart Bit 15 Remote I O Master Unit 0 Restart Bit 02 00 to 04 Slave Rack Error Flags 0 to 4 05 to 14 Group 2 Error Flags Bits 05 through 14 correspond to Units 0 to 9 15 Group 2 Error Flag 03 ...

Page 68: ... Level 0 Mounted Flag 10 Not used 11 PC Link Unit Level 1 Mounted Flag 12 PC Link Unit Level 0 Single Level Mounted Flag 13 Rack mounting Host Link Unit Level 1 Mounted Flag 14 Rack mounting Host Link Unit Level 0 Mounted Flag 15 CPU Unit mounting Device Mounted Flag 25 00 to 07 Password for access to the Online Edit Disable Bit The Online Edit Disable Bit is valid when this byte contains 5A 08 FP...

Page 69: ... Note Bits SR 28000 to SR 28015 also act as Error Flags for Group 2 High density I O Units with unit numbers 0 to F 3 5 4 Optical I O Unit and I O Terminal Error Flags AR 03 through AR 06 contain the Error Flags for Optical I O Units and I O Termi nals An error indicates a duplication of a unit number Up to 64 Optical I O Units and I O Terminals can be connected to the PC Units are distinguished b...

Page 70: ...rite the oldest error record each time an error occurs after 10 have been recorded Turn OFF AR 0713 to store only the first 10 records that occur each time after the history area is cleared AR 0714 Error History Reset Bit is turned ON and then OFF by the user to reset the Error Record Pointer DM 6000 and thus restart recording error records at the beginning of the history area AR 0715 Error Histor...

Page 71: ...000 to AR 2007 Month 1 to 12 AR 2008 to AR 2015 Year 00 to 99 Rightmost two digits of year AR 2100 to AR 2107 Day of week 00 to 06 00 Sunday 01 Monday 02 Tuesday 03 Wednesday 04 Thursday 05 Friday 06 Saturday 30 second Compensation Bit AR 2113 is turned ON to round the seconds of the Calendar clock Area to zero i e if the seconds is 29 or less it is merely set to 00 if the seconds is 30 or great e...

Page 72: ...BCD Data Modification for details The Power OFF Counter is refreshed every time power is turned ON 3 5 12 SYSMAC LINK Peripheral Device Flags A Peripheral Device can be used through the SYSMAC LINK System from only one port at a time When changing the port from which the Peripheral Device is being used turn ON the SYSMAC LINK Peripheral Device Initialization Bit AR 2403 Bit Function AR 2400 SYSMAC...

Page 73: ...nted Flag AR 2415 turns ON when any device is mounted directly to the CPU Unit This includes CPU Unit mounting Host Link Units Programming Consoles and In terface Units This flag is refreshed every cycle 3 5 16 FPD Trigger Bit AR 2508 is used to adjust the monitoring time of FPD automatically Refer to 5 25 12 FAILURE POINT DETECT FPD for details 3 5 17 Data Tracing Flags and Control Bits The follo...

Page 74: ...000 to DM 6143 can be written to by the program but DM 6144 to DM 6655 can be over written only from a Peripheral Device such as a Programming Console or com puter with SSS The DM area retains status during power interruptions DM 6031 cannot be used in user applications because it is used by the system to store EM bank number information and indirect DM addresses Indirect Addressing Normally when ...

Page 75: ...ables The expansion DM area is used to store operating parameters and cannot be used in programming like the normal DM area Expansion DM can only be over written from a Peripheral Device retains status during power interruptions and cannot be used for indirect addressing The UM area can be allocated as expansion DM area in increments of 1K words Once expansion DM area has been created it is saved ...

Page 76: ...o DM 2399 or DM 8300 to DM 8399 E DM 2400 to DM 2499 or DM 8400 to DM 8499 F DM 2500 to DM 2599 or DM 8500 to DM 8599 Note These DM words can be used for other purposes when not allocated to Special I O Units 3 6 3 Error History Area DM 6000 to DM 6030 are used to store up to 10 records that show the nature time and date of errors that have occurred in the PC The Error History Area will store syst...

Page 77: ... PC Setup error 9C Communications Board error 9D UM Memory Cassette transfer error B0 to B1 Remote I O error D0 Special I O error E7 I O table verification error F7 Battery error F8 Cycle time overrun Operation When the first error code is generated with AR 0715 Error History Enable Bit turned ON the relevant data will be placed in the error record after the one indi cated by the History Record Po...

Page 78: ...monitor time DM 6618 4 Cycle time setting DM 6619 5 RS 232C Port Settings DM 6645 through DM 6649 The PC can be operated with the default PC Setup which requires changing only when customizing the PC s operating environment to application needs The PC Setup parameters are described in the following table If there is an error in the settings in DM 6600 to DM 6655 a non fatal error error code 9B wil...

Page 79: ... Area Allocation operation must be performed beforehand ROM conversion is possible indirectly by converting DM 7000 through DM 8599 to ROM 12 DM Linear Mode 2 Use DM 7000 through DM 8599 for the Special I O Unit Area The UM Area Allocation operation must be performed beforehand DM 1000 through DM 2599 can be used as regular DM DM 7000 through DM 8599 can be converted to ROM See also 3 6 6 Special ...

Page 80: ...et to 01 02 or 03 00 to 99 BCD setting unit see 08 to 15 00 08 to 15 Cycle monitor enable Setting in 00 to 07 setting unit 99 s max 00 120 ms setting in bits 00 to 07 disabled 01 Setting unit 10 ms 02 Setting unit 100 ms 03 Setting unit 1 s 00 120 ms DM 6619 00 to 15 Cycle time 0000 Variable no minimum 0001 to 9999 BCD Minimum time in ms Variable Interrupt Refresh Processing DM 6620 to DM 6623 The...

Page 81: ...owing settings are accessed continually while the PC is ON DM 6645 00 to 03 Port settings 0 Standard Host Link or peripheral bus serial communications mode 1 start bit 7 bit data even parity 2 stop bits 9 600 bps 1 Settings in DM 6646 Standard 04 to 07 CTS control setting 0 Disable CTS control 1 Enable CTS control Disable 08 to 11 Words linked for 1 1 PC Link 0 LR 00 to LR 63 1 LR 00 to LR 31 2 LR...

Page 82: ...or peripheral bus serial communications mode 1 start bit 7 bit data even parity 2 stop bits 9 600 bps 1 Settings in DM 6651 Standard 04 to 11 Reserved 12 to 15 Serial communications mode 0 Host Link 1 No protocol Host Link DM 6651 00 to 07 Baud rate 00 1 2K 01 2 4K 02 4 8K 03 9 6K 04 19 2K 1 2 K 08 to 15 Frame format Start Length Stop Parity 00 1 bit 7 bits 1 bit Even 01 1 bit 7 bits 1 bit Odd 02 ...

Page 83: ...6550 through DM 6554 contain the communications settings for Commu nications Board port B and DM 6555 through DM 6559 contain the communica tions settings for Communications Board port A Word s Bit s Function Default Communications Board Port B Settings DM 6550 to DM 6554 The following settings are accessed continually while the PC is ON DM 6550 00 to 03 Port settings 0 Standard 1 start bit 7 bit ...

Page 84: ...de 2 CR LF Disabled DM 6554 00 to 07 Start code RS 232C 00 to FF binary 0000 08 to 15 12 to 15 of DM 6553 set to 0 Number of bytes received 00 Default setting 256 bytes 01 to FF 1 to 255 bytes 12 to 15 of DM 6553 set to 1 End code RS 232C 00 to FF binary Communications Board Port A Settings DM 6555 to DM 6559 The following settings are read continually while the PC is ON DM 6555 00 to 03 Port sett...

Page 85: ... 256 bytes 01 to FF 1 to 255 bytes 12 to 15 of DM 6558 set to 1 End code RS 232C 00 to FF binary 3 6 6 Special I O Unit Area Settings The setting in bits 08 through 15 of DM 6602 determines the size and location of the Special I O Unit Area as shown in the following table Setting Mode Function 00 C200H compatible RAM Mode DM 1000 through DM 2599 are used for the Special I O Unit Area Data in the S...

Page 86: ... 3 7 HR Holding Relay Area The HR area is used to store manipulate various kinds of data and can be ac cessed either by word or by bit Word addresses range from HR 00 through HR 99 bit addresses from HR 0000 through HR 9915 HR bits can be used in any order required and can be programmed as often as required The HR area retains status when the system operating mode is changed when power is interrup...

Page 87: ...PVs of count ers are not reset at these times Note that in programming TIM 000 is used to designate three things the Timer instruction defined with TC number 000 the completion flag for this timer and the PV of this timer The meaning in context should be clear i e the first is al ways an instruction the second is always a bit and the third is always a word The same is true of all other TC numbers ...

Page 88: ... 7000 through DM 8599 in the PC Setup DM 6602 PC Setup The PC Setup contains various settings that control PC operation Reserved This area is reserved for system use It cannot be accessed by the user Expansion DM This area contains initialing data such as Special I O Unit data numerical or character string tables for PTs and calculation data Data can t be read directly from the expansion DM area a...

Page 89: ...IEMS instructions to manage EM area data Instruction Function EMBC Changes the current bank to the specified bank number XFR2 Transfers data within the current EM bank or between the current EM bank and one of the regular data areas BXF2 Transfers data between the specified EM bank and another EM bank or a regular data area IEMS Switches the destination of indirect addressing DM to the specified E...

Page 90: ...eginning of the next cycle 2 The destination for indirect addressing reverts to the DM area at the start of interrupt subroutines but can be changed within a subroutine The destina tion is returned to its original setting when control is returned to the main pro gram 3 12 2 The Current EM Bank The current EM bank is set to bank 0 when the PC is turned on and the current EM bank can be changed by E...

Page 91: ...he I O Table 96 4 6 5 Clearing Error Messages 97 4 6 6 Verifying the I O Table 97 4 6 7 Reading the I O Table 99 4 6 8 Clearing the I O Table 101 4 6 9 SYSMAC NET Link Table Transfer 102 4 7 Inputting Modifying and Checking the Program 104 4 7 1 Setting and Reading from Program Memory Address 104 4 7 2 Entering and Editing Programs 105 4 7 3 Checking the Program 108 4 7 4 Displaying the Cycle Time...

Page 92: ...r diagram programming and conversion to mnemonic code are described in 4 4 Basic Ladder Diagrams Preparing for and inputting the pro gram via the Programming Console are described in 4 5 The Programming Console through 4 7 Inputting Modifying and Checking the Program The rest of Section 4 covers more advanced programming programming precautions and program execution All special application instruc...

Page 93: ...1001 21002 00405 21005 21007 As shown in the diagram above instruction lines can branch apart and they can join back together The vertical pairs of lines are called conditions Conditions without diagonal lines through them are called normally open conditions and correspond to a LOAD AND or OR instruction The conditions with diagonal lines through them are called normally closed conditions and corr...

Page 94: ...ether to create a logic result is called a logic block Although ladder diagrams can be written without actually analyzing individual logic blocks understanding logic blocks is necessary for efficient pro gramming and is essential when programs are to be input in mnemonic code 4 4 2 Mnemonic Code The ladder diagram cannot be directly input into the PC via a Programming Con sole SSS is required To i...

Page 95: ...0 DM 0500 00011 DIFU 13 00502 00012 AND 00005 00013 OUT 00503 The address and instruction columns of the mnemonic code table are filled in for the instruction word only For all other lines the left two columns are left blank If the instruction requires no definer or bit operand the operand column is left blank for first line It is a good idea to cross through any blank data column spaces for all i...

Page 96: ... instruction and the rest of the condi tions correspond to AND or AND NOT instructions The following example shows three conditions which correspond in order from the left to a LOAD an AND NOT and an AND instruction Again each of these instructions requires one line of mnemonic code 00000 00100 LR 0000 Instruction Address Instruction Operands 00000 LD 00000 00001 AND NOT 00100 00002 AND LR 0000 00...

Page 97: ...ated diagrams they can sometimes be considered individually with each instruction performing a logic operation on the execution condition and the status of the operand bit The following is one example Study this example until you are convinced that the mnemonic code follows the same logic flow as the ladder diagram Instruction 00002 00003 00000 00001 00200 Address Instruction Operands 00000 LD 000...

Page 98: ... points assigned IR 00000 and IR 00001 are controlling the output points assigned IR 00200 and IR 00201 respectively The length of time that a bit is ON or OFF can be controlled by combining the OUTPUT or OUTPUT NOT instruction with TIMER instructions Refer to Exam ples under 5 14 1 TIMER TIM for details 4 4 5 The END Instruction The last instruction required to complete a simple program is the EN...

Page 99: ...he left logic block is ON i e when either IR 00000 or IR 00001 is ON and when either of the conditions in the right logic block is ON i e when either IR 00002 is ON or IR 00003 is OFF The above ladder diagram cannot however be converted to mnemonic code using AND and OR instructions alone If an AND between IR 00002 and the re sults of an OR between IR 00000 and IR 00001 is attempted the OR NOT be ...

Page 100: ...D LOAD instruction except that the current execution condition is ORed with the last unused execution condition Address Instruction Operands 00000 LD 00000 00001 AND NOT 00001 00002 LD 00002 00003 AND 00003 00004 OR LD 00005 Instruction Instruction 00000 00001 00002 00003 Naturally some diagrams will require both AND LOAD and OR LOAD instruc tions To code diagrams with logic block instructions in ...

Page 101: ...monic code because three pairs of series conditions lie in parallel to each other 00000 00001 00002 00003 00040 00005 00501 The first of each pair of conditions is converted to LOAD with the assigned bit operand and then ANDed with the other condition The first two blocks can be coded first followed by OR LOAD the last block and another OR LOAD or the three blocks can be coded first followed by tw...

Page 102: ...coded first and then OR LOAD has been used to combine the last two blocks followed by AND LOAD to combine the execution condition produced by the OR LOAD with the execution condition of block a When coding the logic block instructions together at the end of the logic blocks they are combining they must as shown below be coded in reverse order i e the logic block instruction for the last two blocks...

Page 103: ...into two blocks before it can be coded As shown below blocks a and b require an AND LOAD Before AND LOAD can be used however OR LOAD must be used to combine the top and bottom blocks on both sides i e to combine a1 and a2 b1 and b2 00000 00001 00004 00005 00503 Block a Block b 00006 00007 Block b2 Block b1 00002 00003 Block a2 Block a1 Blocks a1 and a2 Blocks b1 and b2 Blocks a and b Address Instr...

Page 104: ...001 AND NOT 00003 00002 OR 00001 00003 AND 00000 00004 LD NOT 00004 00005 AND 00005 00006 OR LD 00007 LD NOT 00006 00008 AND 00007 00009 OR LD 00010 OUT LR 0000 The following diagram requires five blocks which here are coded in order before using OR LOAD and AND LOAD to combine them starting from the last two blocks and working backward The OR LOAD at program address 00008 com bines blocks blocks ...

Page 105: ...used to combine the execution conditions re sulting from blocks a and b and the second one is to combine the execution condition of block c with the execution condition resulting from the normally closed condition assigned IR 00003 The rest of the diagram can be coded with OR AND and AND NOT instructions The logical flow for this and the resulting code are shown below 00000 00001 00500 00002 00003...

Page 106: ...r instructions and monitoring I O bit status 3 Monitoring I O status force setting resetting bits 4 The Programming Console can be connected to or disconnected from the PC with the power on 5 The Programming Console can be used with C series PCs 6 Supports TERMINAL mode which allows the display of a 32 character message as well as operation of the keyboard mapping function Refer to 5 25 6 TERMINAL...

Page 107: ... gray keys are used to input instructions and designate data area prefixes when inputting or changing a pro gram The SHIFT key is similar to the shift key of a typewriter and is used to alter the function of the next key pressed It is not necessary to hold the SHIFT key down just press it once and then press the key to be used with it Gray Instruction and Data Area Keys The Programming Console Sec...

Page 108: ... the Output instruction or used with NOT to enter OUT NOT Also pressed to indicate an output bit Pressed to enter TIM the Timer instruction or to designate a TC number that has already been defined as a timer Pressed before designating an address in the TR area Pressed before designating an address in the LR area Pressed before designating an address in the HR area Pressed before designating an ad...

Page 109: ...ing Console connected to the PC by an extension cable when in RUN mode Noise picked up by the extension cable can enter the PC affecting the program and thus the controlled system 4 5 3 The Display Message Switch Pin 3 of the CPU Unit s DIP switch determines whether Japanese or English lan guage messages will be displayed on the Programming Console It is factory set to ON which causes English lang...

Page 110: ... the display If the Programming Console is connected to the PC when PC power is already ON the first display below will indicate the mode the PC was in before the Pro gramming Console was connected Ensure that the PC is in PROGRAM mode before you enter the password When the password is entered the PC will shift to the mode set on the mode switch causing PC operation to begin if the mode is set to ...

Page 111: ...the top line of the following key sequence The branch lines shown in the se quence are used only when performing a partial memory clear which is de scribed below Memory can be cleared in PROGRAM mode only The following table shows which memory areas will be cleared for the 3 memory clearing operations all clear partial clear memory clear Memory Area All clear Partial clear Memory clear I O words C...

Page 112: ...etention both areas will be cleared CNT is used for the entire TC area Press Shift DM to specify the EM area The display will show those areas that will be cleared It is possible to retain some EM banks and clear others See the explanation un der the heading Clearing Selected EM Banks on page 95 It is also possible to retain a portion of the ladder program from the beginning to a specified address...

Page 113: ...Clearing Selected EM Banks When a partial memory clear operation is being performed specific banks can be selected for clearing rather than selecting the entire EM area In the following example EM banks 0 and 2 are selected for clearing The Programming Console will display the following screens 00000 00000 00000 00000MEMORY CLR HR CNT DM EM 00000 EM CLR 012 00000 EM CLR 0 2 00000 EM CLR END 0 2 Pr...

Page 114: ...cords the types of I O Units controlled by the PC and the Rack locations of the I O Units It also clears all I O bits It is not absolutely necessary to register the I O table with the C200HX HG HE When the I O table has not been registered the PC will operate according to the I O Units mounted when power is applied The I O verification setting error will not occur It is necessary to register the I...

Page 115: ...ror messages press CLR FUN and then MONTR The first message will appear Pressing MONTR again will clear the present message and display the next error message Continue pressing MONTR until all messages have been cleared Although error messages for fatal errors can be accessed in any mode they can be cleared only in PROGRAM mode Key Sequence 4 6 6 Verifying the I O Table The I O Table Verification ...

Page 116: ...00IOTBL CHK 0Ć1U O I Meaning of Displays The following display indicates a C500 C1000H or C2000H and C200H C200HS or C200HX HG HE have the same unit number on a Remote I O Slave Rack 00000I OTBL CHK Ć U ĆĆĆĆ The following display indicates a duplication in Optical I O Unit unit numbers Indicates duplication 00000I OTBL CHK 2 HU R ĆI R ĆW Preparation for Operation Section 4 6 ...

Page 117: ...e 0 to 3 0 to 9 Rack number Unit number Press the EXT key to select Remote I O Slave Racks or Optical I O Units 00000 00000 FUN 00000IOTBL Ć U Main Rack 00000IOTBL 0Ć U 00000IOTBL 0Ć5U 00000IOTBL READ 0Ć5U i 005 00000IOTBL READ 0Ć4U o 004 00000IOTBL READ 0Ć5U i 005 00000IOTBL R Ć U 00000IOTBL 2 LU Slave Rack Units Optical I O Unit 00000IOTBL Ć U Main Rack Example Preparation for Operation Section ...

Page 118: ... I O word number I O type i input o output Unit number 0 to 9 Rack number 0 to 3 00000IOTBL READ Ć U 00000IOTBL READ Ć U INT0 or INT1 Mounted to CPU Unit or Expansion I O Rack Unit number 0 to F Indicates Special I O Unit 00000IOTBL READ Ć U Blank Unit 1 exclusively W Unit 2 exclusively Special I O Unit type C High speed Counter N Position Control Unit A Other Remote I O Master no 0 or 1 00000IOTB...

Page 119: ...ion is used to delete the contents of the I O table that is currently registered in the CPU Unit memory The PC will be set for operation based on the I O Units mounted when the I O Table Clear operation is per formed The I O Table Clear operation will reset all Special I O Units and Link Units mounted at the time Do not perform the I O Table Clear operation when a Host Link Unit PC Link Unit Remot...

Page 120: ...e to EPROM or storing the program in an EEPROM Memory Cassette Note When power is applied to a PC which has a copy of a SYSMAC NET Link table stored in its program memory the SYSMAC NET Link table of the CPU Unit will be overwritten Changes made in the SYSMAC NET Link table do not affect the copy of the SYSMAC NET Link table in program memory SYSMAC NET Link Table Transfer must be repeated to chan...

Page 121: ...NK TBL UM SYSMACĆNET 00000LINK TBL UM OK 00000LINK TBL UM SYSMACĆNET 9713 00000LINK TBL UM DISABLED The following indicates that the I O table cannot be transferred 00000 00000 FUN Example Preparation for Operation Section 4 6 ...

Page 122: ...ct it as required Further debugging methods are provided in Section 7 Program Monitoring and Execution 4 7 1 Setting and Reading from Program Memory Address When inputting a program for the first time it is generally written to Program Memory starting from address 00000 Because this address appears when the display is cleared it is not necessary to specify it When inputting a program starting from...

Page 123: ...RITE is pressed at the end of each line of the mnemonic code When WRITE is pressed at the end of each line the designated instruction or operand is entered and the next display will appear If the instruction requires two or more words the next display will indicate the next operand required and provide a default value for it If the instruction requires only one word the next address will be displa...

Page 124: ... always written after the instruction s mnemonic If no function code is given there should be a Programming Console key for that instruction To designate the differentiated form of an instruction press NOT after the func tion code To input an instruction using a function code set the address press FUN input the function code including any leading zeros press NOT if the differentiated form of the i...

Page 125: ...200 00200 LD 00002 00201READ NOP 00 00201 TIM 000 00201 TIM DATA 0000 00201 TIM 0123 00202READ NOP 00 00202 FUN 00202 TIMH 15 000 00202 TIMH DATA 0000 00202 TIMH 0500 00203READ NOP 00 Address Instruction Operands 00200 LD 00002 00201 TIM 000 0123 00202 TIMH 15 000 0500 Inputting Modifying and Checking the Program Section 4 7 ...

Page 126: ...if the program has been changed in any way that might create a syntax error To check the program input the key sequence shown below The numbers indi cate the desired check level see below When the check level is entered the program check will start If an error is discovered the check will stop and a dis play indicating the error will appear Press SRCH to continue the check If an error is not found...

Page 127: ...correctly Check STEP 08 programming requirements and correct the program Type B ILĆILC ERR IL 02 and ILC 03 are not used in pairs Correct the program so that each IL 02 has a unique ILC 03 Although this error message will appear if more than one IL 02 is used with the same ILC 03 the program will executed as written Make sure your program is written as desired before proceeding JMPĆJME ERR JMP 04 ...

Page 128: ... Cycle Time Once the program has been cleared of syntax errors the cycle time should be checked This is possible only in RUN or MONITOR mode while the program is being executed See Section 6 Program Execution Timing for details on the cycle time To display the current average cycle time press CLR then MONTR The time displayed by this operation is a typical cycle time The differences in displayed v...

Page 129: ...s when inputting the program and press SRCH Once an occurrence of an instruction or bit address has been found any additional occurrences of the same instruction or bit can be found by pressing SRCH again SRCH G will be displayed while a search is in progress When the first word of a multiword instruction is displayed for a search operation the other words of the instruction can be displayed by pr...

Page 130: ...nserted before it These operations are possible only in PROGRAM mode with the write protect switch pin 1 of the CPU Unit s DIP switch set to OFF OFF WRITE To insert an instruction display the instruction before which you want the new instruction to be placed input the instruction word in the same way as when inputting a program initially and then press INS and the down key If other words are requi...

Page 131: ...ank addresses or no unaddressed instructions Example The following mnemonic code shows the changes that are achieved in a pro gram through the key sequences and displays shown below Original Program Address Instruction Operands 00000 LD 00100 00001 AND 00101 00002 LD 00201 00003 AND NOT 00102 00004 OR LD 00005 AND 00103 00006 AND NOT 00104 00007 OUT 00201 00008 END 01 00105 00100 00103 00104 00101...

Page 132: ...OR LD 00005 AND 00103 00006 AND 00105 00007 AND NOT 00104 00008 OUT 00201 00009 END 01 Find the instruction that requires deletion Confirm that this is the instruction to be deleted Program After Deletion Deleting an Instruction 00000 00000 OUT 00000 00000 OUT 00201 00208SRCH OUT 00201 00207READ AND NOT 00104 00207 DELETE AND NOT 00104 00207DELETE END OUT 00201 00206READ AND 00105 Address Instruct...

Page 133: ...uction 1 00003 AND 00002 00004 Instruction 2 If as shown in diagram A the execution condition that existed at the branching point cannot be changed before returning to the branch line instructions at the far right do not change the execution condition then the branch line will be executed correctly and no special programming measure is required If as shown in diagram B a condition exists between t...

Page 134: ... status of IR 00002 and instruction 2 is executed accordingly The following example shows an application using two TR bits Instruction 1 00003 00000 00002 TR 1 00005 TR 0 00001 00004 Instruction 2 Instruction 3 Instruction 4 Address Instruction Operands 00000 LD 00000 00001 OUT TR 0 00002 AND 00001 00003 OUT TR 1 00004 AND 00002 00005 Instruction 1 00006 LD TR 1 00007 AND 00003 00008 Instruction 2...

Page 135: ...a in the required operand word Be sure that you have considered execution order before reorganizing a program to simplify it Instruction 1 00000 Instruction 2 00001 TR 0 Instruction 2 00000 Instruction 1 00001 Instruction 1 00000 Instruction 2 00003 TR 0 00001 00004 00002 00001 00003 00000 00004 00002 00001 Instruction 1 Instruction 2 Note TR bits are only used when programming using mnemonic code...

Page 136: ... Instruction 2 00001 ILC 03 IL 02 Address Instruction Operands 00000 LD 00000 00001 IL 02 00002 LD 00001 00003 Instruction 1 00004 LD 00002 00005 Instruction 2 00006 ILC 03 If IR 00000 is ON in the revised version of diagram B above the status of IR 00001 and that of IR 00002 would determine the execution conditions for instructions 1 and 2 respectively Because IR 00000 is ON this would produce th...

Page 137: ... normally as if the jump did not exist If the execution condition for the JUMP instruction is OFF program execution moves immediately to a JUMP END instruction without changing the status of anything between the JUMP and JUMP END instruction All JUMP and JUMP END instructions are assigned jump numbers ranging between 00 and 99 There are two types of jumps The jump number used deter mines the type ...

Page 138: ...iagram interlocks would reset certain parts of the interlocked section however jumps do not affect the status of any bit between the JUMP and JUMP END instructions Instruction 1 00000 Instruction 2 00001 JME 05 00 JMP 04 00 00004 Instruction 3 Instruction 4 00006 00005 00003 00002 JMP 04 00 Address Instruction Operands 00000 LD 00000 00001 JMP 04 00 00002 LD 00001 00003 Instruction 1 00004 LD 0000...

Page 139: ... operand bit based on two execution conditions To do this the KEEP instruction is connected to two instruction lines When the execution condition at the end of the first instruction line is ON the operand bit of the KEEP instruction is turned ON When the execution condition at the end of the second instruction line is ON the operand bit of the KEEP instruction is turned OFF The operand bit for the...

Page 140: ...s are not transferred to or from the PC They are bits selected by the programmer to facilitate programming as described above I O bits and other dedicated bits cannot be used as works bits All bits in the IR area that are not allocated as I O bits and certain unused bits in the AR area are available for use as work bits Be careful to keep an accurate record of how and where you use work bits This ...

Page 141: ... 00000 LD 00000 00001 AND NOT 00001 00002 OR 00002 00003 OR NOT 00003 00004 OUT 24600 00005 LD 24600 00006 AND 00004 00007 AND NOT 00005 00008 OUT 00100 00009 LD 24600 00010 OR NOT 00004 00011 AND 00005 00012 OUT 00101 00013 LD NOT 24600 00014 OR 00006 00015 OR 00007 00016 OUT 00102 Differentiated Conditions Work bits can also be used if differential treatment is necessary for some but not all of ...

Page 142: ... as many conditions as required to draw a clear diagram Although very complicated dia grams can be drawn with instruction lines there must not be any conditions on lines running vertically between two other instruction lines Diagram A shown below for example is not possible and should be drawn as diagram B Mne monic code is provided for diagram B only coding diagram A would be impossi ble 00003 In...

Page 143: ...ons and is controlled by the execution condition of the first of the pair Conditions should not be placed on the instruction lines leading to these instructions Refer to Section 5 Instruction Set for details When drawing ladder diagrams it is important to keep in mind the number of instructions that will be required to input it In diagram A below an OR LOAD instruction will be required to combine ...

Page 144: ...ecution of IORF 97 is disabled until Spe cial I O Unit initialization is completed SR 28100 Unit 0 Restart Bit SR 27400 Unit 0 Restart Flag ON OFF ON OFF Special I O Unit Initialization Execution of IORF 97 for Unit 0 Enabled Disabled Enabled While the Restart Flag SR 27400 is ON normal END refreshing is performed and the Special I O Unit is initialized This processing occurs regardless of the set...

Page 145: ...gh DM 8999 Steps 1 through 5 in the following procedure aren t necessary when XFER 70 is used to overwrite DM 1000 through DM 1999 directly from the program with the contents of fixed DM DM 6144 through DM 6599 In this case just restart the Unit from the program after overwriting DM 1000 through DM 1999 1 2 3 1 Clear the memory all clear The UM Area Allocation operation can t be performed unless t...

Page 146: ...ation There are two ways to extend the interval between I O refreshes Either of these methods can be used 1 2 3 1 Disable cyclic Special I O Unit refreshing in the PC Setup DM 6621 and use IORF 97 to refresh the Special I O Unit s I O only when necessary To disable cyclic refreshing for all Special I O Units mounted to the CPU Rack or Expansion I O Racks set DM 6621 to 0100 2 Increase the PC s cyc...

Page 147: ...cyclic Special I O Unit refreshing in the PC Setup DM 6621 and use IORF 97 to refresh the Special I O Units instead I O refreshing for all Special I O Units mounted to the CPU Rack or Expansion I O Racks can be disabled in the PC Setup by setting DM 6621 to 0100 The following example program reduces the Special I O Unit refreshing time for a PC with four Special I O Units by refreshing just one Un...

Page 148: ...lowed unless there is a specific reason and then only when proper operation can be ensured 4 13 Analog Timer Unit Programming An Analog Timer Unit s timer SV can be changed easily without a Programming Console The Unit is equipped with an external variable resistor connector so a variable resistor can be installed in the control panel and connected to the Ana log Timer Unit to set or adjust the ti...

Page 149: ... i 05 Timer 1 Stop Bit p ON Stop timer operation 06 Timer 2 Stop Bit 07 Timer 3 Stop Bit 08 Input Timer 0 Completion Flag ON when timer has timed out 09 p Timer 1 Completion Flag 10 Timer 2 Completion Flag 11 Timer 3 Completion Flag 12 to 15 Not used Timer Range Setting Set the timer range with the upper DIP switch on the front of the Unit Each tim er s range can be set independently Range Timer 0...

Page 150: ...nput Unit IR 000 IR word allocated to the Output Unit IR 005 The Analog Timer Unit s SV settings and external variable resistor control con nections are shown below Timer Set value Range Variable resistor control 0 0 6 s 0 1 to 1 s Internal 1 3 s 1 to 10 s Internal 2 20 s 10 to 60 s External 3 8 minutes 1 to 10 minutes External Unit Configuration Analog Timer Unit Programming Section 4 13 ...

Page 151: ...nternal SV settings so the variable resistor con trols at the top of the Unit are used to set their SVs External SV Settings 0 to 20 KΩ Connect variable resistor for timers 2 and 3 to these connec tors Refer to the Analog Timer Unit s Operation Manual for details on these settings Pin 8 OFF Pin 7 OFF Timer 0 0 1 to 1 second Pin 6 ON Pin 5 OFF Timer 1 1 to 10 seconds Pin 4 OFF Pin 3 ON Timer 2 10 t...

Page 152: ...ontrol elapses the Completion Flag 00211 goes ON and the Unit s TIME UP indicator lights Output IR 00503 goes ON at the same time 00206 00207 00200 00202 00203 00501 00500 00201 00502 00503 00005 00002 00004 00209 00208 00003 00210 00211 Timers 2 and 3 stop operating when the emergency stop input goes ON When the time set on the internal volume control elapses the Completion Flag 00208 goes ON and...

Page 153: ...ol output bits through the Output instruction they can be used to control execution of other instructions as well The Output instructions used in examples in this manual can therefore generally be replaced by other instructions to modify the program for specific applications other than controlling output bits directly 5 1 Notation 138 5 2 Instruction Format 138 5 3 Data Areas Definer Values and Fl...

Page 154: ...16 8 TO 256 DECODER MLPX 76 209 5 18 8 16 TO 4 256 TO 8 ENCODER DMPX 77 212 5 18 9 7 SEGMENT DECODER SDEC 78 215 5 18 10 ASCII CONVERT ASC 86 218 5 18 11 ASCII TO HEXADECIMAL HEX 219 5 18 12 SCALING SCL 222 5 18 13 COLUMN TO LINE LINE 63 224 5 18 14 LINE TO COLUMN COLM 64 225 5 18 15 2 S COMPLEMENT NEG 226 5 18 16 DOUBLE 2 S COMPLEMENT NEGL 227 5 19 BCD Calculations 228 5 19 1 INCREMENT INC 38 228...

Page 155: ... MEMORY SAMPLING TRSM 45 306 5 25 4 MESSAGE DISPLAY MSG 46 307 5 25 5 LONG MESSAGE LMSG 47 308 5 25 6 TERMINAL MODE TERM 48 309 5 25 7 WATCHDOG TIMER REFRESH WDT 94 310 5 25 8 I O REFRESH IORF 97 310 5 25 9 GROUP 2 HIGH DENSITY I O REFRESH MPRF 61 311 5 25 10 BIT COUNTER BCNT 67 312 5 25 11 FRAME CHECKSUM FCS 312 5 25 12 FAILURE POINT DETECTION FPD 314 5 25 13 DATA SEARCH SRCH 318 5 25 14 EXPANSIO...

Page 156: ... specifies the instruction and contains any definers described below or operand bits required by the instruction Other operands required by the instruction are contained in following words one operand per word Some instructions require up to four words A definer is an operand associated with an instruction and contained in the same word as the instruction itself These operands define the instructi...

Page 157: ...hen the DM area is specified for an operand an indirect address can be used Indirect DM addressing is specified by placing an asterisk before the DM DM When an indirect DM address is specified the designated DM word will contain the address of the DM word that contains the data that will be used as the operand of the instruction If for example DM 0001 was designated as the first operand and LR 00 ...

Page 158: ...l move the content of HR 10 to DM 0000 only once after 00000 goes ON Even if 00000 remains ON for 2 0 seconds with the same 80 ms cycle time the move operation will be executed only once during the first cycle in which 00000 has changed from OFF to ON Because the content of HR 10 could very well change during the 2 seconds while 00000 is ON the final content of DM 0000 after the 2 seconds could be...

Page 159: ...E 309 60 CMPL DOUBLE COMPARE 196 61 MPRF GROUP 2 HIGH DENSITY I O REFRESH 311 62 XFRB TRANSFER BITS 189 63 LINE COLUMN TO LINE 224 64 COLM LINE TO COLUMN 225 65 SEC HOURS TO SECONDS 207 66 HMS SECONDS TO HOURS 208 67 BCNT BIT COUNTER 312 68 BCMP BLOCK COMPARE 197 69 APR ARITHMETIC PROCESS 263 87 TTIM TOTALIZING TIMER 165 88 ZCP AREA RANGE COMPARE 200 89 INT INTERRUPT CONTROL 289 7SEG 7 SEGMENT DIS...

Page 160: ...the instruction The address and instruction columns of the mnemonic code table are filled in for the instruction word only For all other lines the left two columns are left blank If the instruction requires no definer or bit operand the data column is left blank for first line It is a good idea to cross through any blank data column spaces for all instruction words that do not require data so that...

Page 161: ... 00006 LD 01001 00007 AND NOT 01002 00008 AND NOT LR 6300 00009 OR LD 00010 AND 22500 00011 BCNT 67 0001 004 HR 00 00012 LD 00005 00013 TIM 000 0150 00014 LD TIM 000 00015 MOV 21 HR 00 LR 00 00016 LD HR 0015 00017 OUT NOT 00500 00100 00200 DIFU 13 22500 00500 BCNT 67 0001 004 HR 00 MOV 21 HR 00 LR 00 01001 01002 LR 6300 TIM 000 22500 00002 00005 HR 0015 00000 00001 TIM 000 0150 Coding Right hand I...

Page 162: ... An example of this for SFT 10 is shown below I P R SFT 10 HR 00 HR 00 Address Instruction Data 00000 LD 00000 00001 AND 00001 00002 LD 00002 00003 LD 00100 00004 AND NOT 00200 00005 LD 01001 00006 AND NOT 01002 00007 AND NOT LR 6300 00008 OR LD 00009 AND 22500 00010 SFT 10 HR 00 HR 00 00011 LD HR 0015 00012 OUT NOT 00500 00100 00200 00500 01001 01002 LR 6300 22500 00002 HR 0015 00000 00001 END 01...

Page 163: ...RW EXCLUSIVE OR XNRW EXCLUSIVE NOR INC INCREMENT DEC DECRE MENT 4 STC SET CARRY CLC CLEAR CARRY TRSM TRACE MEMORY SAMPLE MSG MESSAGE DISPLAY LMSG LONG MES SAGE TERM TERMINAL MODE 5 ADB BINARY ADD SBB BINARY SUBTRACT MLB BINARY MULTIPLY DVB BINARY DIVIDE ADDL DOUBLE BCD ADD SUBL DOUBLE BCD SUBTRACT MULL DOUBLE BCD MULTIPLY DIVL DOUBLE BCD DIVIDE BINL DOUBLE BCD TO DOUBLE BINARY BCDL DOUBLE BINARY T...

Page 164: ...9 2 COMPLEMENT 277 CPS 4 SIGNED BINARY COMPARE 202 CPSL 4 DOUBLE SIGNED BINARY COMPARE 203 DBS 4 SIGNED BINARY DIVIDE 255 DBSL 4 DOUBLE SIGNED BINARY DIVIDE 256 DEC 39 2 BCD DECREMENT 228 DIFD 14 2 DIFFERENTIATE DOWN 151 DIFU 13 2 DIFFERENTIATE UP 151 DIST 80 4 SINGLE WORD DISTRIBUTE 183 DIV 33 4 BCD DIVIDE 236 DIVL 57 4 DOUBLE BCD DIVIDE 237 DMPX 77 4 16 TO 4 256 TO 8 ENCODER 212 DSW 4 DIGITAL SW...

Page 165: ...B 82 4 MOVE BIT 187 MOVD 83 4 MOVE DIGIT 188 MPRF 61 4 GROUP 2 HIGH DENSITY I O REFRESH 311 MSG 46 2 MESSAGE 307 MTR 4 MATRIX INPUT 352 MUL 32 4 BCD MULTIPLY 235 MULL 56 4 DOUBLE BCD MULTIPLY 236 MVN 22 3 MOVE NOT 180 NEG 4 2 S COMPLEMENT 226 NEGL 4 DOUBLE 2 S COMPLEMENT 227 NOP 00 1 NO OPERATION 158 OR None 1 OR 149 OR LD None 1 OR LOAD 150 OR NOT None 1 OR NOT 149 ORW 35 4 LOGICAL OR 279 OUT Non...

Page 166: ...P 2 CHANGE RS 232C SETUP 337 SUB 31 4 BCD SUBTRACT 231 SUBL 55 4 DOUBLE BCD SUBTRACT 233 SUM 4 SUM CALCULATION 261 TCMP 85 4 TABLE COMPARE 199 TERM 48 4 TERMINAL MODE 309 TIM None 2 TIMER 159 TIMH 15 3 HIGH SPEED TIMER 164 TKY 4 TEN KEY INPUT 350 TRSM 45 1 TRACE MEMORY SAMPLE 306 TTIM 87 4 TOTALIZING TIMER 165 TXD 4 TRANSMIT 335 WDT 94 2 WATCHDOG TIMER REFRESH 310 WSFT 16 3 WORD SHIFT 178 XCHG 73 ...

Page 167: ...described in Section 4 Writing and Inputting the Program the status of the bits assigned to each instruction determines the execution conditions for all oth er instructions Each of these instructions and each bit address can be used as many times as required Each can be used in as many of these instructions as required The status of the bit operand B assigned to LD or LD NOT determines the first e...

Page 168: ...7 Inputting Modifying and Checking the Program In order to reduce the number of programming instructions required a basic un derstanding of logic block instructions is required For an introduction to logic blocks refer to 4 4 6 Logic Block Instructions Flags There are no flags affected by these instructions 5 9 Bit Control Instructions There are five instructions that can be used generally to cont...

Page 169: ... turn the designated bit ON for one cycle only Whenever executed DIFU 13 compares its current execution with the previous execution condition If the previous execution condition was OFF and the cur rent one is ON DIFU 13 will turn ON the designated bit If the previous execu tion condition was ON and the current execution condition is either ON or OFF DIFU 13 will either turn the designated bit OFF...

Page 170: ...sired execution condition goes ON 00000 CMP 20 HR 10 DM 0000 Diagram A 22500 CMP 20 HR 10 DM 0000 Diagram B DIFU 13 22500 00000 Address Instruction Operands 00000 LD 00000 00001 CMP 20 HR 10 DM 0000 Address Instruction Operands 00000 LD 00000 00001 DIFU 13 22500 00002 LD 22500 00003 CMP 20 HR 10 DM 0000 Although a differentiated form of MOV 21 is available the following diagram would be very compl...

Page 171: ...re input as follows SET Operand RESET Operand Precautions The status of operand bits for SET and RSET programmed between IL 02 and ILC 03 or JMP 04 and JME 05 will not change when the interlock or jump condition is met i e when IL 02 or JMP 04 is executed with an OFF execution condition Flags There are no flags affected by these instructions Examples The following examples demonstrate the differen...

Page 172: ... shown below S execution condition R execution condition Status of B KEEP 11 operates like the self maintaining bit described in 4 8 3 Self maintain ing Bits The following two diagrams would function identically though the one using KEEP 11 requires one less instruction to program and would maintain status even in an interlocked program section 00002 00003 00500 00002 00003 00500 S R KEEP 11 00500...

Page 173: ...es warning display S R KEEP 11 HR 0000 Address Instruction Operands 00000 LD 00002 00001 OR 00003 00002 OR 00004 00003 LD 00005 00004 KEEP 11 HR 0000 00005 LD HR 0000 00006 OUT 00500 KEEP 11 can also be combined with TIM to produce delays in turning bits ON and OFF Refer to 5 14 1 TIMER TIM for details 5 10 INTERLOCK and INTERLOCK CLEAR IL 02 and ILC 03 Ladder Symbol IL 02 Ladder Symbol ILC 03 Des...

Page 174: ... that existed before the interlock became effective i e before the interlock condition for IL 02 went OFF The ladder diagram and bit status changes for this are shown below The interlock is in effect while 00000 is OFF Notice that 01000 is not turned ON at the point labeled A even though 00001 has turned OFF and then back ON 00000 IL 02 DIFU 13 01000 ILC 03 00001 00000 00001 ON OFF ON OFF 01000 ON...

Page 175: ...through 99 may be used only once in JMP 04 and once in JME 05 i e each can be used to define one jump only Jump number 00 can be used as many times as desired Description JMP 04 is always used in conjunction with JME 05 to create jumps i e to skip from one point in a ladder diagram to another point JMP 04 defines the point from which the jump will be made JME 05 defines the destination of the jump...

Page 176: ...program check is performed Although this message also appears if JMP 04 00 and JME 05 00 are not used in pairs the program will execute prop erly as written Flags There are no flags affected by these instructions Examples Examples of jump programs are provided in 4 7 8 Jumps 5 12 END END 01 Ladder Symbol END 01 Description END 01 is required as the last instruction in any program If there are subr...

Page 177: ... is allowed This is done by designating the TC number used to define that timer or counter to access the memory location that holds the PV Note that TIM 000 is used to designate the TIMER instruction defined with TC number 000 to designate the Completion Flag for this timer and to designate the PV of this timer The meaning of the term in context should be clear i e the first is always an instructi...

Page 178: ...th an SV of 0000 The Completion Flag will turn ON even when the step containing TIM is reset The SV of the timers can be set in the range 0000 to 9999 BCD If the SV for a timer is set to 0000 or 0001 it will operate in the following way If the SV is set to 0000 when the timer input goes from OFF to ON the Completion Flag will turn ON If the SV is set to 0001 because the timer accuracy is 0 to 0 1 ...

Page 179: ...LD TIM 002 00005 OUT 00200 In this example 00200 will be turned ON 30 minutes after 00000 goes ON TIM can also be combined with CNT or CNT can be used to count SR area clock pulse bits to produce longer timers An example is provided in 5 14 4 COUNTER CNT TIM can be combined with KEEP 11 to delay turning a bit ON and OFF in refer ence to a desired execution condition KEEP 11 is described in 5 9 4 K...

Page 180: ... pos sible In this example 00204 would remain ON for 1 5 seconds after 00000 goes ON regardless of the time 00000 stays ON This is achieved by using 01000 as a self maintaining bit activated by 00000 and turning ON 00204 through it When TIM 001 comes ON i e when the SV of TIM 001 has expired 00204 will be turned OFF through TIM 001 i e TIM 001 will turn ON which as an inverse condition creates an ...

Page 181: ...5 Address Instruction Operands 00000 LD 00000 00001 AND TIM 002 00002 TIM 001 0010 00003 LD TIM 001 00004 TIM 002 0015 00005 LD TIM 001 00006 OUT 00205 A simpler but less flexible method of creating a flicker bit is to AND one of the SR area clock pulse bits with the execution condition that is to be ON when the flick er bit is operating Although this method does not use TIM it is included here fo...

Page 182: ...amples Except for the above and all aspects of operation are the same Precautions Timers in interlocked program sections are reset when the execution condition for IL 02 is OFF Power interruptions also reset timers If a timer that is not reset under these conditions is desired SR area clock pulse bits can be counted to produce timers using CNT Refer to 5 14 4 COUNTER CNT for details Program execut...

Page 183: ...rs in interlocked program sections are maintained when the execution condition for IL 02 is OFF Unlike timers and high speed timers totalizing timers in jumped program sections do not continue timing but maintain the PV Power interruptions will reset timers Totalizing timers will not restart after timing out unless the PV is changed to a value below the SV or the reset input is turned ON A delay o...

Page 184: ...ption CNT is used to count down from SV when the execution condition on the count pulse CP goes from OFF to ON i e the present value PV will be decrem ented by one whenever CNT is executed with an ON execution condition for CP and the execution condition was OFF for the last execution If the execution condition has not changed or has changed from ON to OFF the PV of CNT will not be changed The Com...

Page 185: ... Never program CNT between STEP 08 and SNXT 09 with an SV of 0000 The Completion Flag will turn ON even when the step containing CNT is reset Flags ER SV is not in BCD Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded In the following example the PV will be decremented whenever both 00000 and 00001 are ON provided that 00002 is OFF...

Page 186: ... for CNT 002 has been reached until the entire extended counter is reset via 00002 Because in this example the SV for CNT 001 is 100 and the SV for CNT 002 is 200 the Completion Flag for CNT 002 turns ON when 100 x 200 or 20 000 OFF to ON changes have been counted in 00001 This would result in 00203 being turned ON 00203 CP R CNT 001 0100 CP R CNT 002 0200 CNT 001 00002 CNT 002 00000 00001 00002 C...

Page 187: ...ollowing example CNT 001 counts the number of times the 1 second clock pulse bit 25502 goes from OFF to ON Here again 00000 is used to con trol the times when CNT is operating Because in this example the SV for CNT 001 is 700 the Completion Flag for CNT 002 turns ON when 1 second x 700 times or 11 minutes and 40 seconds have expired This would result in 00202 being turned ON CP R CNT 001 0700 0000...

Page 188: ...n Flag is turned ON until the PV is decremented again When incremented past the SV the PV is set to 0000 and the Completion Flag is turned ON until the PV is incremented again CNTR 12 is reset with a reset input R When R goes from OFF to ON the PV is reset to zero The PV will not be incremented or decremented while R is ON Counting will begin again when R goes OFF The PV for CNTR 12 will not be re...

Page 189: ...uted and 1 execution condition P is ON and was OFF the last execution and 2 R is OFF then execution condition I is shifted into the rightmost bit of a shift register defined between St and E i e if I is ON a 1 is shifted into the regis ter if I is OFF a 0 is shifted in When I is shifted into the register all bits previously in the register are shifted to the left and the leftmost bit of the regist...

Page 190: ...12800 Address Instruction Operands 00000 LD 00200 00001 AND 00201 00002 LD 00202 00003 LD 00203 00004 SFT 10 AR 00 AR 01 00005 LD 00004 00006 DIFU 13 12800 00007 LD 12800 00008 JMP 04 00 00009 LD 12800 00010 OUT AR 0100 00011 JME 05 00 When a bit that is part of a shift register is used in OUT or any other instruction that controls bit status a syntax error will be generated during the program che...

Page 191: ...sher Sensor 00002 I P SFT 10 HR 00 HR 01 R 00001 00000 00003 00500 HR 0003 00500 HR 0003 00002 Address Instruction Operands 00000 LD 00001 00001 LD 00000 00002 LD 00003 00003 SFT 10 HR 00 HR 01 00004 LD HR 0003 00005 OUT 00500 00006 LD 00002 00007 OUT NOT 00500 00008 OUT NOT HR 0003 5 15 2 REVERSIBLE SHIFT REGISTER SFTR 84 C Control word IR AR DM HR LR St Starting word IR SR AR DM HR LR Ladder Sym...

Page 192: ...SFTR 84 is executed with bit 14 OFF the shift register will remain unchanged If SFTR 84 is executed with an ON execution condition and the re set bit bit 15 is OFF the entire shift register and CY will be set to zero Flags ER St and E are not in the same data area or ST is greater than E Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exc...

Page 193: ... status of bit 15 EQ ON when the content of Wd is zero otherwise OFF N ON when a 1 is shifted into bit 15 of Wd 5 15 4 ARITHMETIC SHIFT RIGHT ASR 26 Wd Shift word IR SR AR DM HR LR Ladder Symbols Operand Data Areas ASR 26 Wd ASR 26 Wd Description When the execution condition is OFF ASR 25 is not executed When the execution condition is ON ASR 25 shifts a 0 into bit 15 of Wd shifts the bits of Wd o...

Page 194: ...n the content of Wd is zero otherwise OFF N ON when a 1 is shifted into bit 15 of Wd 5 15 6 ROTATE RIGHT ROR 28 Wd Rotate word IR SR AR DM HR LR Ladder Symbols Operand Data Areas ROR 28 Wd ROR 28 Wd Description When the execution condition is OFF ROR 28 is not executed When the execution condition is ON ROR 28 shifts all Wd bits one bit to the right shifting CY into bit 15 of Wd and shifting bit 0...

Page 195: ...across more than 50 words the shift operation might not be completed Flags ER The St and E words are in different areas or St is greater than E Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded 5 15 8 ONE DIGIT SHIFT RIGHT SRD 75 Ladder Symbols Operand Data Areas SRD 75 E St SRD 75 E St E End word IR SR AR DM HR LR St Starting word...

Page 196: ...ual to E Description When the execution condition is OFF WSFT 16 is not executed When the execution condition is ON WSFT 16 shifts data between St and E in word units Zeros are written into St and the content of E is lost F 0 C 2 3 4 5 2 1 0 2 9 E St 1 St 3 4 5 2 1 0 2 9 0 0 0 0 E St 1 St Lost 0000 Flags ER The St and E words are in different areas or St is greater than E Indirectly addressed DM w...

Page 197: ...n bit 14 ON to enable shift register operation according to bit 13 and OFF to disable the register Bit 15 is the Reset bit the register will be reset set to zero between St and E when ASFT 17 is executed with bit 15 ON Turn bit 15 OFF for normal operation Control word value Function 4000 Shifts upward towards higher addressed words 6000 Shifts downward towards lower addressed words 8000 Clears the...

Page 198: ...N MOV 21 copies the content of S to D Source word Destination word Bit status not changed Precautions TC numbers cannot be designated as D to change the PV of the timer or counter You can however easily change the PV of a timer or a counter by using BSET 71 Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when all z...

Page 199: ... Limitations St must be less than or equal to E and St and E must be in the same data area Description When the execution condition is OFF BSET 71 is not executed When the execution condition is ON BSET 71 copies the content of S to all words from St through E 2 S 3 4 5 2 St 3 4 5 2 St 1 3 4 5 2 St 2 3 4 5 2 E 3 4 5 BSET 71 can be used to change timer counter PV This cannot be done with MOV 21 or ...

Page 200: ... 00003 00007 OR 00004 00008 TIM 010 9999 5 16 4 BLOCK TRANSFER XFER 70 N Number of words BCD IR SR AR DM HR TC LR S Starting source word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas D Starting destination word IR SR AR DM HR TC LR XFER 70 N S D XFER 70 N S D Limitations Both S and D may be in the same data area but their respective block areas must not overlap S and S N must be in the sa...

Page 201: ...tion base word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas C Control word BCD IR SR AR DM HR TC LR DIST 80 S DBs C DIST 80 S DBs C Limitations C must be a BCD If C 6655 DBs must be in the same data area as DBs C If C 9000 DBs must be in the same data area as DBs C 9000 Description Depending on the value of C DIST 80 will operate as a data distribution instruc tion or stack instruction I...

Page 202: ...rd stack from HR 20 to HR 29 During the first cycle when IR 00001 is ON the data is written to DBs 1 HR 21 and the stack pointer is incremented by 1 In the second cycle the data is written to DBs 2 HR 22 and the stack pointer is incremented and so on 1 HR 20 0 0 0 F HR 21 0 0 F HR 22 HR 29 Stack pointer incremented 2 HR 20 0 0 0 F HR 21 0 0 F F HR 22 0 0 F HR 29 After one execution After two execu...

Page 203: ...Both stack operations use a stack beginning at SBs with a length specified in the rightmost 3 digits of C Precautions Stack operation will be unreliable if the specified stack length is different from the length specified in the last execution of DIST 80 or COLL 81 When the execution condition is OFF COLL 81 is not executed When the execution condition is ON COLL 81 copies the content of SBs C to ...

Page 204: ...ack pointer Stack area Output 1 2 3 4 LR 20 Output A B C D LR 20 When the execution condition is OFF COLL 81 is not executed When the execution condition is ON COLL 81 copies the data most recently recorded in the stack to D The stack pointer SBs is then decremented by 1 Specifies the stack length 000 to 999 A value of 8 indicates LIFO stack operation Digits of C 3 2 1 0 Data can be added to the s...

Page 205: ...1 IR 002 IR 003 Flags ER The content of C is not BCD or 6655 C 8000 When C 6655 DBs and DBs C are not in the same data area When C 8000 the beginning and end of the stack are not in the same data area or the value of the stack pointer exceeds the length of the stack Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when the t...

Page 206: ... 83 S Source word IR SR AR DM HR TC LR Di Digit designator BCD IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas D Destination word IR SR AR DM HR TC LR MOVD 83 S Di D MOVD 83 S Di D Limitations The rightmost three digits of Di must each be between 0 and 3 Description When the execution condition is OFF MOVD 83 is not executed When the execution condition is ON MOVD 83 copies the content of t...

Page 207: ... Ladder Symbols Operand Data Areas D First destination word IR SR AR DM HR LR XFRB 62 C S D XFRB 62 C S D Limitations The specified source bits must be in the same data area The specified destination bits must be in the same data area Description When the execution condition is OFF XFRB 62 is not executed When the execution condition is ON XFRB 62 copies the specified source bits to the spe cified...

Page 208: ...nt of DM word is not BCD or the DM area boundary has been exceeded 5 16 11 EM BLOCK TRANSFER XFR2 N Number of words BCD IR SR AR DM HR TC LR S Starting source word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas D Starting destination word IR SR AR DM HR TC LR XFR2 N S D XFR2 N S D Limitations S and S N must be in the same data area as must D and D N N must be BCD Description When the execu...

Page 209: ... the execution condition is ON BXF2 copies the contents of S S 1 S N to D D 1 D N If a constant is used for S or D the constant specifies an address in the source or destination EM bank specified in C Control Words C contains the source and destination bank numbers if data is being transferred to or from EM The bank numbers are ignored unless a constant is used for S or D C 1 contains the number o...

Page 210: ... DM HR TC LR MCMP 19 TB1 TB2 R MCMP 19 TB1 TB2 R Limitations TB1 and TB1 15 must be in the same data area as must TB2 and TB2 15 Description When the execution condition is OFF MCMP 19 is not executed When the execution condition is ON MCMP 19 compares the content of TB1 to TB2 TB1 1 to TB2 1 TB1 2 to TB2 2 and TB1 15 to TB2 15 If the first pair is equal the first bit in R is turned OFF etc i e if...

Page 211: ... MCMP 19 100 DM 0200 DM 0300 00000 TB1 IR 100 TB2 DM 0200 R DM 0300 Address Instruction Operands 00000 LD 00000 00001 MCMP 19 100 DM 0200 DM 0300 5 17 2 COMPARE CMP 20 Cp1 First compare word IR SR AR DM HR TC LR Cp2 Second compare word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas CMP 20 Cp1 Cp2 Limitations When comparing a value to the PV of a timer or counter the value must be in BCD De...

Page 212: ... changed only when CMP 20 is executed CMP 20 010 HR 09 00000 25505 00200 25507 00202 TR 0 25506 00201 Greater Than Equal Less Than Address Instruction Operands Address Instruction Operands 00000 LD 00000 00001 OUT TR 0 00002 CMP 20 010 HR 09 00003 LD TR 0 00004 AND 25505 00005 OUT 00200 00006 LD TR 0 00007 AND 25506 00008 OUT 00201 00009 LD TR 0 00010 AND 25507 00011 OUT 00202 The following exampl...

Page 213: ...20 TIM 010 4000 00201 00204 00202 00000 00200 25507 00200 25507 00201 25507 TIM 010 500 0 s Output at 100 s Output at 200 s Output at 300 s Output at 500 s TIM 010 5000 Address Instruction Operands Address Instruction Operands 00000 LD 00000 00001 TIM 010 5000 00002 CMP 20 TIM 010 4000 00003 AND 25507 00004 OUT 00200 00005 LD 00200 00006 CMP 20 TIM 010 3000 00007 AND 25507 00008 OUT 00201 00009 LD...

Page 214: ...ers Cp 1 Cp1 and Cp2 1 Cp2 The two 8 digit numbers are then compared and the result is output to the GR EQ and LE flags in the SR area Precautions Placing other instructions between CMPL 60 and the operation which ac cesses the EQ LE and GR flags may change the status of these flags Be sure to access them before the desired status is changed CMPL 60 cannot be used to compare signed binary data Use...

Page 215: ...010 HR 09 00000 25505 00200 25507 00202 TR 0 25506 00201 Greater Than Equal Less Than Address Instruction Operands Address Instruction Operands 00000 LD 00000 00001 OUT TR 0 00002 CMPL 60 HR 09 010 00003 AND 25505 00004 OUT 00200 00005 LD TR 0 00006 AND 25506 00007 OUT 00201 00008 LD TR 0 00009 AND 25507 00010 OUT 00202 5 17 4 BLOCK COMPARE BCMP 68 CD Compare data IR SR AR DM HR TC LR CB First com...

Page 216: ... CB 3 Bit 01 CB 4 CD CB 5 Bit 02 CB 6 CD CB 7 Bit 03 CB 8 CD CB 9 Bit 04 CB 10 CD CB 11 Bit 05 CB 12 CD CB 13 Bit 06 CB 14 CD CB 15 Bit 07 CB 16 CD CB 17 Bit 08 CB 18 CD CB 19 Bit 09 CB 20 CD CB 21 Bit 10 CB 22 CD CB 23 Bit 11 CB 24 CD CB 25 Bit 12 CB 26 CD CB 27 Bit 13 CB 28 CD CB 29 Bit 14 CB 30 CD CB 31 Bit 15 Normally the first word in the range is less than the second but if the first word in...

Page 217: ...erands 00000 LD 00000 00001 BCMP 68 001 HR 10 HR 05 5 17 5 TABLE COMPARE TCMP 85 CD Compare data IR SR AR DM HR TC LR TB First comparison table word IR AR DM HR TC LR Ladder Symbols Operand Data Areas R Result word IR SR AR DM HR TC LR TCMP 85 CD TB R TCMP 85 CD TB R Limitations TB and TB 15 must be in the same data area Description When the execution condition is OFF TCMP 85 is not executed When ...

Page 218: ...ith the given ranges Address Instruction Operands 00000 LD 00000 00001 TCMP 85 001 HR 10 HR 05 5 17 6 AREA RANGE COMPARE ZCP 88 CD Compare data IR SR AR DM HR TC LR LL Lower limit of range IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas UL Upper limit of range IR SR AR DM HR TC LR ZCP 88 CD LL UL Limitations LL must be less than or equal to UL Description When the execution condition is OFF...

Page 219: ... ZCP 88 0010 IR 100 00000 25505 00200 25507 00202 TR 0 25506 00201 Greater Than above range Equal within range Less Than below range Address Instruction Operands Address Instruction Operands 00000 LD 00000 00001 OUT TR 0 00002 ZCP 88 IR 100 0010 AB1F 00003 AND 25505 00004 OUT 00200 00005 LD TR 0 00006 AND 25506 00007 OUT 00201 00008 LD TR 0 00009 AND 25507 00010 OUT 00202 AB1F 5 17 7 DOUBLE AREA R...

Page 220: ... EQ ON if LL 1 LL CD CD 1 UL 1 UL LE ON if CD CD 1 LL 1 LL GR ON if CD CD 1 UL 1 UL Example Refer to 5 17 6 AREA RANGE COMPARE ZCP 88 for an example The only difference between ZCP 88 and ZCPL is the number of digits in the com parison data 5 17 8 SIGNED BINARY COMPARE CPS Cp1 First compare word IR SR AR DM HR TC LR Cp2 Second compare word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas Thi...

Page 221: ...CPSL compares the 32 bit 8 digit signed binary contents in Cp1 1 Cp1 and Cp2 1 Cp2 and outputs the result to the GR EQ and LE flags in the SR area Note 1 Refer to page 27 for details on 32 bit signed binary data 2 Refer to 5 17 2 Compare CMP 20 for details on saving comparison re sults Precautions Placing other instructions between CPSL and the operation which accesses the EQ LE and GR flags may c...

Page 222: ...IN 23 S R Description When the execution condition is OFF BIN 23 is not executed When the execu tion condition is ON BIN 23 converts the BCD content of S into the numerically equivalent binary bits and outputs the binary value to R Only the content of R is changed the content of S is left unchanged S R BCD Binary BIN 23 can be used to convert BCD to binary so that displays on the Program ming Cons...

Page 223: ... been exceeded EQ ON when the result is zero N 25402 is always OFF 5 18 3 BINARY TO BCD BCD 24 S Source word binary IR SR AR DM HR LR R Result word IR SR AR DM HR LR Ladder Symbols Operand Data Areas BCD 24 S R BCD 24 S R Description BCD 24 converts the binary hexadecimal content of S into the numerically equivalent BCD bits and outputs the BCD bits to R Only the content of R is changed the conten...

Page 224: ...ols Operand Data Areas BCDL 59 S R BCDL 59 S R Limitations If the content of S exceeds 05F5E0FF the converted result would exceed 99999999 and BCDL 59 will not be executed When the instruction is not executed the content of R and R 1 remain unchanged S and S 1 must be in the same data area as must R and R 1 Description BCDL 59 converts the 32 bit binary content of S and S 1 into eight digits of BC...

Page 225: ...thus 9 999 hours 59 minutes and 59 seconds The result is output to R and R 1 The maximum obtainable value is 35 999 999 seconds Flags ER S and S 1 or R and R 1 are not in the same data area S and or S 1 do not contain BCD Number of seconds and or minutes exceeds 59 Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ Turns ON when ...

Page 226: ...nutes is placed in bits 08 through 15 of R The hours is placed in R 1 The maximum will be 9 999 hours 59 minutes and 59 seconds Flags ER S and S 1 or R and R 1 are not in the same data area S and or S 1 do not contain BCD or exceed 36 000 000 seconds Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ Turns ON when the result is z...

Page 227: ...p to 4 result words The specified bit in each result word is turned on and the other 15 bits in each word are turned off When the execution condition is OFF MLPX 76 is not executed When the execution condition is ON MLPX 76 converts up to four four bit hexadecimal digits from S into decimal values from 0 to 15 each of which is used to indicate a bit position The bit whose number corresponds to eac...

Page 228: ...converted must be in the same data area as R e g if two digits are converted the last word address in a data area cannot be designated if three digits are con verted the last two words in a data area cannot be designated 8 bit to 256 bit Decoder MLPX 76 operates as an 8 bit to 256 bit decoder when the leftmost digit of C is set to 1 The hexadecimal value of the two bytes in S are used to specify a...

Page 229: ... of a one byte decode operation from the rightmost byte of S C would be 1000 in this case R Bit 15 Bit 00 0 0 0 0 0 0 R 1 Bit 15 Bit 00 0 0 0 0 0 0 R 2 Bit 15 Bit 00 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 R 15 Bit 15 Bit 00 0 0 0 0 0 0 Source word 2 Bit 2C i e bit number 12 in the third word turned ON C Flags ER Undefined control word The result words are not all in the same data area Indirectly addresse...

Page 230: ...1209 0 DM 10 1 22 HR 1010 0 HR 1110 0 HR 1210 0 DM 11 0 23 HR 1011 0 HR 1111 0 HR 1211 0 DM 12 0 20 HR 1012 0 HR 1112 0 HR 1212 0 DM 13 0 21 3 HR 1013 0 HR 1113 0 HR 1213 0 DM 14 0 22 HR 1014 0 HR 1114 0 HR 1214 0 DM 15 0 23 HR 1015 1 HR 1115 0 HR 1215 0 15 6 0 Not Converted 5 18 8 16 TO 4 256 TO 8 ENCODER DMPX 77 S First source word IR SR AR DM HR TC LR R Result word IR SR AR DM HR LR Ladder Symb...

Page 231: ...ot used Set to 0 A value of 0 specifies 16 bit to 4 bit encoding Digit number 3 2 1 0 Some example C values and the word to digit conversions that they produce are shown below 0 1 2 3 R C 0011 S S 1 0 1 2 3 S S 1 S 2 S 3 C 0030 R S S 1 S 2 S 3 0 1 2 3 C 0032 R C 0013 0 1 2 3 S S 1 R The following is an example of a one digit encode operation to digit number 1 of R i e here C would be 0001 Result w...

Page 232: ...f bytes to be encoded 0 or 1 0 1 byte 1 2 bytes Not used Set to 0 A value of 1 specifies 256 bit to 8 bit encoding Digit number 3 2 1 0 Three possible C values and the conversions that they produce are shown be low In R 0 indicates the rightmost byte and 1 indicates the leftmost byte 0 1 R C 1000 C 1010 C 1011 S to S 15 S 16 to S 31 0 1 R S to S 15 S 16 to S 31 0 1 R S to S 15 S 16 to S 31 The fol...

Page 233: ...R 20 DMPX 77 Address Instruction Operands 00000 LD 00000 00001 DMPX 77 010 HR 20 0010 00002 DMPX 77 LR 10 HR 20 0012 5 18 9 7 SEGMENT DECODER SDEC 78 S Source word binary IR SR AR DM HR TC LR Di Digit designator IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas D First destination word IR SR AR DM HR LR SDEC 78 S Di D SDEC 78 S Di D Limitations Di must be within the values given below All des...

Page 234: ...ng of S Digit Designator The digits of Di are set as shown below Specifies the first digit to receive converted data 0 to 3 Number of digits to be converted 0 to 3 0 1 digit 1 2 digits 2 3 digits 3 4 digits First half of D to be used 0 Rightmost 8 bits 1st half 1 Leftmost 8 bits 2nd half Not used set to 0 Digit number 3 2 1 0 Some example Di values and the 4 bit binary to 7 segment display convers...

Page 235: ...bit 08 Bit 07 or bit 15 8 Original data Converted code segments Display Digit Bits g f e d c b a 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 1 0 0 0 0 0 1 1 0 2 0 0 1 0 0 1 0 1 1 0 1 1 3 0 0 1 1 0 1 0 0 1 1 1 1 4 0 1 0 0 0 1 1 0 0 1 1 0 5 0 1 0 1 0 1 1 0 1 1 0 1 6 0 1 1 0 0 1 1 1 1 1 0 1 7 0 1 1 1 0 0 1 0 0 1 1 1 8 1 0 0 0 0 1 1 1 1 1 1 1 9 1 0 0 1 0 1 1 0 1 1 1 1 A 1 0 1 0 0 1 1 1 0 1 1 1 B 1 0 1 1 0 1 1 1...

Page 236: ...digit The first digit the number of digits to be converted and the half of D to re ceive the first ASCII code rightmost or leftmost 8 bits are designated in Di If multiple digits are designated they will be placed in order starting from the des ignated half of D each requiring two digits If more digits are designated than remain in S counting from the designated first digit further digits will be ...

Page 237: ...usted for even parity ASCII 31 00110001 will be B1 10110001 parity bit turned ON to create an even num ber of ON bits ASCII 36 00110110 will be 36 00110110 parity bit turned OFF because the number of ON bits is already even The status of the parity bit does not affect the meaning of the ASCII code When odd parity is designated the leftmost bit of each ASCII character will be adjusted so that there...

Page 238: ...tmost or leftmost 8 bits the number of bytes to be converted and the digit of D to receive the first hexadecimal value are designated in Di If multiple bytes are designated they will be converted in order starting from the designated half of S and continuing to S 1 and S 2 if necessary If more digits are designated than remain in D counting from the designated first digit further digits will be us...

Page 239: ...0 1 1 3 0 0 1 1 34 0 1 1 0 1 0 0 4 0 1 0 0 35 0 1 1 0 1 0 1 5 0 1 0 1 36 0 1 1 0 1 1 0 6 0 1 1 0 37 0 1 1 0 1 1 1 7 0 1 1 1 38 0 1 1 1 0 0 0 8 1 0 0 0 39 0 1 1 1 0 0 1 9 1 0 0 1 41 1 0 1 0 0 0 1 A 1 0 1 0 42 1 0 1 0 0 1 0 B 1 0 1 1 43 1 0 1 0 0 1 1 C 1 1 0 0 44 1 0 1 0 1 0 0 D 1 1 0 1 45 1 0 1 0 1 0 1 E 1 1 1 0 46 1 0 1 0 1 1 0 F 1 1 1 1 Note The leftmost bit of each ASCII code is adjusted for par...

Page 240: ... SCL S P1 R Limitations P1 and P1 2 must be BCD P1 through P1 3 must be in the same data area P1 1 and P1 3 must not be set to the same value Description SCL is used to linearly convert a 4 digit hexadecimal value to a 4 digit BCD value Unlike BCD 24 which converts a 4 digit hexadecimal value to its 4 digit BCD equivalent Shex SBCD SCL can convert the hexadecimal value ac cording to a specified li...

Page 241: ...hen using the following formula Results BY BY AY BX AX X BX S Flags ER The value in P1 1 equals that in P1 3 Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded P1 and P1 3 are not in the same data area or other setting error EQ ON when the result R is 0000 Example When 00000 is turned ON in the following example the BCD source data ...

Page 242: ... 0 0 0 0 1 Bit 15 Bit 00 S C 1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1 S 1 0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1 S 2 0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0 S 15 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 S 3 0 1 1 D 1 Bit 15 Bit 00 Flags ER The column bit designator C is not BCD or it is specifying a non existent bit i e bit specification must be between 00 and 15 Indirectly addressed DM word is non existent Content of DM word is ...

Page 243: ...5 Bit 00 D C 1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1 D 1 0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1 D 2 0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0 D 15 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 D 3 0 1 1 S 1 Bit 15 Bit 00 Flags ER The bit designator C is not BCD or it is specifying a non existent bit i e bit specification must be between 00 and 15 Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area ...

Page 244: ...8000 the content of R will also be 8000 after execution and UF SR 25405 will be turned on Note Refer to page 27 for details on 16 bit signed binary data Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when the content of S is 0000 otherwise OFF UF ON when the content of S is 8000 otherwise OFF N ON when bit 15 of R...

Page 245: ...turned on If the content of S is 8000 0000 the content of R will also be 8000 0000 after execution and UF SR 25405 will be turned on Note Refer to page 27 for details on 32 bit signed binary data Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when the content of S 1 S is 0000 0000 otherwise OFF UF ON when the cont...

Page 246: ...ulation and to use the result placed in CY if required before it is changed by execution of any other instruction 5 19 1 INCREMENT INC 38 Wd Increment word BCD IR SR AR DM HR LR Ladder Symbols Operand Data Areas INC 38 Wd INC 38 Wd Description When the execution condition is OFF INC 38 is not executed When the execu tion condition is ON INC 38 increments Wd without affecting Carry CY Flags ER Wd i...

Page 247: ...ycle Note Refer to Appendix C Error and Arithmetic Flag Operation for a table listing the instructions that affect CY 5 19 5 BCD ADD ADD 30 Au Augend word BCD IR SR AR DM HR TC LR Ad Addend word BCD IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R Result word IR SR AR DM HR LR ADD 30 Au Ad R ADD 30 Au Ad R Description When the execution condition is OFF ADD 30 is not executed When the exec...

Page 248: ...AND NOT 25504 00008 MOV 21 0000 DM 0101 Although two ADD 30 can be used together to perform eight digit BCD addition ADDL 54 is designed specifically for this purpose 5 19 6 DOUBLE BCD ADD ADDL 54 Au First augend word BCD IR SR AR DM HR TC LR Ad First addend word BCD IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R First result word IR SR AR DM HR LR ADDL 54 Au Ad R ADDL 54 Au Ad R Limitat...

Page 249: ...HR 12 ADB 50 0000 0000 HR 13 Address Instruction Operands 00000 LD 00000 00001 CLC 41 00002 ADDL 54 LR 20 DM 0010 HR 10 00003 ADD 30 LR 22 DM 0012 HR 12 00004 ADB 50 0000 0000 HR 13 5 19 7 BCD SUBTRACT SUB 31 Mi Minuend word BCD IR SR AR DM HR TC LR Su Subtrahend word BCD IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R Result word IR SR AR DM HR LR SUB 31 Mi Su R SUB 31 Mi Su R Descriptio...

Page 250: ...ed back in HR 20 and HR 2100 is turned ON to indicate a negative result If CY is not set by executing SUB 31 the result is positive the second subtrac tion is not performed and HR 2100 is not turned ON HR 2100 is programmed as a self maintaining bit so that a change in the status of CY will not turn it OFF when the program is recycled In this example differentiated forms of SUB 31 are used so that...

Page 251: ...First result word IR SR AR DM HR LR SUBL 55 Mi Su R SUBL 55 Mi Su R Limitations Each of the following pairs must be in the same data area Mi and Mi 1 Su and Su 1 and R and R 1 Description When the execution condition is OFF SUBL 55 is not executed When the execution condition is ON SUBL 55 subtracts CY and the 8 digit contents of Su and Su 1 from the 8 digit value in Mi and Mi 1 and places the res...

Page 252: ...result can be subtracted from 0 inputting an 8 digit constant is not possible Example CLC 41 SUBL 55 HR 20 120 DM 0100 CLC 41 SUBL 55 DM 0000 DM 0100 DM 0100 TR 0 25504 HR 2100 00003 25504 HR 2100 First subtraction Second subtraction Turned ON to indicate negative result BSET 71 0000 DM 0000 DM 0001 00000 LD 00003 00001 OUT TR 0 00002 CLC 41 00003 SUBL 55 HR 20 120 DM 0100 00004 AND 25504 00005 BS...

Page 253: ... result In R and R 1 Md Mr R 1 R X Example When IR 00000 is ON with the following program the contents of IR 013 and DM 0005 are multiplied and the result is placed in HR 07 and HR 08 Example data and calculations are shown below the program MUL 32 013 DM 0005 HR 07 00000 R 1 HR 08 R HR 07 0 0 0 8 3 9 0 0 Md IR 013 3 3 5 6 Mr DM 0005 0 0 2 5 X Address Instruction Operands 00000 LD 00000 00001 MUL ...

Page 254: ... to R 3 Md 1 Md Mr 1 Mr R 1 R R 3 R 2 x Flags ER Md Md 1 Mr or Mr 1 is not BCD Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when the result is 0 5 19 11 BCD DIVIDE DIV 33 Dd Dividend word BCD IR SR AR DM HR TC LR Ladder Symbol Dr Divisor word BCD IR SR AR DM HR TC LR Operand Data Areas DIV 33 Dd Dr R R First result word ...

Page 255: ...word BCD IR SR AR DM HR TC LR Dr First divisor word BCD IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R First result word IR SR AR DM HR LR DIVL 57 Dd Dr R DIVL 57 Dd Dr R Limitations Dd and Dd 1 must be in the same data area as must Dr and Dr 1 R through R 3 must be in the same data area Description When the execution condition is OFF DIVL 57 is not executed When the execution condition ...

Page 256: ...and places the result in R and R 1 R 1 R Quotient Dd 1 Dd Dr 1 Dr To represent the floating point values the rightmost seven digits are used for the mantissa and the leftmost digit is used for the exponent as shown below The mantissa is expressed as a value less than one i e to seven decimal places 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 First word exponent 0 to 7 sign of exponent 0 1 1 0 ...

Page 257: ... originally without decimal points the exponent will be 4 e g 3452 would equal 0 3452 x 104 All of the moves are to place the proper data into con secutive words for the final division including the exponent and zeros Data movements for Dd and Dd 1 are shown at the right below Movements for Dr and Dr 1 are basically the same The original values to be divided are in DM 0000 and DM 0001 The final di...

Page 258: ...0 DM 0000 3 4 5 2 HR 01 HR 00 4 3 4 5 2 0 0 0 HR 01 HR 00 4 3 4 5 2 0 0 0 HR 03 HR 02 4 0 0 7 9 0 0 0 DM 0003 DM 0002 2 4 3 6 9 6 2 0 0 4369620 x 102 00000 LD 00000 00001 MOV 21 0000 HR 00 00002 MOV 21 0000 HR 02 00003 MOV 21 4000 HR 01 00004 MOV 21 4000 HR 03 00005 MOVD 83 DM 0000 0021 HR 01 00006 MOVD 83 DM 0000 0300 HR 00 00007 MOVD 83 DM 0001 0021 HR 03 00008 MOVD 83 DM 0001 0300 HR 02 00009 F...

Page 259: ...e DM area boundary has been exceeded EQ ON when the result is 0 Example The following example shows how to take the square root of a four digit number and then round the result First the words to be used are cleared to all zeros and then the value whose square root is to be taken is moved to Sq 1 The result which has twice the num ber of digits required for the answer because the number of digits ...

Page 260: ... 0 0 7 7 5 6 0 0 BSET 71 0000 DM 0100 DM 0101 MOV 21 0000 DM 0103 0000 60170000 77 56932 DM 0103 IR 011 0 0 0 0 0 0 0 0 0000 0000 25505 5600 4900 IR 011 0 0 7 8 Address Instruction Operands Address Instruction Operands 00000 LD 00000 00001 BSET 71 0000 DM 0100 DM 0101 00002 MOV 21 010 DM 0101 00003 ROOT 72 DM 0100 DM 0102 00004 MOV 21 0000 011 00005 MOV 21 0000 DM 0103 00006 MOVD 83 DM 0102 0012 0...

Page 261: ...inary data Refer to page 27 for details on signed binary data 5 20 1 BINARY ADD ADB 50 Au Augend word binary IR SR AR DM HR TC LR Ad Addend word binary IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R Result word IR SR AR DM HR LR ADB 50 Au Ad R ADB 50 Au Ad R Description When the execution condition is OFF ADB 50 is not executed When the execution condition is ON ADB 50 adds the contents ...

Page 262: ...R 010 A 6 E 2 Ad DM 0100 8 0 C 5 Note The UF and OF flags would also be turned ON during this addition but they can be ignored since they are relevant only in the addition of signed binary data In the following example ADB 50 is used to add two 16 bit signed binary val ues The 2 s complement is used to express negative values The effective range for 16 bit signed binary values is 32 768 8000 to 32...

Page 263: ...racts the contents of Su and CY from Mi and places the result in R If the result is negative CY is set and the 2 s comple ment of the actual result is placed in R Mi Su CY CY R SBB 51 can also be used to subtract signed binary data The overflow and un derflow flags SR 25404 and SR 25405 indicate whether the result has exceed ed the lower or upper limits of the 16 bit signed binary data range Refer...

Page 264: ...008 MOV 21 0001 HR 22 00009 NEG HR 21 HR 21 NEG HR21 HR 21 In the case below the content of LR 20 7A03 and CY are subtracted from IR 001 F8C5 The result is stored in HR 21 and the content of HR 22 0000 indicates that the result is positive If the result had been negative CY would have been set 0001 would have been placed in HR 22 and the result would have been converted to its 2 s com pliment Mi I...

Page 265: ...16 bit signed binary data range In other words the result is a positive value that exceeds 32 767 7FFF not a negative number expressed as signed binary data Mi LR 20 7 5 4 4 Su DM 0010 C 4 7 A R DM 0020 B 0 C A In the case shown below 30 000 3 000 33 000 8AD0 0BB8 7F18 The UF flag would be turned ON to indicate that this result is below the lower limit of 16 bit signed binary data range In other w...

Page 266: ...ly signed binary data Use MBS instead Refer to 5 20 7 SIGNED BINARY MULTIPLY MBS for details Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when the result is 0 N ON when bit 15 of R 1 is set to 1 5 20 4 BINARY DIVIDE DVB 53 Dd Dividend word binary IR SR AR DM HR TC LR Dr Divisor word binary IR SR AR DM HR TC LR L...

Page 267: ...R 1 HR 06 0 0 0 2 Remainder 2 Quotient 1447 5 20 5 DOUBLE BINARY ADD ADBL Au First augend word binary IR SR AR DM HR LR Ad First addend word binary IR SR AR DM HR LR Ladder Symbols Operand Data Areas R First result word IR SR AR DM HR LR ADBL Au Ad R ADBL Au Ad R Limitations Au and Au 1 must be in the same data area as must Ad and Ad 1 and R and R 1 Description When the execution condition is OFF ...

Page 268: ...LD 00000 00001 CLC 41 00002 ADBL 000 DM 0020 LR 21 14020187 00A3F8C5 14A5FA4C Au 1 001 Au 000 Ad 1 DM 0021 Ad DM 0020 1 4 0 2 0 1 8 7 0 0 A 3 F 8 C 5 0 R 1 LR 22 R LR 21 F A 4 C 1 4 A 5 0 CY Cleared with CLC 41 CY No carry Note The status of the UF and OF flags can be ignored since they are relevant only in the addition of signed binary data In the following example ADBL is used to add two 32 bit ...

Page 269: ...BL Mi Su R Limitations Mi and Mi 1 must be in the same data area as must Su and Su 1 and R and R 1 Description When the execution condition is OFF SBBL is not executed When the execution condition is ON SBBL subtracts CY and the eight digit value in Su and Su 1 from the eight digit value in Mi and Mi 1 and places the result in R and R 1 If the result is negative CY is set and the 2 s complement of...

Page 270: ... LR 21 14020187 00A3F8C5 14A5FA4C Au 1 002 Au 001 Ad 1 DM 0021 Ad DM 0020 1 4 0 2 0 1 8 7 0 0 A 3 F 8 C 5 0 R 1 LR 22 R LR 21 0 8 C 2 1 3 5 E 0 CY Cleared with CLC 41 CY No carry Note The status of the UF and OF flags can be ignored since they are relevant only in the subtraction of signed binary data In the following example SBBL is used to subtract one 32 bit signed binary value from another and...

Page 271: ...r Multiplier word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R First result word IR SR AR DM HR LR MBS Md Mr R MBS Md Mr R Limitations R and R 1 must be in the same data area Description MBS multiplies the signed binary content of two words and outputs the 8 digit signed binary result to R 1 and R The rightmost four digits of the result are placed in R and the leftmost four digits are ...

Page 272: ...Operand Data Areas R First result word IR SR AR DM HR LR MBSL Md Mr R MBSL Md Mr R Limitations Md and Md 1 must be in the same data area as must Mr and Mr 1 and R through R 3 Description MBSL multiplies the 32 bit 8 digit signed binary data in Md 1 and Md with the 32 bit signed binary data in Mr 1 and Mr and outputs the 16 digit signed binary result to R 3 through R Refer to page 27 for details on...

Page 273: ... HR TC LR Dr Divisor word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R First result word IR SR AR DM HR LR DBS Dd Dr R DBS Dd Dr R Limitations R and R 1 must be in the same data area Description DBS divides the signed binary content of Dd by the signed binary content of Dr and outputs the 8 digit signed binary result to R 1 and R The quotient is placed in R and the remainder is placed ...

Page 274: ...SR AR DM HR LR DBSL Dd Dr R DBSL Dd Dr R Limitations Dd and Dd 1 must be in the same data area as must Dr and Dr 1 and R through R 3 Description DBS divides the 32 bit 8 digit signed binary data in Dd 1 and Dd by the 32 bit signed binary data in Dr 1 and Dr and outputs the 16 digit signed binary result to R 3 through R The quotient is placed in R 1 and R and the remainder is placed in R 3 and R 2 ...

Page 275: ...in C must be BCD between 001 to 999 R1 and R1 N 1 must be in the same data area Description When the execution condition is OFF MAX is not executed When the execution condition is ON MAX searches the range of memory from R1 to R1 N 1 for the address that contains the maximum value and outputs the maxi mum value to the destination word D If bit 14 of C is ON MAX identifies the address of the word c...

Page 276: ...The number of words specified in C is not BCD 000 to 999 R1 and R1 N 1 are not in the same data area EQ ON when the maximum value is 0000 N ON when bit 15 of D is set to 1 5 21 2 FIND MINIMUM MIN R1 First word in range IR SR AR DM HR TC LR C Control data IR SR AR DM HR LR Ladder Symbols Operand Data Areas MIN C R1 D D Destination word IR SR AR DM HR LR MIN C R1 D Limitations N in C must be BCD bet...

Page 277: ... to zero Output address to D 1 1 ON Yes 0 OFF No C Caution If bit 14 of C is ON values above 8000 are treated as negative numbers so the results will differ depending on the specified data type Be sure that the correct data type is specified Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded The number of words specified in...

Page 278: ...D to D N 1 D Average value after N or more cycles D 1 Previous value pointer and cycle indicator D 2 Previous value 1 D 3 Previous value 2 D N 1 Previous value N The function of bits in D 1 are shown in the following diagram and explained in more detail below 15 14 08 07 00 Previous value pointer 2 digit hexadecimal from 0 to N 1 D 1 Not used Set to zero Cycle indicator 0 OFF cycles since executio...

Page 279: ...00003 CLC 41 00004 ADB 50 040 0001 040 AVG 0003 040 DM 1000 CLC 41 ADB 50 0001 040 040 1st cycle 2nd cycle 3rd cycle 4th cycle DM 1000 0000 0001 0001 0002 Average DM 1001 0001 0002 8000 8001 Pointer DM 1002 0000 0000 0000 0003 DM 1003 0001 0001 0001 3 previous values of IR 40 DM 1004 0002 0002 1st cycle 2nd cycle 3rd cycle 4th cycle IR 40 0000 0001 0002 0003 5 21 4 SUM SUM C Control data IR SR AR ...

Page 280: ...s or the number of bytes depending the items being summed Addition Units Words will be added if bit 13 is OFF and bytes will be added if bit 13 is ON If bytes are specified the range can begin with the leftmost or rightmost byte of R1 The leftmost byte of R1 will not be added if bit 12 is ON MSB LSB R1 1 2 R1 1 3 4 R1 2 5 6 R1 3 7 8 The bytes will be added in this order when bit 12 is OFF 1 2 3 4 ...

Page 281: ...e BCD from 0000 to 0900 0 90 Description When the execution condition is OFF APR 69 is not executed When the execution condition is ON the operation of APR 69 depends on the control word C If C is 0000 or 0001 APR 69 computes sin or cos The BCD value of S specifies in tenths of degrees If C is an address APR 69 computes f x of the function entered in advance be ginning at word C The function is a ...

Page 282: ...00 10 1 10 1 10 2 10 3 10 4 0 3 0 0 8 6 6 0 APR 69 0001 DM 0010 DM 0110 00000 Enter input data not exceeding 0900 in BCD Result data has four significant digits fifth and higher digits are ignored The result for cos 0 will be 0 9999 not 1 Address Instruction Operands 00000 LD 00000 00001 APR 69 0001 DM 0010 DM 0110 Linear Approximation APR 69 linear approximation is specified when C is a memory ad...

Page 283: ...lowing diagram X0 Xm X Y Xm X0 X Y The following example demonstrates the construction of a linear approximation with 12 line segments The block of data is continuous as it must be from DM 0000 to DM 0026 C to C 2 12 2 The input data is taken from IR 010 and the result is output to IR 011 DM 0000 C00B DM 0001 05F0 X12 DM 0002 0000 Y0 DM 0003 0005 X1 DM 0004 0F00 Y1 DM 0005 001A X2 DM 0006 0402 Y2 ...

Page 284: ...ntrol according to the designated parameters It takes the specified input range of binary data from the contents of input word S and carries out the PID operation according to the parameters that are set The re sults are then stored as the operation output amount in output word D PID parameter words range from C through C 32 The PID parameters are con figured as shown below Word 15 to 12 11 to 8 7...

Page 285: ...per instruction Sampling period t 0 01 to 102 3 s See note PID constants Proportional band P 0 1 to 999 9 Integral constant Tik 1 to 8191 9999 No integral operation for sampling period multiple or 9999 Derivative constant Tdk 0 to 8191 No derivative operation for sampling period multiple Set value SV 0 to 65 535 Valid up to the maximum value of the input range Measured value PV 0 to 65 535 Valid u...

Page 286: ...in units of 0 01 s PID forward reverse designation This is the parameter that determines the direction of the proportional operation 0 Reverse operation 1 Forward operation 1 digit BCD 2 PID parameter α This is the input filter coefficient Normally use 0 65 i e a setting of 000 The filter efficiency decreases as the coefficient approaches 0 000 α 0 65 100 to 199 Rightmost two digits are α i e 0 00...

Page 287: ...s slowed the target response worsens Overshoot Target response Disturbance response 1 2 Control Operations Proportional Operation P Proportional operation is an operation in which a proportional band is estab lished with respect to the set value SV and within that band the operation amount the control output amount is made proportional to the deviation If the present value PV is smaller than the p...

Page 288: ...ons with re spect to the control results so there is inevitably a response delay Derivative operation compensates for that drawback In response to a sudden disturbance it delivers a large operation amount and rapidly restores the original status A correction is executed with the operation amount made proportional to the in cline derivative coefficient caused by the deviation The strength of the de...

Page 289: ...nt PID operation I operation P operation D operation Ramp response 0 0 Deviation Operation amount Direction of Operation When using PID operation select either of the following two control directions In either direction the operation amount increases as the difference between the SV and the PV increases Forward operation Control amount is increased when the SV is larger than the PV Forward Operati...

Page 290: ...urs it may be that the control system re sponse is quick and the derivative operation is too strong In that case set the derivative operation lower Control by measured PID when hunting occurs in a short period Lower D SV Flags ER Content of DM word is not BCD or the DM area boundary has been exceeded A PID parameter SV is out of range The PID operation was executed but the cycle time was two times...

Page 291: ...id output data bits for the manipulated variable output is designated by the output range setting in C 6 bits 0 to 3 These ranges are shown in the following table C 6 bits 08 to 11 or C 6 bits 00 to 03 Number of valid bits Range 0 8 0000 to 00FF Hex 1 9 0000 to 01FF Hex 2 10 0000 to 03FF Hex 3 11 0000 to 07FF Hex 4 12 0000 to 0FFF Hex 5 13 0000 to 1FFF Hex 6 14 0000 to 3FFF Hex 7 15 0000 to 7FFF H...

Page 292: ...ol Data C DM 1500 0000 Hex binary with one table C 1 DM 1501 FFFF Hex Xm C 2 DM 1502 0000 Hex Yo C 3 DM 1503 FFFF Hex X1 C 4 DM 1504 1770 Hex Y1 Control Data C 6 DM 2506 8 8 Valid number of bits 16 0000 to FFFF Hex Valid number of bits 16 0000 to FFFF Hex To Analog Output Unit Execution condition PID ARP DM 1000 DM 2000 DM 2000 DM 2500 DM 3000 DM 3000 Analog output word DM 1500 0000 X1 1770 x m X ...

Page 293: ...IR 111 Heater Output word IR110 Temperature sensing element Output word IR 100 Amplifier See note below 0 1 AD001 DA001 CPU Unit Note Motors and heaters cannot be directly connected from an Analog Output Unit An amplifier i e a current amplification circuit is required Special Math Instructions Section 5 21 ...

Page 294: ...truction in the following program 5 Convert the PV of the temperature sensing element binary 000 to FFF to temperature data 0000 C to 0200 C by means of SCL and output it to DM 0200 Program Target value Parameter leading word for first PID instruction Parameter leading word for second PID instruction PV of temperature sensing element Heater operation amount Fan operation amount PV of temperature s...

Page 295: ...100 DM 0101 DM 0102 DM 0103 0000 0000 0200 0FFF 5 22 Logic Instructions The logic instructions COM 29 ANDW 34 ORW 35 XORW 36 and XNRW 37 perform logic operations on word data 5 22 1 COMPLEMENT COM 29 Wd Complement word IR SR AR DM HR LR Ladder Symbols Operand Data Areas COM 29 Wd COM 29 Wd Description When the execution condition is OFF COM 29 is not executed When the execution condition is ON COM...

Page 296: ...2 R ANDW 34 I1 I2 R Description When the execution condition is OFF ANDW 34 is not executed When the execution condition is ON ANDW 34 logically AND s the contents of I1 and I2 bit by bit and places the result in R 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 15 00 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 15 00 15 00 I1 I2 R Flags ER Indirectly addressed DM word is non existent Content o...

Page 297: ... the execution condition is ON ORW 35 logically OR s the contents of I1 and I2 bit by bit and places the result in R 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 15 00 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 15 00 15 00 I1 I2 R Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when the result is 0 N ON whe...

Page 298: ...en the execution condition is ON XORW 36 exclusively OR s the contents of I1 and I2 bit by bit and places the result in R 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 15 00 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 15 00 15 00 I1 I2 R Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when the result is 0 N O...

Page 299: ...nstructions within a subroutine are written in the same way as main program code When all the subroutine instructions have been executed control returns to the main program to the point just after the point from which the subroutine was entered unless otherwise specified in the subroutine Subroutines may also be activated by interrupts or the MCRO 99 instruction Interrupts Like subroutine calls in...

Page 300: ... is the de fault mode in C200HX HG HE PCs but high speed mode can be selected in the PC Setup The following setting is used for normal interrupt mode DM 6620 0 0 0 0 In normal interrupt mode the following processing will be completed once started even if an interrupt occurs The interrupt will be processed as soon as the current process is completed Host Link servicing Remote I O servicing Special ...

Page 301: ...ine will be executed when an interrupt is generated If fur ther interrupts are generated during execution of an interrupt subroutine they will not be processed until execution of the current interrupt subroutine has been completed If more than one interrupt is generated or is awaiting execution at the same time the corresponding subroutines will be executed in the following order of priority Input...

Page 302: ...executing longer instructions that handle multiple words such as block transfer instruc tions when the high speed interrupt mode is used and the same data is handled both in the main program and in an interrupt subroutine Data may not be concurrent in two different situations 1 if a data write operation in the main program is interrupted and the same data is read in an interrupt sub routine and 2 ...

Page 303: ... execution returns to the instruction following the SBS 91 that made the call SBS 91 000 SBN 92 000 RET 93 END 01 Main program Subroutine Main program SBS 91 may be used as many times as desired in the program i e the same subroutine may be called from different places in the program SBS 91 may also be placed into a subroutine to shift program execution from one subroutine to another i e subroutin...

Page 304: ... specified subroutine number A subroutine has called itself An active subroutine has been called Caution SBS 91 will not be executed and the subroutine will not be called when ER is ON 5 23 4 SUBROUTINE DEFINE and RETURN SBN 92 RET 93 N Subroutine number 000 to 255 Ladder Symbols Definer Data Areas SBN 92 N RET 93 Limitations Each subroutine number can be used in SBN 92 once only Description SBN 9...

Page 305: ...CRO MCRO 99 I1 First input word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas O1 First output word IR SR AR DM HR LR MCRO 99 N I1 O1 MCRO 99 N I1 O1 N Subroutine number 000 to 255 Limitations I1 through I1 3 must be in the same data area as must O1 through O1 3 Description The MACRO instruction allows a single subroutine to replace several subrou tines that have identical structure but di...

Page 306: ... bits when not used for macro pro grams 4 MCRO 99 instructions can be nested but be sure to preserve I O data since the instructions use the same 8 I O words SR 290 to SR 297 Precautions MCRO 99 can be used only for program sections that can be written using four or fewer consecutive input words and or four or fewer consecutive output words It is thus generally necessary to consider system and pro...

Page 307: ... 01001 01002 29400 29000 29401 29400 29401 29001 29002 RET 93 SBN 92 090 MCRO 99 090 000 100 25313 MCRO 99 090 002 105 MCRO 99 090 005 120 MCRO 99 090 010 150 Always ON Flag 5 23 6 INTERRUPT CONTROL INT 89 C Control code 000 001 002 100 or 200 N Interrupt type 000 001 or 004 Ladder Symbols Operand Data Areas D Control data IR AR DM HR TC LR INT 89 C N D INT 89 C N D Limitations D must be between 0...

Page 308: ...nputs 00 to 07 Since interrupt inputs are recorded masked interrupts will be serviced after the mask is removed unless they are cleared first Set the corresponding bit in D to 1 to clear an interrupt input Bits 00 to 07 corre spond to 00 to 07 Set N 000 for Interrupt Input Unit 0 and N 001 for Interrupt Input Unit 1 This function is used to write the current mask status for input interrupts 00 to ...

Page 309: ...ns of uncertain length such as event pro grams All input interrupts are masked at the start of operation and the desired interrupt input is unmasked using INT 89 with N 000 and C 000 As shown in the follow ing diagram the subroutine would be executed if there were an input from input interrupt 00 of Interrupt Input Unit 0 when that interrupt input was unmasked LD 25315 INT 89 000 000 00FE SBN 92 0...

Page 310: ... details 5 23 7 Processing the Same Memory Locations with the Main Program and Interrupt Subroutines If a memory location is manipulated both by the main program and an interrupt subroutine an interrupt mask must be set to disable interrupts When an interrupt occurs execution of the main program will be interrupted im mediately even during execution of an instruction The intermediate processing re...

Page 311: ...00 Although 0010 is moved to DM 0000 in the interrupt program the addition result that was saved is written to DM 0000 as soon as processing returns to the main program effec tively undoing the results of the interrupt program Countermeasure for Above Problem Interrupting Writing Multiple Words of Data Subroutines and Interrupt Control Section 5 23 ...

Page 312: ...nt 1 the contents of DM 0000 and DM 0001 are not equal and processing stops with A in the OFF state As a result although the contents of DM 0000 and DM 0010 agree at the value 1234 an in correct comparison result is reflected in comparison result output A Countermeasure for Above Problem Subroutines and Interrupt Control Section 5 23 ...

Page 313: ... of a section of the program called a step STEP 08 does not require an execution condition i e its execution is controlled through the control bit To start execu tion of the step SNXT 09 is used with the same control bit as used for STEP 08 If SNXT 09 is executed with an ON execution condition the step with the same control bit is executed If the execution condition is OFF the step is not executed...

Page 314: ...2001 Step controlled by LR 2001 00200 LD 00002 00201 SNXT 09 LR 2002 00202 STEP 08 Steps can be programmed in consecutively Each step must start with STEP 08 and generally ends with SNXT 09 see example 3 below for an exception When steps are programmed in series three types of execution are possible sequential branching or parallel The execution conditions for and the position ing of SNXT 09 deter...

Page 315: ...hree examples demonstrate the three types of execution control possible with step programming Example 1 demonstrates sequential execu tion example 2 branching execution and example 3 parallel execution The following process requires that three processes loading part installation and inspection discharge be executed in sequence with each process being re set before continuing on the the next proces...

Page 316: ...diagram demonstrates the flow of processing and the switches that are used for execution control Process A Process B Process C Loading Part Installation Inspection discharge SW1 SW2 SW3 SW4 Step Instructions Section 5 24 ...

Page 317: ...802 STEP 08 12802 SNXT 09 12803 STEP 08 Process A Process B Process C 00002 SW2 00003 SW3 00004 SW4 Process A started Process A reset Process B started Process B reset Process C started Process C reset Address Instruction Operands Address Instruction Operands 00000 LD 00001 00001 SNXT 09 12800 00002 STEP 08 12800 Process A 00100 LD 00002 00101 SNXT 09 12801 00102 STEP 08 12801 Process B 00100 LD 0...

Page 318: ...o signal when processes are to start and end SW A1 SW A2 SW B1 SW B2 Process C Weight scale Process B Process A Printer SW D The following diagram demonstrates the flow of processing and the switches that are used for execution control Here either process A or process B is used depending on the status of SW A1 and SW B1 Process A Process C End SW A1 SW B1 SW A2 SW B2 SW D Process B Example 2 Branc...

Page 319: ...HR 0003 STEP 08 Process A Process B Process C 00003 SW A2 00004 SW B2 00005 SW D Process A started Process A reset Process C started Process B reset Process C started Process C reset 00001 SW A1 SNXT 09 HR 0000 00002 SW B1 00001 SW A1 Address Instruction Operands Address Instruction Operands 00000 LD 00001 00001 AND NOT 00002 00002 SNXT 09 HR 0000 00003 LD NOT 00001 00004 AND 00002 00005 SNXT 09 H...

Page 320: ...is operation shown below starts with two SNXT 09 instruc tions that start processes A and C These instructions branch from the same instruction line and are always executed together starting steps for both A and C When the steps for both A and C have finished the steps for process B and D begin immediately When both process B and process D have finished i e when the status for both of them is ON b...

Page 321: ...ed Process A reset Process B started Process E reset 00001 SW1 and SW2 SNXT 09 LR 0000 SNXT 09 LR 0002 Process C started LR 0003 SNXT 09 LR 0004 00004 SW5 and SW6 LR 0003 STEP 08 LR 0002 Process E started Used to turn off process D 00003 SW4 SNXT 09 LR 0003 STEP 08 LR 0003 Process C reset Process D started Process D Process E Step Instructions Section 5 24 ...

Page 322: ...the watch dog timer and refreshing I O during program execution 5 25 1 FAILURE ALARM FAL 06 and SEVERE FAILURE ALARM FALS 07 N FAL number 00 to 99 Ladder Symbols Definer Data Areas FAL 06 N FAL 06 N N FAL number 01 to 99 FALS 07 N Limitations FAL 06 and FALS 07 share the same FAL numbers Be sure to use a number in either FAL 06 or FALS 07 not both Description FAL 06 and FALS 07 are provided so tha...

Page 323: ...instruction MSG 46 If the FAL area cannot be cleared as is generally the case when FALS 07 is executed first remove the cause of the error and then clear the FAL area through the Programming Console see 4 6 5 Clearing Error Messages 5 25 2 CYCLE TIME SCAN 18 Mi Multiplier BCD IR SR AR DM HR TC LR 000 Not used Ladder Symbols Operand Data Areas 000 Not used SCAN 18 Mi 000 000 SCAN 18 Mi 000 000 Limi...

Page 324: ...pecified data is to be traced If TRSM 45 is not used the specified data will be traced when END 01 is executed The third method involves setting a timer interval from the peripheral devices so that the specified data will be tracing at a regular interval independent of the cycle time refer to the SSS Operation Manual TRSM 45 can be incorporated anywhere in a program any number of times The data in...

Page 325: ...n executed with an ON execution condition MSG 46 reads eight words of extended ASCII code from FM to FM 7 and displays the message on the Pro gramming Console The displayed message can be up to 16 characters long i e each ASCII character code requires eight bits two digits Refer to Appendix I for the extended ASCII codes Japanese katakana characters are included in this code If not all eight words...

Page 326: ...e instruc tion and data given when 00000 was ON If 00001 goes ON a message will be cleared MSG 46 DM 0010 FAL 06 00 00000 00001 Address Instruction Operands 00000 LD 00000 00001 MSG 46 DM 0010 00002 LD 00001 00003 FAL 06 00 DM contents ASCII equivalent DM 0010 4 1 4 2 A B DM 0011 4 3 4 4 C D DM 0012 4 5 4 6 E F DM 0013 4 7 4 8 G H DM 0014 4 9 4 A I J DM 0015 4 B 4 C K L DM 0016 4 D 4 E M N DM 0017...

Page 327: ...D or the DM area boundary has been exceeded Example Although the display is longer and there is a choice of output devices the coding for LMSG 47 is the same as that for MSG 46 Refer to Example under the pre vious section for an example using MSG 46 5 25 6 TERMINAL MODE TERM 48 Ladder Symbols TERM 48 000 000 000 TERM 48 000 000 000 Description When the execution condition is OFF TERM 48 is not exe...

Page 328: ...of 6400 ms but only the portion of the cycle used for instruction execution is extended WDT 94 can be executed more than once in a cycle but the cycle time can t be extended by more than 6400 ms total Any extension over 6400 ms will be ig nored Another WDT 94 instruction won t be executed if the cycle time has al ready been extended by 6400 ms Timers might not function properly when the cycle time...

Page 329: ...ord area The last digit of the IR word must be 0 Refer to 5 25 9 GROUP 2 HIGH DENSITY I O REFRESH MPRF 61 for de tails on refreshing words allocated to Group 2 High density I O Units Flags ER St and or E aren t within the proper setting ranges 000 to 029 040 to 040 100 to 190 300 to 309 or 400 to 450 St and E aren t within the same setting range St is greater than E 5 25 9 GROUP 2 HIGH DENSITY I O...

Page 330: ...area The resulting count value exceeds 9999 Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded ON when the count N exceeds the data area boundary EQ ON when the result is 0 5 25 11 FRAME CHECKSUM FCS C Control data IR SR AR DM HR LR R1 First word in range IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas D First destination wor...

Page 331: ...most byte of R1 The leftmost byte of R1 will not be included if bit 12 is ON MSB LSB R1 1 2 R1 1 3 4 R1 2 5 6 R1 3 7 8 When bit 12 is OFF the bytes will be ORed in this order 1 2 3 4 When bit 12 is ON the bytes will be ORed in this order 2 3 4 5 Conversion to ASCII The byte frame checksum calculation yields a 2 digit hexadecimal value which is converted to its 4 digit ASCII equivalent The word fra...

Page 332: ... be in the same data area when bit 15 of C is ON C must be input as a constant Description FPD can be used in the program as many times as desired but each must use a different D It is used to monitor the time between the execution of FPD and the execution of a diagnostic output If the time exceeds T an FAL 06 non fatal error will be generated with the FAL number specified in C The program section...

Page 333: ...2 digit BCD 00 to 99 C Not used Set to zero Diagnostics output 0 OFF Bit address output binary 1 ON Bit address and message output ASCII Logic Diagnostic Instructions If the time until the logic diagnostics condition goes ON exceeds T the logic diag nostic instructions are searched for the OFF input condition If more than one input condition is OFF the input condition on the highest instruction li...

Page 334: ...ral Device along with the bit address when FPD is executed Words D 5 to D 8 contain the message preset by the user as shown in the following table Word Bits 15 to 08 Bits 07 to 00 D 1 20 space First ASCII character of bit address D 2 Second ASCII character of bit address Third ASCII character of bit address D 3 Fourth ASCII character of bit address Fifth ASCII character of bit address D 4 2D 0 nor...

Page 335: ...h IR 10003 are all ON IR 10002 will be selected as the cause of the error an FAL 06 error will be gen erated with an FAL number of 10 and the bit address and preset message 10002 1ABC will be displayed on the Peripheral Device HR 10 0000 HR 11 0000 HR 12 0000 HR 13 0000 HR 14 0000 HR 15 4142 HR 16 430D HR 17 0000 HR 18 0000 HR 10 C000 Indicates information normally closed condition HR 11 2031 1 HR...

Page 336: ...he ad dress is identified differently for the DM area 1 2 3 1 For an address in the DM area the word address is written to C 1 For ex ample if the lowest address containing the comparison data is DM 0114 then 0114 is written in C 1 2 For an address in another data area the number of addresses from the be ginning of the search is written to C 1 For example if the lowest address containing the compa...

Page 337: ...BCD between 0001 and 3000 S must be BCD between 7000 and 9999 S and S N 1 must be in the same data area as must D and D N 1 Description When the execution condition is OFF XDMR is not executed When the execution condition is ON XDMR copies the contents of expansion DM words S through S N 1 to the destination words D through D N 1 Precautions The Expansion DM area must be set in the PC Setup before...

Page 338: ...terrupt subroutine It is also returned to the DM area at the beginning of each scan The following table shows the allowed values for C and their functions C IEMS Operation 000 Switches the destination of DM to the DM area E000 Switches the destination of DM to the current bank in the EM area E0B0 Switches the destination of DM to the bank 0 in the EM area E0B1 Switches the destination of DM to the...

Page 339: ...pecified by N must exist in the CPU Unit Description When executed with an ON execution condition EMBC changes the current EM bank to the specified bank number The CPU Unit can access only the cur rent bank which is indicated in bits 00 through 07 of DM 6031 An error will occur and EMBC won t be executed if the specified bank num ber doesn t exist in the CPU Unit Flags ER Indirectly addressed DM w...

Page 340: ...to be sent the destination node and other parameters The contents of the control data depends on whether a transmission is being sent in a SYSMAC NET Link System a SYS MAC LINK System an Ethernet System or a Controller Link System The status of bit 15 of C 1 determines whether the instruction is for a SYSMAC NET Link System or a SYSMAC LINK Ethernet Controller Link System Control Data Ethernet Sys...

Page 341: ...executing the send may be set SYSMAC LINK Systems Set the destination node number to 0 to send the data to all nodes Refer to the SYSMAC LINK System Manual for details Word Bits 00 to 07 Bits 08 to 15 C Number of words 0 to 1000 in 4 digit hexadecimal i e 0000hex to 03E8hex C 1 Response time limit 0 1 and 25 4 seconds in 2 digit hexadecimal without decimal point i e 00hex to FFhex Note The respons...

Page 342: ...y when Destination network address specified is set in word C When specifying a destination network address set all the nodes in the routing tables For details on routing tables refer to refer to the section on network interconnections in the Control ler Link Unit Operation Manual W309 S Source node beginning send word D Destination node beginning receive word C Source node first control data word...

Page 343: ...1163 SR area 08 0 to 27 1164 to 1191 Timer area PV 03 0 to 1023 Timer Area PV 0 to 1023 0 to 511 DM area 05 0 to 24575 DM Area 0 to 24575 0 to 8191 C series PCs Designation Area Area code Word number IR area 00 0 to 511 LR area 06 0 to 63 HR area 07 0 to 99 SR area 08 0 to 27 Timer area PV 03 0 to 511 DM area 05 0 to 6655 EM area 10 to 17 Bank 0 to 7 28 to 2F Bank 8 to 15 18 Current bank 0 to 6143...

Page 344: ...e contents of the destination node s D and D 1 words S Source node beginning send word D Destination node beginning receive word C Source node first control data word SEND 90 S D C D D 1 0 0 0 0 15 14 13 12 11109 8 7 6 5 4 3 2 1 0 Area code Word address 5th digit Word address 1st digit Word address 2nd digit Word address 3rd digit Word address 4th digit Note Specify the area code according to the ...

Page 345: ...LINK PC Card Controller Link Unit 5 26 2 NETWORK RECEIVE RECV 98 S Source beginning word IR SR AR DM HR TC LR D Destination beginning word IR SR AR DM HR TC LR Operand Data Areas C First control data word IR SR AR DM HR TC LR Ladder Symbols RECV 98 S D C RECV 98 S D C Limitations C through C 2 must be within the same data area and must be within the values specified below To be able to use RECV 98...

Page 346: ...Bits 00 to 07 Bits 08 to 15 C Number of words 0 to 1000 in 4 digit hexadecimal i e 0000hex to 03E8hex C 1 Network number 0 to 127 in 2 digit hexadecimal i e 00hex to 7Fhex Bit 12 ON Direct source beginning word designation OFF Indirect designation Bit 14 ON Operating level 0 OFF Operating level 1 Bits 08 to 11 13 and 15 Set to 0 C 2 Source node 1 to 126 in 2 digit hexadecimal i e 01hex to 7Ehex So...

Page 347: ...s for 500 Kbps 01 to FE Hex 0 1 to 25 4 s unit 0 1 s FF Hex No response monitoring Destination transmission source unit address 00 Hex PC s CPU Unit 01 Hex Computer user program 10 to 1F Hex Unit nos 0 to 15 FE Hex Unit connected to network C 3 0 0 Destination network address 00 Hex Local network 01 to 7F Hex 1 to 127 This setting is enabled only when Destination network address specified is set i...

Page 348: ...signations as those used for the destination be ginning word for SEND 90 Examples This example is for a SYSMAC NET Link System When 00000 is ON the follow ing program transfers the content of IR 001 through IR 005 to LR 20 through LR 24 on node 10 0 0 0 5 0 0 0 0 0 0 0 A IR 001 IR 002 IR 003 IR 004 IR 005 LR 20 LR 21 LR 22 LR 23 LR 24 DM 0010 DM 0011 DM 0012 15 0 RECV 98 001 LR 20 DM 0010 00000 No...

Page 349: ... 98 Error Flags SR 25200 SR 25203 OFF following normal completion of SEND RECV i e after reception of response signal ON after an unsuccessful SEND 90 RECV 98 attempt Error status is maintained until the next SEND 90 RECV 98 operation Error types Time out error command response time greater than 1 second Transmission data errors Timing Instruction received Transmission completes normally Instructi...

Page 350: ...rds to specify the 10 words to be transmitted to node 3 in operating level 1 of network 00 NSB Turns ON to indicate transmission error Transmitted data moved into words beginning at DM 0030 for storage 12802 prevents execution of RECV 98 when SEND 90 above has not completed IR 00001 is turned ON to start transmission Data moved into control data words to specify the 16 words to be transmitted from...

Page 351: ...9 MOV 21 007E DM 0005 00030 RECV 98 HR 10 LR 10 DM 0003 00031 LD 12802 00032 AND 25203 00033 OUT 00201 00034 LD 12802 00035 AND 25204 00036 DIFU 13 12803 5 27 Serial Communications Instructions 5 27 1 RECEIVE RXD D First destination word IR SR AR DM HR TC LR C Control word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas N Number of bytes IR SR AR DM HR TC LR RXD D C N RXD D C N Limitations ...

Page 352: ...liary reception port when DR 15 is 0 0 Internal RS 232C port 1 Communications port A 2 Communications port B Port 0 RS 232C port 1 Peripheral port Digit number 3 2 1 0 The order in which data is written to memory depends on the value of digit 0 of C Eight bytes of data 12345678 will be written in the following manner MSB LSB D 1 2 D 1 3 4 D 2 5 6 D 3 7 8 Digit 0 0 MSB LSB D 2 1 D 1 4 3 D 2 6 5 D 3...

Page 353: ...a from the specified port TXD operates differently in host link mode and RS 232C mode so these modes are described separately Note The following flags will be ON to indicate that communications are possible through the various ports Be sure the corresponding flag is ON before executing TXD SR 26405 RS 232C port SR 26413 Peripheral port SR 26705 Host Link Unit 0 SR 26713 Host Link Unit 1 Host Link ...

Page 354: ...ata will be output and the order in which data will be written to memory Control Word The value of the control word determines the port from which data will be read and the order in which data will be written to memory Byte order 0 Most significant bytes first 1 Least significant bytes first CTS and DSR signal monitoring see note 0 Don t monitor CTS and DSR signals 1 Monitor the CTS signal Output ...

Page 355: ...t source word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas STUP N S STUP N S The 3rd operand is ignored Limitations N must be IR 000 IR 001 or IR 002 S and S 4 must be in the same data area S can be set to 0000 to change the RS 232C settings to their defaults STUP can t be executed for the internal RS 232C port if pin 2 of the DIP switch is ON STUP can t be executed within an interrupt s...

Page 356: ...3 0000 2000 0000 1001 0803 0000 2000 0000 1001 0803 0000 2000 0000 1001 0803 0000 2000 0000 Refer to 3 6 4 PC Setup for details The following table shows the function of the transferred setup data Word Content see note Function DM 0100 1001 Enables the communications settings in DM 0101 and sets the communications mode to RS 232C DM 0101 0803 Sets the following communications settings 9 600 bps 1 ...

Page 357: ... tents of the word will be retained When the communications sequence does re quire input words specify words that aren t used for any other purpose in the program The input and output words S and D can also be set in the communications sequence registered in the Communications Board Note Refer to the Communications Board Operation Manual for details on the Com munications Boards and the Protocol S...

Page 358: ...tions and must be assigned to function codes before they can be used Name Mnemonic Function 7 SEGMENT DISPLAY OUTPUT 7SEG BCD output to 7 segment dis play DIGITAL SWITCH INPUT DSW Data input from a digital switch HEXADECIMAL KEY INPUT HKY Hexadecimal input from 16 key keypad TEN KEY INPUT TKY BCD input from 10 key keypad MATRIX INPUT MTR Data input from an 8 x 8 matrix Although TKY is used only to...

Page 359: ...e 7 segment display must provide four data lines and one latch signal line for each display digit Note 1 Consider the cycle time and the characteristics of the 7 segment display when designing the system 2 Output bits not used here can be used as ordinary output bits Precautions I O refreshing must be performed for all I O points used by 7SEG each time it is executed to ensure effective operation ...

Page 360: ...uts normally employ negative logic Only the PNP output type employs positive logic 2 The 7 segment display may require either positive or negative logic de pending on the model 3 The 7 segment display must have 4 data signal lines and 1 latch signal line for each digit Using the Instruction If the first word holding the data to be displayed is specified at S and the output word is specified at O a...

Page 361: ...utput word IR 100 Also assume that the Output Unit is using negative logic and that the 7 segment display logic is also negative for data signals and latch signals 7SEG DM0120 100 004 25313 Always ON The 8 digit BCD data in DM 0120 rightmost 4 digits and DM 0121 leftmost 4 digits are always displayed by means of 7SEG When the contents of DM 0120 and DM 0121 change the display will also change Flag...

Page 362: ...e first cycle whenever program execution is started including restarts made after power interruptions Do not use DSW more than twice in the program DSW cannot be used for I O Units mounted to Slave Racks Note Input and output bits not used here can be used as ordinary input and output bits Hardware With this instruction 8 digit BCD set values are read from a digital switch DSW utilizes 5 output bi...

Page 363: ... 11 13 15 COM 0 2 4 6 8 10 12 14 DC OD212 1 2 4 8 7 6 5 4 3 2 1 C Output Unit A7B Thumbwheel Switch Note The data read signal is not required in the example The inputs must be connected to a DC Input Unit with 8 or more input points and the outputs must be connected from a Transistor Output Unit with 8 or more out put points Advanced I O Instructions Section 5 28 ...

Page 364: ...rogram for reading 8 digits in BCD from the digital switch Assume that the digital switch is connected to IR 000 input and IR 100 output MOV 21 HR51 DM0000 DSW 000 100 HR51 05000 00015 10005 05000 05000 10005 When IR 00015 turns ON the IR 05000 will hold itself ON until the One Round Flag IR 10005 turns ON upon completion of one round of reading by DSW The data set from the digital switch by DSW i...

Page 365: ...n D 2 00 to 15 and bit 4 of OW are turned ON Note 1 When one of the keypad keys is being pressed input from the other keys is disabled 2 Input and output bits not used here can be used as ordinary input and output bits With this instruction one key input is read in 4 to 13 cycles More than one cycle is required because the ON keys can only be determined as the outputs are turned ON to test them Th...

Page 366: ...d ON while any key is being pressed but there is no need to connect it unless required by the application 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 COM ID212 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 COM OD212 C 8 4 0 D 9 5 1 E A 6 2 F B 3 7 Input Unit Output Unit The inputs connected to the input terminals must be on a DC Input Unit with 8 or more input points and the outputs connected to the out...

Page 367: ... Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded D and D 2 are not in the same data area SR 25408 ON while HKY is being executed Example This example shows a program for inputting numbers from a hexadecimal key board Assume that the hexadecimal keyboard is connected to IR 000 input and IR 100 output HKY 000 100 DM1000 XF...

Page 368: ...er digits of D1 D1 1 are shifted left and the most significant digit of D1 1 is lost 2 The first ten bits of D2 indicate key input When one of the keys on the key pad 0 to 9 is being pressed the corresponding bit of D2 00 to 09 is turned ON Note 1 While one key is being pressed input from other keys will not be accepted 2 If more than eight digits are input digits will be deleted beginning with th...

Page 369: ...key input Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded D1 and D1 1 are not in the same data area Example In this example a program for inputting numbers from the 10 key is shown As sume that the 10 key is connected to IR 000 TKY 000 DM1000 DM1002 25313 Always ON XFER 70 0002 DM1000 DM 0000 00015 The 10 key information...

Page 370: ...07 for Input Unit inputs 00 to 07 Bit 08 is turned ON to indi cate that the entire matrix has been read Key input data is written to D through D 3 see table below 00 01 02 03 04 05 06 07 08 A selection signal is output to OW bits 00 to 07 consecutively for 3 cycles Only one output bit will be turned on at a time Bit 08 of OW is turned ON for 3 cycles after 07 to indicate when each round of reading...

Page 371: ... 64 keys can be divided into 8 rows including a row for OW bit 08 which are scanned consecutively Since each row is scanned for 3 cycles a delay of up to 25 cycles can occur before a given row of keys is scanned for inputs I O refreshing must be performed for all I O points used by MTR each time it is executed to ensure effective operation The I O REFRESH instruction must thus be used with MTR whe...

Page 372: ...03 SR 25403 is ON while MTR is being executed 5 29 Special I O Unit Instructions The Special I O Unit instructions are used to transfer data to and from the memory of the specified Special I O Unit 5 29 1 SPECIAL I O UNIT READ IORD C Control code IR SR AR DM HR TC LR S Source information IR SR AR DM HR TC LR Operand Data Areas D First destination word IR SR AR DM HR TC LR Ladder Symbols IORD C S D...

Page 373: ... 0100 00000 Address Instruction Operands 00200 LD 00000 00201 IORD C 3100 DM 0100 Flags ER The last three digits of S number of words specifier isn t BCD or isn t within the range of 001 through 128 Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded The source Unit s unit number isn t 0 to F or it is mounted on a Slave Rack The rece...

Page 374: ...etails Example When IR 00000 goes from OFF to ON the following instruction writes the con tents of the 10 words from DM 0100 through DM 0109 to the memory area of Special I O Unit number 2 IOWR C DM 0100 2010 00000 Address Instruction Operands 00200 LD 00000 00201 IOWR C DM 0100 2010 Flags ER The last three digits of D number of words specifier isn t BCD or isn t within the range of 001 through 12...

Page 375: ...mma 8 bytes comma 8 bytes comma A file can be appended only if there is free space in the Card and data can be overwritten only when an acceptable offset has been specified The fields in the comma delimited file must not be enclosed by definers such as quotation marks Control Words Write the control data in the first control word using the format shown in the fol lowing diagram Word Operating leve...

Page 376: ...rite existing file ON Create new file OFF Create a comma delimited file ON Create a binary file OFF One word comma delimiter ON Two word comma delimiter 2 OFF Read the specified file ON Read the number of ele ments in the specified file OFF Read as a comma delimited file ON Read as a binary file OFF One word comma delimiter ON Two word comma delimiter 3 OFF Compare as a comma delim ited file ON Co...

Page 377: ...earch data 0 to FFFF Specify number of words for one word comma delimiter and binary Specify number of elements for two word comma delimiter Search data Specify one word of search data for one word comma delimiter and binary Specify two words of search data for two word comma delimiter Note 1 When an offset of 0 is specified for process number 1 and a file with the same name already exists the exi...

Page 378: ...error or file type error 03 Non existent file specified 04 Comparison or search failed 05 to FE Undefined FF Process number error Flags ER The content of a word containing an indirect DM EM address is not BCD or the DM EM area boundary has been exceeded DM 6144 through DM 6655 has been used for D The execution enabled flag for the specified operating level SR 25201 or SR 25204 was OFF The operatin...

Page 379: ... data DM 0001 47 3A ASCII G DM 0002 5C 44 ASCII D DM 0003 4D 53 ASCII M S DM 0004 41 56 ASCII A V DM 0005 45 2E ASCII E DM 0006 44 41 ASCII D A DM 0007 54 ASCII T Word Content Function DM 0098 0102 Write data length 102 hexadecimal DM 0099 0000 Offset 0 DM 0100 Data to be written DM 0199 Data to be written Special I O Unit Instructions Section 5 29 ...

Page 380: ......

Page 381: ...ed control action at the right time This section explains the cycle and shows how to calculate the cycle time and I O response times 6 1 Cycle Time 364 6 2 Calculating Cycle Time 368 6 2 1 PC with I O Units Only 369 6 2 2 PC with Host Link and Remote I O Master Units 369 6 3 Instruction Execution Times 371 6 4 I O Response Time 380 6 4 1 Basic Systems 380 6 4 2 Remote I O Systems 381 6 4 3 Host Li...

Page 382: ...operations that occur during the cycle and the ele ments that affect cycle time is however essential to effective programming and PC operations The major factors in determining program timing are the cycle time and the I O response time One run through all required CPU Unit operations is called a cycle the time required for each cycle is called the cycle time The overall flow of the CPU Unit opera...

Page 383: ...es Resets watchdog timer and program address counter End of program YES Minimum cycle time NO YES Resets watchdog timer and waits until the set cycle time has elapsed Calculates cycle time Services SYSMAC LINK and SYSMAC NET Link Units Initialization on power up Overseeing processes Program execution Cycle time calculation I O refreshing Host Link Unit servicing Peripheral device servicing SYSMAC ...

Page 384: ...ted as 16 points PC Link Unit I O refresh time Special I O Unit refresh time 1 1 ms per Remote I O Master Unit 0 17 ms per I O word used on Slave Racks Group 2 High density I O Unit refresh time Refer to the tables below for details on PC Link Special I O Unit and Group 2 High density I O Unit refresh times Input bits set according to status of input signals Output signals sent according to status...

Page 385: ...H FZ001 2 0 ms C200H TC 2 7 ms C200H CP114 2 0 ms C200H AD002 1 4 ms C200H PID 2 7 ms C200H DA002 1 0 ms C200HW SRM21 0 44 ms when the max number of Slaves is 16 0 88 ms when the max number of Slaves is 32 C200HW DRM21 V1 C200HW DRT21 1 72 ms 0 022 the number of words Unit Time required per Unit C200H ID216 0 18 ms C200H OD218 0 14 ms C200H ID217 0 31 ms C200H OD219 0 23 ms NT Links If the PC is c...

Page 386: ...erval Check the effects on I O response time before editing the program online When bits 00 to 07 of AR 25 contain the password code of 5A online editing will be disabled and the CPU Unit will be in standby status while the Online Edit Dis able Bit AR 2509 is ON The Online Edit Standby Flag AR 2510 will be ON while the CPU Unit is in standby status Processing will be executed when AR 2509 is turne...

Page 387: ...am execution 0 156 μs instruction 5 000 instructions 0 78 ms 0 78 ms I O refresh See below 0 34 ms 0 34 ms Peripheral device servicing Minimum time 0 26 ms 0 0 ms Cycle time Total of above 2 08 ms 1 82 ms The I O refresh time would be as follows for two16 point Input Units four 8 point Input Units two 12 point Output Units 12 point Units are treated as 16 point Units and five 8 point Output Units ...

Page 388: ...ink Unit servicing time Peripheral device servicing time Process Calculation With Peripheral Device Without Peripheral Device Overseeing Fixed 0 7 ms 0 7 ms Program execution 0 156 μs instruction 5 000 instructions 0 78 ms 0 78 ms I O refresh See below 2 58 ms 2 58 ms Host Link servicing Fixed 6 0 ms 6 0 ms Peripheral device servicing 0 7 0 78 2 58 6 10 06 10 06 0 05 0 50 0 50 ms 0 0 ms Cycle time...

Page 389: ...o SR 51115 0 208 0 313 0 626 0 104 0 156 0 313 AND For IR and SR 23600 to SR 25515 0 104 0 156 0 312 0 104 0 156 0 313 For SR 25600 to SR 51115 0 208 0 313 0 626 0 104 0 156 0 313 AND NOT For IR and SR 23600 to SR 25515 0 104 0 156 0 313 0 104 0 156 0 313 For SR 25600 to SR 51115 0 208 0 313 0 626 0 104 0 156 0 313 OR For IR and SR 23600 to SR 25515 0 104 0 156 0 313 0 104 0 156 0 313 For SR 25600...

Page 390: ...JMP 11 85 TIMH 15 Interrupt Constant for SV 18 35 33 05 R 25 05 IL 24 05 JMP 14 45 Normal cycle 16 55 31 25 R 21 95 IL 21 05 JMP 11 25 Interrupt DM for SV 18 35 33 05 R 37 1 IL 36 5 JMP 14 45 Normal cycle 16 55 31 25 R 34 1 IL 33 3 JMP 11 25 WSFT 16 When shifting 1 word 16 45 31 15 0 313 0 469 0 938 When shifting 6 144 words using DM 6 45 ms see note 2 CMP 20 When comparing a constant to a word 0 ...

Page 391: ...78 8 ANDW 34 Constant AND word word 14 35 29 05 0 313 0 469 0 938 Word AND word word 15 25 29 95 DM AND DM DM 46 7 61 4 ORW 35 Constant OR word word 14 35 29 05 0 313 0 469 0 938 Word OR word word 15 25 29 95 DM OR DM DM 46 7 61 4 XORW 36 Constant XOR word word 14 35 29 05 0 313 0 469 0 938 Word XOR word word 15 25 29 95 DM XOR DM DM 46 7 61 4 XNRW 37 Constant XNOR word word 14 55 29 25 0 313 0 46...

Page 392: ... 938 When transferring 1 024 words using DM 655 653 9 When transferring 6 143 words using DM 3 66 ms see note 3 BSET 71 When setting a constant to 1 word 19 75 34 45 0 313 0 469 0 938 When setting DM ms to 1 024 words using DM 40 9 55 6 When setting DM ms to 6 144 words using DM 52 3 67 ROOT 72 When taking root of word and placing in a word 41 7 56 4 0 313 0 469 0 938 When taking root of 99 999 99...

Page 393: ...hen shifting 6 144 DM using DM 6 37 ms see note 2 TCMP 85 Comparing to words in a designated table 37 25 51 95 0 313 0 469 0 938 Comparing to words in a designated table 38 1 52 8 Comparing DM DM designated table 69 1 83 8 ASC 86 Between words 30 1 44 8 0 313 0 469 0 938 Between DM 78 3 93 SEND 90 1 word transmit 60 9 75 6 0 313 0 469 0 938 1000 word transmit 99 2 113 9 SBS 91 22 1 36 8 0 313 0 46...

Page 394: ...to DM 35 35 50 05 0 313 0 469 0 938 Default 65 DM to DM 56 3 71 HMS DM to DM 36 5 51 2 0 313 0 469 0 938 Default 66 DM to DM 57 7 72 4 BCNT Constant for SV 39 1 53 8 0 313 0 469 0 938 Default 67 DM for SV 26 5 ms see note 2 BCMP Default 68 Comparing constant to word designated table 62 1 76 8 0 313 0 469 0 938 e au 68 To a word after comparing with a word 63 1 77 8 Comparing DM DM designated table...

Page 395: ... 0 313 0 469 0 938 DM search 1 31 ms see note 2 MIN DM search 31 75 46 45 0 313 0 469 0 938 DM search 1 31 ms see note 2 SUM DM add 26 55 41 25 0 313 0 469 0 938 DM add 1 30 ms see note 2 FCS Add a word word 26 75 41 45 0 313 0 469 0 938 Add 999 words DM 1 05 ms see note 2 HEX DM conversion 36 95 51 65 0 313 0 469 0 938 DM conversion 102 6 117 3 AVG Average of an operation 33 05 47 75 0 313 0 469 ...

Page 396: ...d 18 15 32 85 0 313 0 469 0 938 When converting DM to DM 39 7 54 4 ZCPL When comparing two words 19 95 34 65 0 313 0 469 0 938 When comparing two DM 53 3 68 SCL Word for SV 58 3 73 0 313 0 469 0 938 DM for SV 89 4 104 1 HKY When designating a word 23 55 38 25 0 313 0 469 0 938 When designating DM 44 3 59 DSW DM CS output 35 49 7 0 313 0 469 0 938 DM RD output 35 49 7 DM data retrieval 45 59 7 DM C...

Page 397: ... 0 938 Communications Board Port A DM designation 61 59 9 PMCR Constant for port Sequence number DM for input and output words 41 39 9 0 313 0 469 0 938 Constant for port Sequence number DM for input and output words 56 54 9 DM for port Sequence number DM for input and output words 74 2 73 1 CMCR Word designation 74 72 9 0 313 0 469 0 938 DM designation 80 78 9 DM designation 103 101 9 Note 1 Same...

Page 398: ... prior to the I O refresh period in the cycle Once the input bit corresponding to the signal has been turned ON the program will have to be executed once to turn ON the out put bit for the desired output signal and then the I O refresh operation would have to be repeated to refresh the output bit The I O response time in this case is thus found by adding the input ON delay time the cycle time and ...

Page 399: ...s Minimum I O response time 1 5 20 15 36 5 ms Maximum I O response time 1 5 20 x 2 15 56 5 ms Note In this example the I O refresh time is negligible has not been included in the minimum I O response time 6 4 2 Remote I O Systems With Remote I O Systems only the cycle time of the PC needs to be considered in computing the I O response times as long as the remote I O transmission time is negligible...

Page 400: ... as follows TRM Total Slave transmission time for one Master ΣTRT ΣTTT TRT Transmission time for each Slave 1 4 ms 0 2 ms n Where n number of I O words on the Slave Rack TTT Optical I O Unit I O Terminal transmission time 2 ms m Where m number of Optical I O Units I O Terminals The minimum response time occurs when all signals are processed as soon as they are received Here three scans are require...

Page 401: ...5 ms an out put ON delay of 15 ms and a cycle time of 20 ms Minimum I O Response Time Time 1 5 ms 20 ms 3 15 ms 76 5 ms Maximum I O Response Time Time 1 5 ms 20 ms 4 15 ms 96 5 ms Note 1 The cycle time may be less than or equal to the remote I O transmission time when there are Special I O Units on Slave Racks If this is the case there may be cycles when I O is not refreshed between the Master and...

Page 402: ... equations used to calculate the minimum and maximum cycle times are giv en below The number of cycles required for each PC depends on the amount of data being read written Minimum response time Input ON delay Command transmission time Cycle time of PC for Unit 0 3 Response transmis sion time Host computer processing time Command transmission time Cycle time of PC for Unit 31 3 Output ON delay Max...

Page 403: ...d 1 024 The following illustrates the data flow that will produce the minimum response time i e the time that results when all signals and data transmissions are pro cessed as soon as they occur PC with Unit 0 Buffer in Unit 0 PC Link Unit trans missions Buffer in Unit 7 Input Output Minimum transmission time Program executed Cycle time Cycle time I O refresh Program executed PC with Unit 7 I O re...

Page 404: ...fer in Unit 7 PC with Unit 7 Input Output PC Link polling time Cycle time Cycle time I O refresh Induction sequence processing time Maximum transmission time Polling delay The equation for maximum I O response time is thus as follows Response time Input ON delay Cycle time of PC of Unit 0 Number of LR transfer bits I O refresh bits α PC Link polling time Induction sequence processing time Cycle ti...

Page 405: ...lling time β PC Link polling time The required data from the example System configuration is as follows Input ON delay 1 5 ms Output ON delay 15 ms Cycle time of PC of Unit 0 20 ms 5 7 ms 25 7 5 7 ms required for IORF execution Cycle time of PC of Unit 7 50 ms 5 7 ms 55 7 5 7 ms required for IORF execution Number of PC Link Units 8 Number of LR bits 1 024 Number of refresh bits for Unit 0 256 Numb...

Page 406: ...ediately 3 The slave executes communications servicing immediately after comple tion of communications Master Input point Input bit CPU Unit processing I O refresh Overseeing communica tions etc Cycle time Input ON delay One to one link communications Master to Slave CPU Unit processing Slave Instruction execution Instruction execution Instruction execution Instruction execution Output point Outpu...

Page 407: ... completed is described next Input Interrupts External interrupt input signal Internal interrupt signal Interrupt subroutine execution t1 t2 t1 ON delay of Interrupt Input Unit t2 Software interrupt response time Total interrupt response time t1 t2 The ON delay of Interrupt Input Unit is 0 2 ms or less The software interrupt response time depends on the interrupt response param eter setting in DM ...

Page 408: ...s assume that only one interrupt requires executed at any one time If multiple interrupts are generated at the same time execu tion of all but the first interrupt will go on standby increasing the response times given above 3 If an interrupt occurs while a C200HS SLK or C200HS SNT is be ing serviced the interrupt will not be processed until SYSMAC NET SYS MAC LINK Unit servicing has been completed...

Page 409: ...ill not be executed This will cause the cycle monitoring time to be exceeded and an FALS 9F error will be generated stopping PC operation 2 The maximum interrupt program execution time is contained in SR 262 and SR 263 Interrupt Input Pulse Width The pulse width input to Interrupt Input Units must be set to within the conditions shown in the following diagram 0 5 ms min 0 2 ms min ON time 0 2 ms m...

Page 410: ......

Page 411: ...set 397 7 2 3 Forced Set Reset Cancel 399 7 2 4 Hexadecimal BCD Data Modification 400 7 2 5 Hex ASCII Display Change 402 7 2 6 4 digit Hex Decimal Display Change 403 7 2 7 8 digit Hex Decimal Display Change 404 7 2 8 Differentiation Monitor 405 7 2 9 3 word Monitor 406 7 2 10 3 word Data Modification 406 7 2 11 Binary Monitor 407 7 2 12 Binary Data Modification 409 7 2 13 Changing Timer Counter SV...

Page 412: ... and when a timer or counter num ber is designated the PV of the timer will be displayed and a small box will ap pear if the completion flag of a timer or counter is ON When multiple words are monitored a caret will appear under the leftmost digit of the address designation to help distinguish between different addresses The status of TR bits and SR flags e g the arithmetic flags cleared when END ...

Page 413: ... 0 1 or 2 Examples The following examples show various applications of this monitor operation Program Read then Monitor Indicates Completion flag is ON Monitor operation is cancelled 00100 00100READ TIM 000 T000 1234 T001 o0000 00100 TIM 001 Programming Console Operations Section 7 2 ...

Page 414: ...d when END 01 is executed cannot be monitored Word Monitor 00000 00000 CHANNEL 000 00000 CHANNEL LR 01 cL01 FFFF cL00 0000 EM Area Word Monitor 00000 00000 CHANNEL e0Ć0000 00000 CHANNEL e1Ć0100 e0100 10000 Specify the EM bank and address to be monitored The specified EM word and its contents are displayed Programming Console Operations Section 7 2 ...

Page 415: ...orce Set in operation Cancels monitoring of leftmost address Monitor operation is cancelled 7 2 2 Forced Set Reset When the Bit Digit Monitor operation is being performed and a bit timer or counter address is leftmost on the display PLAY SET can be pressed to turn ON the bit start the timer or increment the counter and REC RESET can be pressed to turn OFF the bit or reset the timer or counter Time...

Page 416: ... The I O Table Registration operation is performed This operation can be used in MONITOR mode to check wiring of outputs from the PC prior to actual program execution This operation cannot be used in RUN mode Note The forced set reset bit status will be maintained when switching from PRO GRAM to MONITOR mode if the Force Status Hold Bit is ON and DM 6601 of the PC Setup has been set maintain the b...

Page 417: ...00500 goes ON again Timing not done in PROGRAM mode 0010000500 OFF OFF T0000010000500 OFF OFF T0000010000500 0123 OFF OFF T0000010000500 0000 OFF ON T0000010000500 0123 OFF OFF T0000010000500 o0000 ON ON T0000010000500 0123 ON OFF T0000010000500 0122 ON OFF T0000010000500 o0000 ON ON 0010000500 OFF OFF 0010000500 ON OFF Monitoring 00100 and 00500 Force set bit status Reset the force set bit 7 2 3 ...

Page 418: ...HG can be input to change the value SR words cannot be changed If a timer or counter is leftmost on the display the PV will be displayed and will be the value changed See 7 2 13 Changing Timer Counter SV for the procedure to change SV PV can be changed in MONITOR mode only when the timer or counter is operating To change contents of the leftmost word address press CHG input the desired value and p...

Page 419: ...R mode Timing Timing PV decrementing Timing Timing 00000 00000 TIM 000 T000 0122 PRES VAL T000 0119 PRES VAL T000 0100 0200 T000 0199 Monitor status of timer PV that will be changed PV changed Timer counter PVs can be changed even when the timer counter is operating Programming Console Operations Section 7 2 ...

Page 420: ...al data to ASCII and vice versa Key Sequence Word currently displayed 00000 00000 CH DM 0000 D0000 4412 D0000 AB D0000 4142 Press TR to change the display to ASCII code Press TR again to return the display to hexadecimal Monitor the desired DM word Example Programming Console Operations Section 7 2 ...

Page 421: ...fies positive signed data Specifies negative signed data TR cL01D000000001 CFC7 1234R OFF cL01 Ć12345 cL01 53191 cL01 Ć12345 PRES VAL cL01Ć12345 Monitor the desired word Leftmost word in 3 word monitor TR Press SHIFT and TR to change the display to signed decimal Press NOT to switch back and forth between signed and normal data PRES VAL cL01 12345 PRES VAL cL01 32767 cL01 32767 cL01D000000001 7FFF...

Page 422: ...01 4294868992 cL02 cL01 Ć0000098304 PRES VAL cL02Ć0000098304 Monitor the first of the desired words Leftmost word in 3 word monitor TR Press SHIFT and TR to change the display to signed decimal Press NOT to switch back and forth between signed and normal data PRES VAL cL02 0000098304 PRES VAL cL02 1234567890 cL02 cL01 1234567890 cL01D000000001 02D2 1234R OFF TR Press SHIFT and TR to change the dis...

Page 423: ...equence Bit monitor in progress L000000108H2315 OFF OFF ON L000000108H2315 U OFF OFF ON L000000108H2315 OFF OFF ON D0002 0123 Monitor the desired bit so that it is leftmost on the screen Press SHIFT and Up Arrow to specify up differentiation U Press SHIFT and Down Arrow to specify down differentiation D The buzzer will sound when up U or down D differentiation is detected The original bit monitor ...

Page 424: ...ify the first of the 3 words you want to monitor Press the Up and Down Arrow keys to change word addresses 7 2 10 3 word Data Modification This operation changes the contents of a word during the 3 Word Monitor opera tion The blinking square indicates where the data can be changed After the new data value is keyed in pressing WRITE causes the original data to be over written with the new data If C...

Page 425: ...0001D0000 0123 4567 89AB Input new data 7 2 11 Binary Monitor You can specify that the contents of a monitored word be displayed in binary by pressing SHIFT and MONTR after the word address has been input Words can be successively monitored by using the up and down keys to increment and decrement the displayed word address To clear the binary display press CLR Key Sequence Word Binary monitor clea...

Page 426: ...R 0000010101010100 00000 CHANNEL 001 00000 00000 CHANNEL DM 0000 D0000 FFFF D0000 MONTR 1111111111111111 D0000 FFFF 00000 CHANNEL DM 0000 0000S0100R0110SR Indicates Force Reset in effect Indicates Force Set in effect Example Programming Console Operations Section 7 2 ...

Page 427: ... a 0 or a 1 can then be entered as the new bit value The bit can also be Force Set or Force Reset by pressing SHIFT and either PLAY SET or REC RESET An S or R will then appear at that bit position Pressing the NOT key will clear the force status S will change to 1 and R to 0 After a bit value has been changed the blinking square will appear at the next position to the right of the changed bit Key ...

Page 428: ...ted Incre menting and decrementing the SV is possible only when the SV has been en tered as a constant To use either method first display the address of the timer or counter whose SV is to be changed presses the down key and then press CHG The new value can then be input numerically and WRITE pressed to change the SV or EXT can be pressed followed by the up and down keys to increment and decrement...

Page 429: ...ing to a new constant 00000 00000 TIM 000 00201SRCH TIM 000 00201 TIM DATA 0123 00201 TIM DATA T000 0123 00201 TIM DATA T000 0123 0124 00201 TIM DATA 0124 00201 DATA T000 0123 c 00201 DATA T000 0123 c010 00201 TIM DATA 010 Example Inputting New SV and Changing to Word Designation Programming Console Operations Section 7 2 ...

Page 430: ... 00000 00000 TIM 000 00201SRCH TIM 000 00201 TIM DATA 0123 00201 TIM DATA T000 0123 00201DATA U D T000 0123 0123 00201DATA T000 0123 0122 00201DATA T000 0123 0123 00201DATA T000 0123 0124 00201DATA T000 0124 00201 TIM DATA 0124 Incrementing and Decrementing Programming Console Operations Section 7 2 ...

Page 431: ...NST TBL READ FUN18 SCAN 00000 Press EXT to begin displaying function code assignments Press CLR to bring up the initial display Press the Up and Down Arrow keys to scroll through the function code assignments The Up Arrow key displays function codes in ascending order 17 18 89 17 18 The Down Arrow key displays function codes in descending order 17 89 88 17 89 INST TBL READ FUN17 ASFT Press CLR to ...

Page 432: ...AC Support Software Key Sequence Clear memory when changing allocation CLR FUN CHG 9 7 B 1 D 3 WRITE VER New data PLAY SET 00000 DM CM LAD 00 00 15 2 UMAREA CHG INI DM SIZ 00KW UMAREA SET CHG UMAREA SET CHG 9713 DM CM LAD 02 00 13 2 UMAREA CHG INI DM SIZ 02KW VER 00000 Clear memory completely if the UM Area allocation will be changed The current UM Area allocation will be displayed will be display...

Page 433: ...he initial display 0 TIM TIM CHG 94Ć04Ć10 14 25 50 FRI 5 TIM CHG 94Ć04Ć10 14 25 58 FRI 5 TIM CHG 94Ć04Ć10 14 25 58 FRI 5 TIM CHG 94Ć04Ć10 14 25 58 FRI 5 TIM 94Ć04Ć10 14 25 58 FRI 5 00000 Press CLR to bring up the initial display Press CHG to change the date and or time FUN 0 TIM 00000 The 9 in 94 will blink indicating that it can be changed In this case a 0 was input to replace the 8 7 2 17 Expans...

Page 434: ...E mode 7 2 18 Keyboard Mapping The C200HX HG HE supports the expansion keyboard mapping as well as nor mal keyboard mapping Expansion keyboard mapping controls the status of the 41 bits SR 27700 through SR 27909 while normal keyboard mapping controls only the 16 bits in AR 22 The status of these bits can be controlled by pressing the corresponding Programming Console keys when the Programming Cons...

Page 435: ...orresponding key is pressed on the Pro gramming Console s keyboard A bit will remain ON after the Programming Con sole s key is released All bits from SR 27700 through SR 27909 will be turned OFF when AR 0708 is turned ON Expansion keyboard mapping inputs are disabled when AR 0708 is ON In addition to the keyboard mapping function expansion TERMINAL mode al lows messages output by MSG 46 and LMSG ...

Page 436: ...418 SR word Corresponding key s Bit 277 03 1 04 2 05 06 07 08 09 10 11 12 13 14 15 278 00 01 02 03 04 05 06 07 08 09 10 Programming Console Operations Section 7 2 ...

Page 437: ...419 SR word Corresponding key s Bit 278 11 12 13 14 15 279 00 01 02 03 04 05 3 06 07 VER 08 09 Programming Console Operations Section 7 2 ...

Page 438: ......

Page 439: ...k Communications 423 8 2 1 Host Link Command Summary 423 8 2 2 Host Link Communications 426 8 2 3 Example Programs 429 8 3 RS 232C Communications 430 8 3 1 Communications Frame Structure 431 8 3 2 Communications Procedure 431 8 3 3 Application Example 433 8 4 One to one PC Links 434 8 5 NT Links 436 8 6 The Protocol Macro Function 437 8 6 1 Introduction 437 8 6 2 Communications Board Settings 440 ...

Page 440: ... N Provides communications between a host computer and PC The PC s operating status and the contents of data areas can be moni tored from the host computer TXD can be used to transmit data from the PC s data areas to the host computer Host Link commands TXD RS 232C no protocol Host computer or other RS 232C device One to one TXD and RXD can be used to manage simple data transfer se quences such as...

Page 441: ... ladder program RS 232C Connections 1 to 1 Only one PC can be connected with the host computer one to one connection when the Host Link is made with RS 232C connections Host Link Host Link Host computer Host link IBM PC AT or compatible Up to 32 PCs can be connected with the host computer one to N connection when the Host Link is made with RS 422 485 connections Host link 32 PCs max IBM PC AT or c...

Page 442: ...ons Mode Set the communications mode to Host Link mode This is the default setting RS 232C port Set bits 12 through 15 of DM 6645 to 0 Peripheral port Set bits 12 through 15 of DM 6650 to 0 Node Number Setting When 1 N connections are being used set a unique node number from 00 to 31 When a 1 1 connection is being used set the PC s node number to 00 RS 232C port Set bits 00 through 07 of DM 6648 0...

Page 443: ...below Baud rate See table below 15 0 Bit DM 6646 RS 232C port DM 6651 Peripheral port Parameter Setting Start bits Data length Stop bits Parity Transmission Frame F 00 1 7 1 Even Format 01 1 7 1 Odd 02 1 7 1 None 03 1 7 2 Even 04 1 7 2 Odd 05 1 7 2 None 06 1 8 1 Even 07 1 8 1 Odd 08 1 8 1 None 09 1 8 2 Even 10 1 8 2 Odd 11 1 8 2 None Parameter Setting Baud rate Baud rate 00 1 200 bps 01 2 400 bps ...

Page 444: ...low x 101 FCS x 100 Node no Header code Text Terminator The header code and text depend on the Host Link command being transmitted When a composite command is transmitted there will be a second sub header code The FCS Frame Check Sequence code is calculated at the host computer and set in the command frame The FCS calculation is described later in this section The command frame may be up to 131 ch...

Page 445: ...lts of the command are returned FCS The 2 character Frame Check Sequence code is returned Terminator Two characters and the carriage return CHR 13 indicate the end of the response FCS Frame Check Sequence When a frame is transmitted an FCS code is placed just before the delimiter or terminator in order to check whether an error has occurred in the transmission The FCS is 8 bit data converted into ...

Page 446: ...en the host computer receives the delimiter it returns the same delimiter to the PC After receiving the delimiter from the host computer the PC transmits the next frame Long transmissions are managed by exchanging delimiters in this way The last frame ends with a terminator Delimiter Text Unit No Header code FCS Delimiter Frame1 command Text FCS Delimiter Terminator FCS Text End code Header code U...

Page 447: ... the host computer 400 FCSCHECK 410 L LEN RESPONSE Data transmitted and received 420 Q 0 FCSCK 430 A RIGHT RESPONSE 1 440 PRINT RESPONSE AS L 450 IF A THEN LENGS LEN RESPONSE 3 ELSE LENGS LEN RESPONSE 2 460 FCSP MID RESPONSE LENGS 1 2 FCS data received 470 FOR I 1 TO LENGS Number of characters in FCS 480 Q ASC MID RESPONSE I 1 XOR Q 490 NEXT I 500 FCSD HEX Q 510 IF LEN FCSD 1 THEN FCSD 0 FCSD FCS ...

Page 448: ...Setup Parameters The following parameters in the PC Setup must be set in advance to enable RS 232C mode communications through the RS 232C or peripheral ports Communications Mode Set the communications mode to RS 232C mode RS 232C port Set bits 12 through 15 of DM 6645 to 1 Peripheral port Set bits 12 through 15 of DM 6650 to 1 Standard Port Settings Standard settings or custom settings can be use...

Page 449: ...d codes the first end code will be used Avoid using commonly occurring characters for the end code Use CR and LF for the end code if data transmissions are being cut short because the end code is occurring within the body of the transmission data No start code and end code Data specified number of bytes Start code only ST Data specified number of bytes End code only Data 256 bytes or less ED Both ...

Page 450: ...ransmit Ready Flag SR 26405 SR 26413 SR 28305 or SR 28313 will remain OFF It will turn ON again upon completion of the data transmission Reception RXD Refer to 5 27 1 RECEIVE RXD for more details 1 2 3 1 Check to see that SR 26406 RS 232C Port Reception Completed Flag or SR 26414 Peripheral Port Reception Completed Flag is ON 2 Use the RXD instruction to receive the data Bits 08 to 11 are valid on...

Page 451: ...09 To reset the Communications Board port A turn ON SR 28900 To reset the Communications Board port B turn ON SR 28901 These bits will turn OFF auto matically after the reset 8 3 3 Application Example This example shows a program for using the RS 232C port in the RS 232C mode to transmit 10 bytes of data DM 0100 to DM 0104 to the computer and to store the data received from the computer in the DM ...

Page 452: ...ot write the words written by the other PC 1 1 1 Master Slave Master area Slave area Written automatically Write 1 Master area Slave area Write CPU PS C200HX HG HE CPU PS C200HX HG HE Wiring Wire the cable as shown in the diagram below using the connector listed Applicable Connectors The following connectors are applicable One plug and one hood are included with the CPU Unit The same connectors ca...

Page 453: ...LR 00 to LR 15 Master words LR00 to LR31 LR00 to LR15 LR00 to LR07 Slave words LR32 to LR63 LR16 to LR31 LR08 to LR15 Communications Procedure If the settings for the master and the slave are made correctly then the one to one link will start up automatically when the PCs are turned on Application Example This example shows a program for verifying the conditions for executing a one to one link usi...

Page 454: ... RS 232C RS 422 485 Adapter The following table shows the maximum number of PTs that can be connected to each port PC RS 232C port Communications port A Communications port B C200HE 4 4 4 C200HX HG 8 8 8 PC Setup Make the following settings when establishing an NT link Link Port Setting One to one Built in RS 232C port Set bits 12 to 15 of DM 6645 to 4 Communications Board port B Set bits 12 to 15...

Page 455: ...th seven communications pro cedures These standard sequences can be used as is or modified to meet the requirements of a particular application Note Refer to the Communications Board Operation Manual for details on Commu nications Boards and the Protocol Support Software Operation Manual for de tails on the Protocol Support Software Half Duplex Communications With half duplex communications data i...

Page 456: ... 422 485 communications Temperature Controller with RS 422 485 communications Temperature Controller with RS 422 485 communications Temperature Controller with RS 422 485 communications Temperature Controller with RS 422 485 communications Conversion Adapter Temperature Controller with RS 422 485 communications Temperature Controller with RS 422 485 communications Connection Cable Wiring The follo...

Page 457: ...uter Modem Connection Straight Connection C200HX HG HE Modem Note Ground the FG terminals on the PC and at the other device to 100 Ω or less Refer to the C200HX HG HE Installation Manual and the documentation in cluded with the other device for details The Protocol Macro Function Section 8 6 ...

Page 458: ... Setting Start bits 1 Data length 7 Stop bits 2 Parity Even Baud rate 9 600 bps Custom Port Settings Standard settings or custom settings can be used for ports A and B The custom settings are used when the following bits are set to 1 Port B Bits 00 through 03 of DM 6550 0 standard 1 custom Port A Bits 00 through 03 of DM 6555 0 standard 1 custom The custom settings for Port B are defined in DM 655...

Page 459: ...ification Sets the timing for writing the received data Scan notification or interrupt notification Step settings Repeat counter Sets the number of times to repeat the step Constant 0 to 255 IR SR LR HR AR DM and EM areas se gs Command Sets the communications command Send Recv or Send Recv Number of retries Sets the number of retries when errors occur for the Send Recv command 0 to 9 Transmission ...

Page 460: ...ption message The abbreviation R M stands for reception message and T M stands for transmission message Data attribute Header Address Length Data Error check Terminator T M R M T M R M T M R M T M R M T M R M T M R M Constant ASCII HEX Yes Yes Yes Yes Yes Yes Yes Yes Special characters CR STX etc Yes Yes Yes Yes Yes Yes No variable conversion First order equation using variable N Yes Yes Yes Yes W...

Page 461: ...s are explained below 1 2 3 1 The address of the word is specified as the PMCR instruction s third op erand first input word 2 A wild card can be set in the reception message s address to receive any message regardless of the destination The result is a broadcast commu nication 3 The wild card can be set in the reception message s data to receive all mes sages 4 The Write Word attribute can be set...

Page 462: ...sequence that transmits five words of data are transmitted one after the other beginning with the first word after the PMCR instruction s second operand and then stores received data in the word specified in the third operand PMCR 1100 DM0000 DM0010 00000 28908 1 2 3 1 When IR 00000 is ON and SR 28908 Communications Board Port A Instruction Execution Flag is OFF data communications are carried out...

Page 463: ...ssage so that all data will be received In the next process set End in both the transmission step and the reception step In error processing set Abort in both the transmission step and the reception step The Protocol Macro Function Section 8 6 ...

Page 464: ......

Page 465: ...nd software errors that occur during PC operation Program input errors are described in 4 7 Inputting Modifying and Checking the Program Although described in Section 3 Memory Areas flags and other error information provided in SR and AR areas are listed in 9 5 Error Flags 9 1 Alarm Indicators 448 9 2 Programmed Alarms and Error Messages 448 9 3 Reading and Clearing Errors and Messages 448 9 4 Err...

Page 466: ...op PC operation or di rectly affect any outputs from the PC FALS 07 is also used with a FAL number which is output to the same location in the SR area when FALS 07 is executed Executing FALS 07 will stop PC op eration and will cause all outputs from the PC to be turned OFF When FAL 06 is executed with a function number of 00 the current FAL number contained in the SR area is cleared and replaced b...

Page 467: ...ssages appear before program execution has been started The POWER indicator will be lit and the RUN indicator will not be lit for either of these Error and message FAL no Probable cause Possible correction CPU WAIT G Waiting for Special I O or Interrupt Input Units None A Special I O Unit or Interrupt Input Unit has not initialized Perform the I O Table Read operation to check unit numbers Replace...

Page 468: ... SYS FAIL FAL9C 9C An error has occurred with a Communications Board Refer to the Communications Board s Operation Manual for details Memory Cassette Transfer error SYS FAIL FAL9D 9D An error has occurred during data transmission between UM and a Memory Cassette because Not in PROGRAM Mode UM or Memory Cassette is read only Insufficient capacity in UM or Memory Cassette A checksum error occurred i...

Page 469: ...ill be lit The RUN out put will be OFF Error and message FAL no Probable cause Possible correction Power interruption No message None Power has been interrupted for at least 10 ms Check power supply voltage and power lines Try to power up again Memory error MEMORY ERR F1 SR 27211 ON A checksum error has occurred in the PC Setup DM 6600 to DM 6655 Check the PC Setup SR 27212 ON A checksum error has...

Page 470: ...d to a PC which can accommodate only two Disconnect the third Rack unless the PC can accommodate three Racks Input output I O table error I O SET ERROR E0 Input and output word designations registered in I O table do no agree with input output words required by Units actually mounted Check the I O table with I O Table Verification operation and check all Units to see that they are in correct confi...

Page 471: ...g Special I O PC Link Host Link Remote I O Master SYSMAC NET Link or SYSMAC Link Unit Error Flag 25503 Instruction Execution Error ER Flag 26400 to 26403 RS 232C Port Error Code 26404 RS 232C Port Communications Error 26408 to 26411 Peripheral Port Error Code except Peripheral Mode 26412 Peripheral Port Communications Error Flag except Peripheral Mode 26800 to 26815 Communications Board Error Info...

Page 472: ...4 Communications Controller Error Flag Level 1 1515 EEPROM Error Flag for operating level 1 9 6 Host Link Errors These are the response codes end codes that may be returned in the response frame When two or more errors occur the end code for the first error will be re turned End code Contents Probable cause Corrective measures 00 Normal completion 01 Not executable in RUN mode The command that was...

Page 473: ...borted due to entry number data error in transmit data There was a data error in the se cond or later frame Correct the data and transfer the command again A8 Aborted due to frame length error in transmit data The length of the second or later frame exceeded the 132 byte max Keep frames to 132 bytes or fewer Errors without Responses A response won t be received with some errors regardless of the c...

Page 474: ......

Page 475: ... WR 469 10 3 10 LR AREA WRITE WL 470 10 3 11 HR AREA WRITE WH 471 10 3 12 PV WRITE WC 472 10 3 13 TC STATUS WRITE WG 473 10 3 14 DM AREA WRITE WD 474 10 3 15 AR AREA WRITE WJ 475 10 3 16 EM AREA WRITE WE 476 10 3 17 SV READ 1 R 477 10 3 18 SV READ 2 R 478 10 3 19 SV READ 3 R 480 10 3 20 SV CHANGE 1 W 481 10 3 21 SV CHANGE 2 W 482 10 3 22 SV CHANGE 3 W 484 10 3 23 STATUS READ MS 485 10 3 24 STATUS ...

Page 476: ...d Valid EM AREA WRITE 476 R Valid Valid Valid SV READ 1 477 R Valid Valid Valid SV READ 2 478 R Valid Valid Valid SV READ 3 480 W Not valid Valid Valid SV CHANGE 1 481 W Not valid Valid Valid SV CHANGE 2 482 W Not valid Valid Valid SV CHANGE 3 484 MS Valid Valid Valid STATUS READ 485 SC Valid Valid Valid STATUS WRITE 487 MF Valid Valid Valid ERROR READ 488 KS Not valid Valid Valid FORCED SET 489 K...

Page 477: ...ot supported The operand specified in an SV Read or SV Change command does not exist in the program Check the command and program 18 Frame length error The maximum frame length of 132 bytes was exceeded If the frame exceeds 280 bytes the Reception Overflow Flag will be turned ON and there won t be a re sponse Check the command and divide it into multiple frames if necessary 19 Not executable Items...

Page 478: ... if communications restart normally A carriage return CR isn t received within 280 bytes SR 26407 RS 232C Port Reception Overflow Flag will be turned ON Communications return to normal when a normal command is transmitted A command is received that doesn t have the character at the beginning of the first frame Receptions are reset Incorrect node number Not the local node hexadecimal or over 31 The...

Page 479: ...0 01 13 14 15 18 A3 A4 A5 A8 WD 00 01 13 14 15 18 23 A3 A4 A5 A8 WJ 00 01 13 14 15 18 A3 A4 A5 A8 WE 00 01 13 14 15 18 A3 A4 A5 A8 R 00 13 14 15 16 18 23 R 00 04 13 14 15 16 18 23 R 00 04 13 14 15 16 18 23 W 00 01 13 14 15 16 18 23 W 00 01 04 13 14 15 16 18 23 W 00 01 04 13 14 15 16 18 23 MS 00 13 14 18 SC 00 13 14 15 18 19 MF 00 13 14 15 18 KS 00 01 13 14 15 18 KR 00 01 13 14 15 18 FK 00 01 13 14...

Page 480: ...s If more than 30 words are read the data will be returned in multiple frames In the second and later frames the text portion of the response can contain up to 31 words The INITIALIZE and ABORT commands can be sent instead of the delimiter for multiple responses for this command If other commands are sent they will be treated the same as delimiters PC Settings PC Mode UM Area RUN MONITOR PROGRAM W...

Page 481: ...an contain up to 31 words The INITIALIZE and ABORT commands can be sent instead of the delimiter for multiple responses for this command If other commands are sent they will be treated the same as delimiters PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK OK OK End Codes An end ...

Page 482: ...an contain up to 31 words The INITIALIZE and ABORT commands can be sent instead of the delimiter for multiple responses for this command If other commands are sent they will be treated the same as delimiters PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK OK OK End Codes An end ...

Page 483: ...ortion of the response can contain up to 31 words The INITIALIZE and ABORT commands can be sent instead of the delimiter for multiple responses for this command If other commands are sent they will be treated the same as delimiters PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK...

Page 484: ...later frames the text portion of the response can contain up to 124 words The INITIALIZE and ABORT commands can be sent instead of the delimiter for multiple responses for this command If other commands are sent they will be treated the same as delimiters PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Mul...

Page 485: ... you try to read these words Instead 0000 will be returned as a response Likewise 0000 will be returned for extension DM words DM 7000 to DM 9999 if extension DM hasn t been allocated in the UM area The INITIALIZE and ABORT commands can be sent instead of the delimiter for multiple responses for this command If other commands are sent they will be treated the same as delimiters PC Settings PC Mode...

Page 486: ...ses Single Multiple Single Multiple OK OK End Codes An end code of 14 format error will be returned if the length of the command is incorrect and an end code of 15 entry number data error will be returned if the specified words exceed the data area boundaries or aren t specified in BCD End code Contents 00 Normal completion 13 FCS error 14 Format error 15 Entry number data error 18 Frame length er...

Page 487: ... MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK OK OK End Codes An end code of 14 format error will be returned if the length of the command is incorrect and an end code of 15 entry number data error will be returned if the specified words exceed the data area boundaries the specified words aren t specified i...

Page 488: ...if the specified write data exceeds the data area boundaries the beginning word isn t specified in BCD or the write data isn t hexadecimal An end code of A5 will be returned instead of 15 for non hexadecimal write data in multiple command frames End code Contents 00 Normal completion 01 Not executable in RUN mode 13 FCS error 14 Format error 15 Entry number data error 18 Frame length error A3 Abor...

Page 489: ... isn t hexadecimal An end code of A5 will be returned instead of 15 for non hexadecimal write data in multiple command frames End code Contents 00 Normal completion 01 Not executable in RUN mode 13 FCS error 14 Format error 15 Entry number data error 18 Frame length error A3 Aborted due to FCS error in transmit data A4 Aborted due to format error in transmit data A5 Aborted due to entry number dat...

Page 490: ...mal completion 01 Not executable in RUN mode 13 FCS error 14 Format error 15 Entry number data error 18 Frame length error A3 Aborted due to FCS error in transmit data A4 Aborted due to format error in transmit data A5 Aborted due to entry number data error in transmit data A8 Aborted due to frame length error in transmit data 10 3 12 PV WRITE WC Writes the PVs present values of timers counters st...

Page 491: ... 18 Frame length error A3 Aborted due to FCS error in transmit data A4 Aborted due to format error in transmit data A5 Aborted due to entry number data error in transmit data A8 Aborted due to frame length error in transmit data 10 3 13 TC STATUS WRITE WG Writes the status of the Completion Flags for timers and counters in the TC area starting from the specified timer counter number Writing is don...

Page 492: ...ted due to frame length error in transmit data 10 3 14 DM AREA WRITE WD Writes data to the DM area starting from the specified word Writing is done word by word Command Format W D FCS x 101 x 100 x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160 Node no Header code Beginning word 0000 to 9999 Write data 1 word Write data for number of words to write Terminator Response Format W D x 101 x 100 x 161 x...

Page 493: ...er data error in transmit data A8 Aborted due to frame length error in transmit data 10 3 15 AR AREA WRITE WJ Writes data to the AR area starting from the specified word Writing is done word by word Command Format W J FCS x 101 x 100 x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160 Write data for the number of words to write Write data 1 word Beginning word 0000 to 0027 Node no Header code Terminat...

Page 494: ...E FCS x 101 x 100 x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160 Node no Header code Beginning word 0000 to 6143 Write data 1 word Write data for number of words to write Terminator Bank no See note Bank No Note Input 00 01 or 02 to specify bank number 0 1 or 2 Input two spaces to specify the current bank Response Format W E x 101 x 100 x 161 x 160 FCS Node no Header code Terminator End code Limi...

Page 495: ...umed to be set as a constant The SV that is read is a 4 digit decimal number BCD Command Format R FCS x 101 x 100 OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100 Node no Header code Terminator Mnemonic TC number 0000 to 0511 Use all four characters to specify the timer or counter instruction s mnemonic Add a space to the end of a TIM or CNT mnemonic to make it 4 characters long Instruction name Mnemonic T...

Page 496: ...t is read is a 4 digit decimal number BCD written as the second operand for the TIM TIMH 15 CNT CNTR 12 or TTIM 87 instruction at the specified pro gram address in the user s program Command Format x 100 x 100 R x 100 x 101 x 103 x 102 x 101 OP1 OP2 OP3 OP4 x 103 x 102 x 101 Node no Program address BCD Mnemonic Timer counter 0000 to 0511 Terminator FCS Header code Use all four characters to specif...

Page 497: ...PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK OK End Codes An end code of 04 address over will be returned if the program address is above the highest program address but less than 65 536 32 767 in the C200HS An end code of 14 format error will be returned if the length of the command is inc...

Page 498: ...H COUNTER C N T Space REVERSIBLE COUNTER C N T R TOTALIZING TIMER T T I M Response Format R OP1 OP2 OP3 OP4 x 160 x 100 x 100 x 101 x 161 x 103 x 102 x 101 Node no Header code End code Operand SV Terminator FCS The Operand parameter indicates the data area where the SV is stored or a constant The SV parameter indicates the word address or the SV itself if it is a constant Operand Classification Co...

Page 499: ... code Contents 00 Normal completion 04 Address over 13 FCS error 14 Format error 15 Entry number data error 16 Command not supported 18 Frame length error 23 User memory protected 10 3 20 SV CHANGE 1 W Searches for the first instance of the specified TIM TIMH 15 CNT CNTR 12 or TTIM 87 instruction in the user s program and changes the SV to new constant SV specified in the second word of the instru...

Page 500: ...eturned if the SV isn t BCD or the mnemonic TC number is incorrect An end code of 16 command not supported will be returned if the specified instruction doesn t exist in the program End code Contents 00 Normal completion 01 Not executable in RUN mode 13 FCS error 14 Format error 15 Entry number data error 16 Command not supported 18 Frame length error 23 User memory protected 10 3 21 SV CHANGE 2 W...

Page 501: ...e Space EM 0000 to 6143 E M Space EM indirect 0000 to 6143 Response Format W x 160 x 100 x 101 x 161 Node no Header code Terminator FCS End code Limitations The command is valid only when the UM setting is ladder only SR 253 through SR 255 can t be specified The command can t be executed if the UM area is write protected PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protecte...

Page 502: ...ction s mnemonic Add a space to the end of a TIM or CNT mnemonic to make it 4 characters long Instruction name Mnemonic TC number OP1 OP2 OP3 OP4 range TIMER T I M Space 0000 to 0511 HIGH SPEED TIMER T I M H COUNTER C N T Space REVERSIBLE COUNTER C N T R TOTALIZING TIMER T T I M The Operand parameter indicates the data area where the SV is stored or a constant The SV parameter indicates the word a...

Page 503: ...rned if the program ad dress isn t BCD the program address exceeds the maximum address in the pro gram the mnemonic TC number is incorrect or the SV is incorrect An end code of 16 command not supported will be returned if the specified instruction doesn t exist in the program End code Contents 00 Normal completion 01 Not executable in RUN mode 04 Address over 13 FCS error 14 Format error 15 Entry ...

Page 504: ...set in effect 7 6 5 4 3 2 1 0 1 0 0 0 x 161 x 160 6 5 0 0 4 0 Bit Bit None Program area write enable 0 Disabled DIP switch pin 1 is ON 1 Enabled DIP switch pin 1 is OFF Program area 0 1 0 8 Kbytes 1 0 0 16 Kbytes 1 0 1 24 Kbytes 1 1 0 32 Kbytes PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Singl...

Page 505: ...7 6 5 4 3 2 1 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 x 161 PROGRAM mode MONITOR mode Bit Bit Operation mode This area is different from that of STATUS READ x 160 PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK OK End Codes An end code of 14 format error will be returned if the length of ...

Page 506: ... 8 0 0 x 163 x 162 7 6 5 4 x 161 3 2 1 0 x 160 ON Battery error Error code F7 ON Special I O Unit error ON System error FAL ON Memory error Error code F1 ON I O bus error Error code C0 ON PC link error ON Host Link Unit transmission error ON No end instruction error FALS ON System error FALS Bit 1st word 0 0 0 CPU Rack 0 0 1 Expansion I O Rack 1 0 1 0 Expansion I O Rack 2 0 1 1 Expansion I O Rack ...

Page 507: ...t that status will be retained until FORCED SET RESET CANCEL KC is transmitted Command Format K S x 100 x 101 x 103 x 102 x 101 x 100 x 101 x 100 OP1 OP2 OP3 OP4 Node no Header code Terminator FCS Operand Word address Bit For data areas IR SR LR HR and AR the Operand parameter indicates the data area where the bit will be force set and the Word address parameter indi cates the word address For the...

Page 508: ...ng is incorrect End code Contents 00 Normal completion 01 Not executable in RUN mode 13 FCS error 14 Format error 15 Entry number data error 18 Frame length error 10 3 27 FORCED RESET KR Force resets an IR SR LR HR or AR bit or the Completion Flag of a timer or counter Once a bit has been forced set or reset that status will be retained until FORCED SET RESET CANCEL KC is transmitted Command Forma...

Page 509: ...0000 to 1023 Response Format K R x 100 x 101 x 161 x 160 Node no Header code Terminator FCS End code Limitations Bits in SR 253 through SR 255 can t be specified PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK OK End Codes An end code of 14 format error will be returned if the leng...

Page 510: ... to 0511 00 to 15 LR L R Space Space 0000 to 0063 HR H R Space Space 0000 to 0099 AR A R Space Space 0000 to 0027 TIMER T I M Space 0000 to 0511 Always 00 HIGH SPEED TIMER T I M H y 00 COUNTER C N T Space REVERS COUNTER C N T R TOTALIZING TIMER T T I M TRANSITION FLAGS T N Space Space 0000 to 1023 The 16 bytes of forced set reset cancel data specifies what operation will be per formed on the speci...

Page 511: ...g The forced set reset cancel data can be one byte long or 16 bytes long An end code of 15 entry number data error will be returned if the operand word address or bit parameter setting is incorrect An end code of 15 will also be re turned if the a data specification of 0 or 1 is used for a timer or counter Comple tion Flag or for a Transition Flag An error code of 15 entry number data error will b...

Page 512: ...des returned for this command are differ ent from the NT Link codes Command Format M M x 100 x 101 Node no Header code Terminator FCS Response Format M M x 100 x 101 x 161 x 160 x 161 x 160 Node no Header code Terminator FCS End code Model code Model code indicates the PC model in two digits hexadecimal Model code Model 01 C250 02 C500 03 C120 0E C2000 10 C1000H 11 C2000H CQM1 12 C20H C28H C40H C2...

Page 513: ...x 101 Node no Header code Characters 122 characters max Terminator FCS Response Format The same characters specified in the command will be returned unaltered if the test is successful T S x 100 x 101 Node no Header code Characters 122 characters max Terminator FCS PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses ...

Page 514: ...and the length of the response depend on the UM area settings such as the amount of memory allocated to expansion DM The response s first frame can contain up to 30 words of program data The se cond and later frames can contain up to 31 words each The INITIALIZE and ABORT commands can be sent instead of the delimiter for multiple responses for this command If other commands are sent they will be t...

Page 515: ... is 16K words 1000 words are allocated to the expansion DM and none is allocated to I O comments The beginning write address and maximum size of the program depend on the UM area settings such as the amount of memory allocated to expansion DM An error won t occur if the command attempts to write program data beyond the maximum size of the program area The program data can be divided into multiple ...

Page 516: ...nator FCS Response Format M I x 100 x 101 x 161 x 160 Node no Header code End code Terminator FCS PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK OK End Codes An end code of 14 format error will be returned if the length of the command is incorrect End code Contents 00 Normal completion ...

Page 517: ...to 15 or entire word CH Data area instruction Operand Constant or d dd OP1 OP2 OP3 OP4 word address IR or SR C I O Space 0000 to 0511 LR L R Space Space 0000 to 0063 HR H R Space Space 0000 to 0099 AR A R Space Space 0000 to 0027 TIMER T I M Space 0000 to 0511 HIGH SPEED TIMER T I M H COUNTER C N T Space REVERSIBLE COUNTER C N T R TOTALIZING TIMER T T I M DM D M Space Space 0000 to 6655 EM current...

Page 518: ...odes An end code of 14 format error will be returned if the length of the command is incorrect or the data break between two items is omitted An end code of 15 entry number data error will be returned if the Read area Read word address or Data format setting is incorrect End code Contents 00 Normal completion 13 FCS error 14 Format error 15 Entry number data error 18 Frame length error 19 Not exec...

Page 519: ... they will be treated the same as delimiters PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK OK OK End Codes An end code of 14 format error will be returned if the length of the command is incorrect An end code of 19 not executable will be returned if there is no registered data...

Page 520: ...be cancelled with this command PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK End Codes There are no end codes with this command 10 3 39 TXD RESPONSE EX This is the response format used when the PC s TXD instruction is executed in Host Link mode TXD converts the specified data ...

Page 521: ...code Terminator FCS Limitations This error response will be returned if there are fewer than 6 bytes of data be tween a command s character and the terminator an incorrect header code is used or a frame is corrupted There is no command associated with IC PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write protected Read protected OK OK OK OK OK Execution Conditions Commands Responses Single Mult...

Page 522: ......

Page 523: ...4S 24 VDC C200HW PD024 CPU I O Backplanes 3 slots C200HW BC031 p 5 slots C200HW BC051 8 slots C200HW BC081 10 slots C200HW BC101 Communication Boards Communications port for SYSMAC LINK and SYSMAC NET Link Units C200HW COM01 RS 232C port C200HW COM02 RS 422 485 port C200HW COM03 Communications port for the SYSMAC LINK Unit and SYS MAC NET Link Unit and a protocol macro function C200HW COM04 E Two ...

Page 524: ...must be 12 m maximum C200H CN711 200 cm C200H CN221 500 cm C200H CN521 1 000 cm C200H CN131 Slave Racks Name Specifications Model number Slave Racks Remote I O Slave Units 100 to 120 200 to 240 VAC switchable APF PCF C200H RT001 P Racks Units 24 VDC C200H RT002 P 100 to 120 200 to 240 VAC switchable Wired C200H RT201 24 VDC C200H RT202 Backplanes 3 slots C200H BC031 V2 5 slots C200H BC051 V2 8 slo...

Page 525: ...t commons C200H OC223 8 pts 2 A 250 VAC 24 VDC for resistive load Independent commons C200H OC224 16 pts 2 A 250 VAC 24 VDC for resistive load see note C200H OC225 Triac Output Units 8 pts 1 A 120 VAC C200H OA121 E 8 pts 1 2 A 250 VAC C200H OA223 12 pts 0 3 A 250 VAC C200H OA222V Transistor Output Units 8 pts 1 A 12 to 48 VDC C200H OD411 Units 12 pts 0 3 A 24 VDC C200H OD211 16 pts 0 3 A 24 VDC se...

Page 526: ...C200H ID111 32 pts 24 VDC C200H ID216 64 pts C200H ID217 Transistor Output Units 32 pts 16 mA at 4 5 V to 100 mA at 26 4 V C200H OD218 Units 64 pts C200H OD219 32 pts 24 VDC 0 5 A 5 A unit C200H OD21B B7A Interface Units 32 input pts Connects to B7A Link Terminals S d d hi h d i i C200H B7A12 32 output pts Standard or high speed transmission delay C200H B7A02 16 input and 16 output points delay C2...

Page 527: ...esistance thermometer Transistor output C200H TC101 thermometer Voltage output C200H TC102 Current output C200H TC103 Heat Cool T t C t l U it Thermocouple Transistor output C200H TV001 Temperature Control Units p Voltage output C200H TV002 Current output C200H TV003 Pt resistance thermometer Transistor output C200H TV101 thermometer Voltage output C200H TV102 Current output C200H TV103 Cam Positi...

Page 528: ...PROM are built in C200H ASC02 ID Sensor Units Local application electromagnetic coupling C200H IDS01 V1 Remote application microwave transmissions C200H IDS21 Read Write Heads Electromagnetic type V600 H series Microwave type V620 H series Data Carriers SRAM type for V600 H series V600 D R EEPROM type for V600 H series V600 D P Voice Unit 60 messages max message length 32 48 or 64 s switchable C20...

Page 529: ...02 Power Cable Connects Power Supply Adapter and SYSMAC NET Included with C200H APS01 For 1 Unit C200H CN001 dap e a d S S C Link Unit Included with C200H APS02 For 2 Units C200H CN002 Bus Connection Units Connects SYSMAC LINK Unit or SYSMAC NET Link Unit to C200HW COM01 COM04 E For 1 Unit C200HW CE001 Link Unit to C200HW COM01 COM04 E Communications Board For 2 Units C200HW CE002 Host Link Units ...

Page 530: ... 1 connector each for PCF and AGF 3G2A9 AL005 E 1 connector for APF PCF 2 for AGF 3G2A9 AL006 PE 1 connector for PCF 2 for AGF 3G2A9 AL006 E O E converter 1 connector for RS 485 1 connector each for APF PCF B500 AL007 P Used for on line removal of SYSMAC NET Link Units from the SYSMAC NET Link System SYSMAC NET Optical Link Adapter 3 connectors for APF PCF B700 AL001 Optical Fiber Products Optical...

Page 531: ...F2511 62 S3200 COCH62M Applicable Optical Fiber Connectors Model number Appearance Applicable Units pp SYSMAC NET SYSMAC LINK S3200 COCF2011 CV500 SNT31 CV500 SLK11 C1000H SLK11 S3200 COCF2511 C200HS SNT32 C200HW SLK13 14 S3200 COCH62M S3200 LSU03 01E S3200 NSUA1 00E S3200 NSUG4 00E S3200 NSB11 E C500 SNT31 V4 B700 AL001 All Plastic Optical Fiber Cable for SYSMAC BUS Name Specifications Model numb...

Page 532: ...ications Model number Stan dards Optical Fiber Cables SYSMAC NET SYSMAC LINK 10 m black Composite cable including S3200 HCLB101 SYSMAC NET SYSMAC LINK 50 m black cable including two core cable S3200 HCLB501 100 m black two core cable and two core l S3200 HCLB102 500 m black power supply cable S3200 HCLB502 1 000 m black cable S3200 HCLB103 10 m orange S3200 HCLO101 50 m orange S3200 HCLO501 100 m ...

Page 533: ...be prepared and connected by specialists 2 If the user prepares and connects optical fiber cables the user must take a seminar held under the aus pices of Sumitomo Electric Industries Ltd and obtain a proper certificate 3 The Optical Power Tester Head Unit Master Fiber Set and Optical Fiber Assembling Tool are required to connect optical fiber cables 4 You may want to use the Plastic Clad Optical ...

Page 534: ...e unit and connector adapter see note SYSMAC NET CV500 SNT31 C200HS SNT32 S3200 CAT2002 see note SYSMAC LINK CV500 SLK11 C200HW SLK13 14 CV1000H SLK11 S3200 CAT2702 SYSMAC BUS C500 RM001 P V1 C500 RT001 RT002 P V1 C200H RM001 PV1 C200H RT001 RT002 PV1 S3200 CAT2822 SYSMAC NET S3200 LSU03 01E C500 SNT31 V4 S3200 CAT3202 Note Use a proper Head Unit model for the optical module to be used If two type...

Page 535: ...PID0 C200H DSC01 Data Setting Console Connecting Cables For C200H DSC01 2 m C200H CN225 Connecting Cables 4 m C200H CN425 Connecting Cable Used to connect an IBM PC AT or compatible to the C200HX HG HE 3 3 m CQM1 CIF02 Optional Products Name Specifications Model number Standards I O Unit Cover Cover for 10 pin terminal block C200H COV11 Terminal Block Cov ers Short protection for 10 pin terminal b...

Page 536: ...p and a Connector Cover C500 CE401 Solderless terminal 40p and a Connector Cover Crimp type C500 CE402 Pressure welded terminal 40p C500 CE403 Solder terminal 40p and a Connector Cover Horizontal type C500 CE404 Crimp style terminal 40p and a Connector Cover Horizontal type C500 CE405 Mounting Rails and Accessories Name Specifications Model number Standards DIN Track Mounting Bracket 1 set 2 inclu...

Page 537: ...pecifications Model number Stan dards SYSMAC Training System Includes text book cassette tape and input switch board C200H ETL01 E Fuzzy Training System Includes a Fuzzy Training System Manual a Main Unit a C200H MR831 Memory Unit a C200H PRO27 E Programming Console a C200H CN222 Cable for the Programming Console C500 SU981 E Fuzzy Training Software an RS 232C Cable and a carrying belt C200H ETL13...

Page 538: ......

Page 539: ...n the execution condition is OFF 153 SET SET Turns the operand bit ON when the execution condition is ON and does not affect the status of the operand bit when the execution condition is OFF 153 TIM TIMER ON delay decrementing timer operation 159 00 NOP NO OPERATION Nothing is executed and program moves to next instruc tion 158 01 END END Required at the end of the program 158 02 IL INTERLOCK If i...

Page 540: ...lt to specified result word 229 31 SUB BCD SUBTRACT Subtracts a four digit BCD value and CY from another four digit BCD value and outputs result to the result word 231 32 MUL BCD MULTIPLY Multiplies two four digit BCD values and outputs result to specified result words 235 33 DIV BCD DIVIDE Divides four digit BCD dividend by four digit BCD divisor and outputs result to specified result words 236 3...

Page 541: ...of two different words 183 74 SLD ONE DIGIT SHIFT LEFT Left shifts data between starting and ending words by one digit four bits 177 75 SRD ONE DIGIT SHIFT RIGHT Right shifts data between starting and ending words by one digit four bits 177 76 MLPX 4 TO 16 8 TO 256 DECODER Converts up to four hexadecimal digits in source word into decimal values from 0 to 15 and turns ON in result word s bit s who...

Page 542: ...e 0 to 999 0 s 305 19 MCMP MULTI WORD COMPARE Compares a block of 16 consecutive words to another block of 16 consecutive words 192 47 LMSG 32 CHARACTER MESSAGE Outputs a 32 character message to the Programming Console 308 48 TERM TERMINAL MODE Switches the Programming Console to TERMINAL mode for the normal keyboard mapping operation 309 60 CMPL DOUBLE COMPARE Compares two eight digit hexadecimal...

Page 543: ...y a Host Link command 312 FPD FAILURE POINT DETECT Finds errors within an instruction block 314 HEX ASCII TO HEXADECIMAL Converts ASCII data to hexadecimal data 219 IEMS INDIRECT EM ADDRESSING Changes the destination of indirect DM addressing DM to DM or the specified EM bank This instruction can be used to change the current EM bank 320 IORD SPECIAL I O UNIT READ Transfers data from the specified...

Page 544: ...M CALCULATE Computes the sum of the contents of the words in the specified range of memory 261 TKY TEN KEY INPUT Inputs 8 digits of BCD data from a 10 key keypad 350 TXD TRANSMIT Sends data via a communications port 335 XDMR EXPANSION DM READ The contents of the designated number of words of the fixed expansion DM data are read and output to the destination word on the PC side 319 XFR2 EM BLOCK TR...

Page 545: ...he result of the instruction Although ladder diagram instructions TIM and CNT are executed when ER is ON other instructions with a vertical arrow under the ER column are not executed if ER is ON All of the other flags in the following table will also not operate when ER is ON Instructions not shown do not affect any of the flags in the table Although only the non differentiated form of each instru...

Page 546: ...SLD 74 µ 177 SRD 75 µ 177 MLPX 76 µ 209 DMPX 77 µ 212 SDEC 78 µ 215 FDIV 79 µ µ 238 DIST 80 µ µ µ 183 COLL 81 µ µ µ 185 MOVB 82 µ 187 MOVD 83 µ 188 SFTR 84 µ µ 173 TCMP 85 µ µ 199 ASC 86 µ 218 SEND 90 µ 322 SBS 91 µ 285 SBN 92 µ µ µ µ µ µ µ µ 286 WDT 94 µ 310 IORF 97 µ 310 RECV 98 µ 327 MCRO 99 µ 287 Expansion Instructions The default function codes are shown for the instructions that have default...

Page 547: ...D µ µ 314 HEX µ 219 HKY µ 347 HMS 66 µ µ 208 IEMS µ 320 INT 89 µ 289 IORD µ µ 354 IOWR µ µ 355 LINE 63 µ µ 224 LMSG 47 µ 308 MAX µ µ µ 257 MBS µ µ µ 253 MBSL µ µ µ 254 MCMP 19 µ µ 192 MIN µ µ µ 258 MPRF 61 µ 311 MTR µ 352 NEG µ µ µ µ 226 NEGL µ µ µ µ 227 PID µ µ 266 PMCR µ 339 RXD µ 333 SBBL µ µ µ µ µ µ 251 SCAN 18 µ 305 SCL µ µ 222 SEC 65 µ µ 207 SRCH µ µ 318 STUP µ 337 SUM µ µ µ 261 TERM 48 µ 30...

Page 548: ...Appendix C Error and Arithmetic Flag Operation 530 Mnemonic Page 25402 N 25405 UF 25404 OF 25507 LE 25506 EQ 25505 GR 25504 CY 25503 ER ZCPL µ µ µ µ 201 ...

Page 549: ... Assignment Recording Sheets This appendix contains sheets that can be copied by the programmer to record I O bit allocations and terminal assignments as well as details of work bits data storage areas timers and counters ...

Page 550: ...5 06 07 08 09 10 11 12 13 14 15 Word Unit Bit Field device Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Word Unit Bit Field device Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Word Unit Bit Field device Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 I O Bits ...

Page 551: ...03 04 05 06 07 08 09 10 11 12 13 14 15 Area Word Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Area Word Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Area Word Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Work Bits ...

Page 552: ...534 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...

Page 553: ...535 Programmer Program Date Page TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters ...

Page 554: ......

Page 555: ...s designed for flexibility allowing the user to input all required addresses and instructions When coding programs be sure to specify all function codes for instructions and data areas or for constant for operands These will be necessary when inputting programs though a Programming Console or other Peripheral Device ...

Page 556: ...538 Programmer Program Date Page Address Instruction Operand s Address Instruction Operand s Address Instruction Operand s Program Coding Sheet ...

Page 557: ...01010 11 00010001 0B 00001011 12 00010010 0C 00001100 13 00010011 0D 00001101 14 00010100 0E 00001110 15 00010101 0F 00001111 16 00010110 10 00010000 17 00010111 11 00010001 18 00011000 12 00010010 19 00011001 13 00010011 20 00100000 14 00010100 21 00100001 15 00010101 22 00100010 16 00010110 23 00100011 17 00010111 24 00100100 18 00011000 25 00100101 19 00011001 26 00100110 1A 00011010 27 0010011...

Page 558: ...6 5 4 3 2 1 0 1 2 3 4 5 32767 32768 32769 2147483647 2147483648 7FFF 7FFE 0005 0004 0003 0002 0001 0000 FFFF FFFE FFFD FFFC FFFB 8001 8000 7FFFFFFF 7FFFFFFE 00008000 00007FFF 00007FFE 00000005 00000004 00000003 00000002 00000001 00000000 FFFFFFFF FFFFFFFE FFFFFFFD FFFFFFFC FFFFFFFB FFFF8001 FFFF8000 FFFF7FFF 80000001 80000000 ...

Page 559: ... A Q a q 1 A Q a q 0010 2 STX DC2 2 B R b r 2 B R b r 0011 3 ETX DC3 3 C S c s 3 C S c s 0100 4 EOT DC4 4 D T d t 4 D T d t 0101 5 ENQ NAK 5 E U e u 5 E U e u 0110 6 ACK SYN 6 F V f v 6 F V f v 0111 7 BEL ETB 7 G W g w 7 G W g w 1000 8 BS CAN 8 H X h x 8 H X h x 1001 9 HT EM 9 I Y i y 9 I Y i y 1010 A LF SUB J Z j z J Z j z 1011 B VT ESC K k K k 1100 C FF FS L l L l 1101 D CR GS Ć M m Ć M m 1110 E...

Page 560: ......

Page 561: ...ted to form a Rack Backplanes provide a se ries of connectors for these Units along with wiring to connect them to the CPU Unit Backplanes also provide connectors used to connect them to other Back planes In some Systems different Backplanes are used for different Racks in other Systems Racks differ only according to the Units mounted to them BCD Short for binary coded decimal BCD calculation An a...

Page 562: ...hat is stored in the LR Area of a PC and which is shared by other PCs in the same system Each PC has a specified section of the LR Area allocated to it This allocation is the same in each LR Area of each PC Communications Board A board that is mounted to the optional slot of a C200HX HG HE CPU Unit With a Communications Board the CPU Unit can communicate with the SYSMAC LINK Unit SYSMAC NET Link U...

Page 563: ...n designating an operand that requires multiple words it is necessary to ensure that the highest address in the data area is not exceeded data sharing An aspect of PC Link Systems and of Data Links in Net Link Systems in which common data areas or common data words are created between two or more PCs debug A process by which a draft program is corrected until it operates as intended Debugging incl...

Page 564: ...f a device EM area Extended data memory area Like DM the EM memory can be accessed in word units only and EM area data is retained when the power to the PC is turned off error code A numeric code generated to indicate that an error exists and something about the nature of the error Some error codes are generated by the system others are defined in the program by the operator exclusive OR A logic o...

Page 565: ...e stored on floppy disks force reset The process of forcibly turning OFF a bit via a programming device Bits are usu ally turned OFF as a result of program execution force set The process of forcibly turning ON a bit via a programming device Bits are usu ally turned ON as a result of program execution function code A two digit number used to input an instruction into the PC hardware error An error...

Page 566: ...omplex actions such as converting and or transferring large blocks of data instruction block A group of instructions that is logically related in a ladder diagram program Al though any logically related group of instructions could be called an instruction block the term is generally used to refer to blocks of instructions called logic blocks that require logic block instructions to relate them to ...

Page 567: ...which an output signal leaves the PC System In physical terms I O points correspond to termi nals or connector pins on a Unit in terms of programming an I O points corre spond to I O bits in the IR area I O response time The time required for an output signal to be sent from the PC in response to an input signal received from an external device I O table A table created within the memory of the PC...

Page 568: ...an be mounted Link System A system that includes one or more of the following systems Remote I O Sys tem PC Link System Host Link System or Net Link System Link Unit Any of the Units used to connect a PC to a Link System These are Remote I O Units I O Link Units PC Link Units Host Link Units and Net Link Units load The processes of copying data either from an external device or from a storage area...

Page 569: ...ramming section within another IF ELSE section Net Link System An optical LAN formed from PCs connected through Net Link Units A Net Link System also normally contains nodes interfacing computers and other peripher al devices PCs in the Net Link System can pass data back and forth receive commands from any interfaced computer and share any interfaced peripheral device Net Link Unit The Unit used t...

Page 570: ...ut device or PC one shot bit A bit that is turned ON or OFF for a specified interval of time which is longer than one cycle on line removal Removing a Rack mounted Unit for replacement or maintenance during PC op eration operand Bit s or word s designated as the data to be used for an instruction An operand can be input as a constant expressing the actual numeric value to be used or as an address ...

Page 571: ...Link System A system in which PCs are connected through PC Link Units to enable them to share common data areas i e each of the PCs writes to certain words in the LR area and receives the data of the words written by all other PC Link Units con nected in series with it PC Link Unit The Unit used to connect PCs in a PC Link System PC System With building block PCs all of the Racks and independent U...

Page 572: ... a program already held in the PC There are dedicated programming devices such as Programming Consoles and there are non dedicated devices such as a host computer PROGRAM mode A mode of operation that allows inputting and debugging of programs to be car ried out but that does not permit normal execution of the program PROM Writer A peripheral device used to write programs and other data into a ROM...

Page 573: ... register at the other end RUN mode The operating mode used by the PC for normal control operations scheduled interrupt An interrupt that is automatically generated by the system at a specific time or program location specified by the operator Scheduled interrupts result in the execution of specific subroutines that can be used for instructions that must be executed repeatedly for a specified peri...

Page 574: ...ctivated by an interrupt subroutine number A definer used to identify the subroutine that a subroutine call or interrupt acti vates SV Abbreviation for set value switching capacity The maximum voltage current that a relay can safely switch on and off syntax error An error in the way in which a program is written Syntax errors can include spelling mistakes i e a function code that does not exist mi...

Page 575: ...al beginning point can be altered from the trigger by defining either a positive or negative delay UM area The memory area used to hold the active program i e the program that is being currently executed Unit In OMRON PC terminology the word Unit is capitalized to indicate any product sold for a PC System Though most of the names of these products end with the word Unit not all do e g a Remote Ter...

Page 576: ...it in a work word work word A word that can be used for data calculation or other manipulation in program ming i e a work space in memory A large portion of the IR area is always re served for work words Parts of other areas not required for special purposes may also be used as work words e g LR words not used in a PC Link or Net Link System ...

Page 577: ...inition 25 Output OFF 42 Control System definition 3 controlled system definition 3 counters bits in TC area 68 changing SV 410 conditions when reset 166 170 creating extended timers 168 extended 168 inputting SV 106 Power OFF 54 reversible counters 169 CPU Rack definition 15 CPU Unit 12 CPU Unit mounting Device Mounted Flag 55 operational flow 364 365 CPU Unit indicators 13 current EM bank changi...

Page 578: ...on DM area allocation 57 Expansion I O Rack definition 15 expansion instructions 141 524 changing function code assignments 413 reading function code assignments 413 expansion keyboard mapping 415 F FAL area 42 304 fatal operating errors 451 flag AR and SR area error flags 453 arithmetic 44 programming example 194 197 201 CPU Unit mounting Device Mounted 55 CY clearing 229 setting 229 Cycle Time E...

Page 579: ...nition 3 input device definition 3 input point definition 3 input signal definition 3 instruction set 521 7SEG 340 ADB 50 243 ADBL 249 ADD 30 229 ADDL 54 230 AND 78 149 combining with OR 79 AND LD 81 150 combining with OR LD 84 use in logic blocks 82 AND NOT 78 149 ANDW 34 278 APR 69 263 ASC 86 218 ASFT 17 178 ASL 25 175 ASR 26 175 AVG 259 BCD 24 205 BCDL 59 206 BCMP 68 197 BCNT 67 312 BIN 23 204 ...

Page 580: ...2 SDEC 78 215 SEC 65 207 SEND 90 322 SET 153 SFT 10 171 SFTR 84 173 SLD 74 177 SNXT 09 295 SRCH 318 319 SRD 75 177 STC 40 229 STEP 08 295 STUP 337 SUB 31 231 SUBL 55 233 SUM 261 TCMP 85 199 TERM 48 88 309 terminology 74 TIM 159 TIMH 15 164 TKY 350 TRSM 45 306 TTIM 87 165 TXD 335 WDT 94 310 WSFT 16 178 XCHG 73 183 XFER 70 182 XFR2 190 XFRB 62 189 XNRW 37 281 XORW 36 280 ZCP 88 200 ZCPL 201 instruct...

Page 581: ...t Error flag 51 output bit application 30 controlling via Output OFF bit 42 controlling ON OFF time 151 controlling status 120 121 definition 3 output device definition 3 output point definition 3 output signal definition 3 P password entering on Programming Console 92 PC configuration 15 definition 3 flowchart 365 PC Link Systems error bits and flags 40 41 LR area application 69 PC Setup 60 defau...

Page 582: ...ne number 286 subroutines 281 294 SV accessing via TC area 69 changing 410 CNTR 12 170 timers and counters 159 switches DIP See DIP switch SYSMAC LINK loop status and completion codes 38 SYSMAC LINK System Active Node Flags 52 instructions 322 service time 53 Using Peripheral Devices 54 SYSMAC NET loop status and completion codes 38 SYSMAC NET Link System Data Link Table transferring 102 instructi...

Page 583: ... 20 Details of communications parameters set in pin 5 of CPU Unit DIP switch changed Page 21 Added graphics and Always OFF Flag name Page 34 to 37 Changed function details for bits 25412 26400 to 26403 26408 to 26411 26714 26715 27004 to 27010 27200 to 27210 27303 to 27307 27503 27505 27508 to 27515 28100 to 28115 Page 45 and 46 Added error conditions for timeout error Page 56 Added information fo...

Page 584: ......

Page 585: ......

Page 586: ...W303 E1 09 ...

Reviews: