Professional Documents
Culture Documents
Introduction To PLC Controllers
Introduction To PLC Controllers
FREE!
Previous page
Table of contents
Next Page
Contents:
Chapter I Operating system Introduction 1.1 Conventional control panel 1.2 Control panel with a PLC controller 1.3 Systematic approach to designing a process control system Chapter II Introduction to PLC controllers Introduction 2.1 First programmed controllers 2.2 PLC controller parts 2.3 Central processing Unit CPU 2.4 Memory 2.5 PLC controller programming 2.6 Power supply 2.7 Input to PLC controller 2.8 Input adjustment interface 2.9 PLC controller output 2.10 Output adjustment interface 2.11 Extension lines Chapter III Connecting sensors and output devices
file:///D|/Dilawer/ELECTRONIC/Web/www.mikroe.com/en/books/plcbook/plcbook.htm (1 of 4)4/10/2008 3:21:01 AM
Chapter VII Examples Introduction 7.1 Self-maintenance 7.2 Making large time intervals 7.3 Counter over 9999 7.4 Delays of ON and OFF status 7.5 Alternate ON-OFF output 7.6 Automation of parking garage for 100 vehicles 7.7 Operating a charge and discharge process 7.8 Automation of product packaging 7.9 Automation a storage door Appendix A Expanding the number of I/O lines Introduction A.1 Differences and similarities A.2 Marking a PLC controller A.3 Specific case Appendix B Detailed memory map for PLC controller Introduction B.1 General explanation of memory regions
3.1 Sinking-Sourcing concept 3.2 Input lines 3.3 Output lines Chapter IV Architecture of a specific PLC controller Introduction 4.1 Why OMRON? 4.2 CPM1A PLC controller 4.3 PLC controller output lines 4.4 PLC controller input lines 4.5 Memory map for CPM1A PLC controller Chapter V Relay diagram Introduction 5.1 Relay diagram 5.2 Normally open and Normally closed contacts 5.3 Short example
Appendix C PLC diagnostics Introduction C.1 Diagnostic functions of a PLC controller C.2 Errors C.3 Fatal errors C.4 User defined errors C.5 Failure Alarm FAL(06) C.6 Severe Failure Alarm FALS(07) C.7 MESSAGE MSG(46) C.8 Syntax errors C.9 Algorithm for finding errors in a program Appendix D Numerical systems Introduction D.1 Decimal numerical system D.2 Binary numerical system D.3 Hexadecimal numerical system Appendix E Detailed set of instructions
Chapter VI SYSWIN, program for PLC controller programming Introduction 6.1 How to connect a PLC controller to a PC 6.2 SYSWIN program installation 6.3 Writing a first program 6.4 Saving a project 6.5 Program transfer to PLC controller 6.6 Checkup of program function 6.7 Meaning of tool-bar icons 6.8 PLC controller function modes 6.9 RUN mode 6.10 MONITOR mode 6.11 PROGRAM-STOP mode 6.12 Program execution and monitoring 6.13 Program checkup during monitoring 6.14 Graphic display of dimension changes in a program
Download:
mikroElektronika recommends:
PIC PLC
System with 16 inputs and 16 outputs.
PIC PLC is a system for installing into devices as well as for developing industrial control. With 16 relays and 16 optocoupled inputs, power supply and a box, it makes very flexible system. [more?]
On-line book
Components of electronic devices
This book is meant for the people with desire to create electronic devices with their own hands. All the examples are illustrated and each component in the scheme is explained in details. Beside the complex examples that can have practical application, there are also elementary examples to guarantee successful start for beginners. [more?]
To readers knowledge:
The contents published in the book "Introduction to PLC controllers" is subject to copyright and it must not be reproduced in any form without an explicit written permission released from the editorial of mikroElektronika. The contact address for the authorization regarding contents of this book: office@mikroe.com . The book was prepared with due care and attention, however the publisher doesn't accept any responsibility neither for the exactness of the information published therein, nor for any consequences of its application.
PIC, PIC, PICmicro, and MPLAB is a registered and protected trademark of the Microchip Technology Inc. USA. Microchip logo and name are the registered tokens of the Microchip Technology. Copyright 2003, Microchip Technology Inc. PIC BASIC PRO is a registered trade mark of microEngineering Labs, Inc. OMRON and CPM1A are registered and protected trademarks of the OMRON Inc. All other tokens mentioned in the book are the property of the companies to which they belong.All other tokens mentioned in the book are the property of the companies to which they belong.
file:///D|/Dilawer/ELECTRONIC/Web/www.mikroe.com/en/books/plcbook/plcbook.htm (3 of 4)4/10/2008 3:21:01 AM
Chapter1
FREE!
Previous page
Table of contents
Next Page
Introduction
Generally speaking, process control system is made up of a group of electronic devices and equipment that provide stability, accuracy and eliminate harmful transition statuses in production processes. Operating system can have different form and implementation, from energy supply units to machines. As a result of fast progress in technology, many complex operational tasks have been solved by connecting programmable logic controllers and possibly a central computer. Beside connections with instruments like operating panels, motors, sensors, switches, valves and such, possibilities for communication among instruments are so great that they allow high level of exploitation and process coordination, as well as greater flexibility in realizing an process control system. Each component of an process control system plays an important role, regardless of its size. For example, without a sensor, PLC wouldnt know what exactly goes on in the process. In automated system, PLC controller is usually the central part of an process control system. With execution of a program stored in program memory, PLC continuously monitors status of the system through signals from input devices. Based on the logic implemented in the program, PLC determines which actions need to be executed with output instruments. To run more complex processes it is possible to connect more PLC controllers to a central computer. A real system could look like the one pictured below:
Chapter1
Chapter1
panel covered an entire wall. To discover an error in the system much time was needed especially with more complex process control systems. On top of everything, a lifetime of relay contacts was limited, so some relays had to be replaced. If replacement was required, machine had to be stopped and production too. Also, it could happen that there was not enough room for necessary changes. control panel was used only for one particular process, and it wasnt easy to adapt to the requirements of a new system. As far as maintenance, electricians had to be very skillful in finding errors. In short, conventional control panels proved to be very inflexible. Typical example of conventional control panel is given in the following picture.
In this photo you can notice a large number of electrical wires, time relays, timers and other elements of automation typical for that period. Pictured control panel is not one of the more complicated ones, so you can imagine what complex ones looked like. Most frequently mentioned disadvantages of a classic control panel are: Too much work required in connecting wires Difficulty with changes or replacements Difficulty in finding errors; requiring skillful work force When a problem occurs, hold-up time is indefinite, usually long.
Chapter1
Advantages of control panel that is based on a PLC controller can be presented in few basic points: 1. Compared to a conventional process control system, number of wires needed for connections is reduced by 80% 2. Consumption is greatly reduced because a PLC consumes less than a bunch of relays 3. Diagnostic functions of a PLC controller allow for fast and easy error detection. 4. Change in operating sequence or application of a PLC controller to a different operating process can easily be accomplished by replacing a program through a console or using a PC software (not requiring changes in wiring, unless addition of some input or output device is required). 5. Needs fewer spare parts 6. It is much cheaper compared to a conventional system, especially in cases where a large number of I/O instruments are needed and when operational functions are complex. 7. Reliability of a PLC is greater than that of an electro-mechanical relay or a timer.
Chapter1
a PLC controller which correspond to inputs and outputs of a system being designed. Third, make a ladder diagram for a program by following the sequence of operations that was determined in the first step. Finally, program is entered into the PLC controller memory. When finished with programming, checkup is done for any existing errors in a program code (using functions for diagnostics) and, if possible, an entire operation is simulated. Before this system is started, you need to check once again whether all input and output instruments are connected to correct inputs or outputs. By bringing supply in, system starts working.
Previous page
Table of contents
Copyright 2003 mikroElektronika. A l l R i g h t s R e s e r v e d . F o r a n y c o m m e n t s c o n t a c t webmaster.
Next page
Chapter2
FREE!
Previous page
Table of contents
Next Page
Introduction
Industry has begun to recognize the need for quality improvement and increase in productivity in the sixties and seventies. Flexibility also became a major concern (ability to change a process quickly became very important in order to satisfy consumer needs). Try to imagine automated industrial production line in the sixties and seventies. There was always a huge electrical board for system controls, and not infrequently it covered an entire wall! Within this board there was a great number of interconnected electromechanical relays to make the whole system work. By word "connected" it was understood that electrician had to connect all relays manually using wires! An engineer would design logic for a system, and electricians would receive a schematic outline of logic that they had to implement with relays. These relay schemas often contained hundreds of relays. The plan that electrician was given was called "ladder schematic". Ladder displayed all switches, sensors, motors, valves, relays, etc. found in the system. Electrician's job was to connect them all together. One of the problems with this type of control was that it was based on mechanical relays. Mechanical instruments were usually the weakest connection in the system due to their moveable parts that could wear out. If one relay stopped working, electrician would have to examine an entire system (system would be out until a cause of the problem was found and corrected). The other problem with this type of control was in the system's break period when a system had to be turned off, so connections could be made on the electrical board. If a firm decided to change the order of operations (make
file:///D|/Dilawer/ELECTRONIC/Web/www.mikroe.com/en/books/plcbook/chapter2/chapter2.htm (1 of 7)4/10/2008 3:21:35 AM
Chapter2
even a small change), it would turn out to be a major expense and a loss of production time until a system was functional again. It's not hard to imagine an engineer who makes a few small errors during his project. It is also conceivable that electrician has made a few mistakes in connecting the system. Finally, you can also imagine having a few bad components. The only way to see if everything is all right is to run the system. As systems are usually not perfect with a first try, finding errors was an arduous process. You should also keep in mind that a product could not be made during these corrections and changes in connections. System had to be literally disabled before changes were to be performed. That meant that the entire production staff in that line of production was out of work until the system was fixed up again. Only when electrician was done finding errors and repairing,, the system was ready for production. Expenditures for this kind of work were too great even for well-to-do companies.
Chapter2
Today's PLC controller can handle highly complex tasks such as position control, various regulations and other complex applications. The speed of work and easiness of programming were also improved. Also, modules for special purposes were developed, like communication modules for connecting several PLC controllers to the net. Today it is difficult to imagine a task that could not be handled by a PLC.
Chapter2
2.4 Memory
System memory (today mostly implemented in FLASH technology) is used by a PLC for an process control system. Aside from this operating system it also contains a user program translated from a ladder diagram to a binary form. FLASH memory contents can be changed only in case where user program is being changed. PLC controllers were used earlier instead of FLASH memory and have had EPROM memory instead of FLASH memory which had to be erased with UV lamp and programmed on programmers. With the use of FLASH technology this process was greatly shortened. Reprogramming a program memory is done through a serial cable in a program for application development. User memory is divided into blocks having special functions. Some parts of a memory are used for storing input and output status. The real status of an input is stored either as "1" or as "0" in a specific memory bit. Each input or output has one corresponding bit in memory. Other parts of memory are used to store variable contents for variables used in user program. For example, timer value, or counter value would be stored in this part of the memory.
Chapter2
PLC controller can be reprogrammed through a computer (usual way), but also through manual programmers (consoles). This practically means that each PLC controller can programmed through a computer if you have the software needed for programming. Today's transmission computers are ideal for reprogramming a PLC controller in factory itself. This is of great importance to industry. Once the system is corrected, it is also important to read the right program into a PLC again. It is also good to check from time to time whether program in a PLC has not changed. This helps to avoid hazardous situations in factory rooms (some automakers have established communication networks which regularly check programs in PLC controllers to ensure execution only of good programs). Almost every program for programming a PLC controller possesses various useful options such as: forced switching on and off of the system inputs/ouputs (I/O lines), program follow up in real time as well as documenting a diagram. This documenting is necessary to understand and define failures and malfunctions. Programmer can add remarks, names of input or output devices, and comments that can be useful when finding errors, or with system maintenance. Adding comments and remarks enables any technician (and not just a person who developed the system) to understand a ladder diagram right away. Comments and remarks can even quote precisely part numbers if replacements would be needed. This would speed up a repair of any problems that come up due to bad parts. The old way was such that a person who developed a system had protection on the program, so nobody aside from this person could understand how it was done. Correctly documented ladder diagram allows any technician to understand thoroughly how system functions.
Chapter2
inductive sensors can register metal objects). Other devices also can serve as inputs to PLC controller. Intelligent devices such as robots, video systems, etc. often are capable of sending signals to PLC controller input modules (robot, for instance, can send a signal to PLC controller input as information when it has finished moving an object from one place to the other.)
Chapter2
Output interface is similar to input interface. CPU brings a signal to LED diode and turns it on. Light incites a photo transistor which begins to conduct electricity, and thus the voltage between collector and emmiter falls to 0.7V , and a device attached to this output sees this as a logic zero. Inversely it means that a signal at the output exists and is interpreted as logic one. Photo transistor is not directly connected to a PLC controller output. Between photo transistor and an output usually there is a relay or a stronger transistor capable of interrupting stronger signals.
Previous page
Table of contents
Copyright 2003 mikroElektronika. A l l R i g h t s R e s e r v e d . F o r a n y c o m m e n t s c o n t a c t webmaster.
Next page
Chapter3
FREE!
Previous page
Table of contents
Next Page
Introduction
Connecting external devices to a PLC controller regardless whether they are input or output is a special subject matter for industry. If it stands alone, PLC controller itself is nothing. In order to function it needs sensors to obtain information from environment, and it also needs execution devices so it could turn the programmed change into a reality. Similar concept is seen in how human being functions. Having a brain is simply not enough. Humans achieve full activity only with processing of information from a sensor (eyes, ears, touch, smell) and by taking action through hands, legs or some tools. Unlike human being who receives his sensors automatically, when dealing with controllers, sensors have to be subsequently connected to a PLC. How to connect input and output parts is the topic of this chapter.
Chapter3
screw terminals on PLC controller housing. Instead, we use a system of connecting several inputs to one return line as in the following picture. These common lines are usually marked "COMM" on the PLC controller housing.
Chapter3
If we were to make type of connection more specific, we'd get combinations as in following pictures (for more specific connection schemas we need to know the exact sensor model and a PLC controller model).
Chapter3
Chapter3
Chapter3
How something is connected with a PLC output depends on the element being connected. In short, it depends on whether this element of output load device is activated by a positive supply pole or a negative supply pole.
Previous page
Table of contents
Next page
Chapter3
Chapter7
FREE!
Previous page
Table of contents
Next Page
CHAPTER 7 EXAMPLES
Introduction 7.1 Self-maintenance 7.2 Making large time intervals 7.3 Delays of ON and OFF status 7.4 Counter over 9999 7.5 Alternate ON-OFF output 7.6 Automation of parking garage 7.7 Operating a charge and discharge process 7.8 Automation of product packaging 7.9 Automation of storage door
Introduction
Programming only related examples make up the first group of examples. They are given as separate small programs that can later be incorporated into larger ones. Second group consists of examples which can be applied to some real problems.
7.1 Self-maintenance
Program allows input to remain at ON status even when the condition that brought it to that status stops. Example in picture below illustrates how use of a key connected to the input IR000.00 changes IR010.01 output status to ON. By letting the key go, output IR010.01 is not reset. This is because IR010.01 output keeps itself at status ON through OR circuit (having IR000.00), and it stays in this status until key at input IR000.01 is pressed. Input IR000.01 is in I connection with the output pin IR010.01 which cancels out a condition, and resets an IR010.01 bit. Example of self-maintenance is quite frequent in specific applications. If a user was connected to IR010.01 output, START and STOP functions could be realized from two keys (without the use of switches). Specifically, input IR000.00 would be a START key, and IR000.01 would be a STOP key.
Chapter7
Chapter7
Chapter7
Ladder Diagram:
Chapter7
Same effect can be achieved with a modified program below. First change is that there is a "switch" for the whole program, and this is IR000.00 input (program can accomplish its function only while this switch is active). Second change is that the line whose status is followed is brought to IR000.01 input. The rest is the same as in the previous version of the program. Counter CNT002 counts status changes of the CNT001 counter flag. When it numbers them, it changes the status of its flag CNT002 which executes the condition for status change of IR010.00 output. This changes IR010.00 output status after 20000 changes of input IR000.01. Ladder Diagram:
Chapter7
Chapter7
Program starts executing a condition at IR000.00 bit. Since a normally closed contact which refers to counter flag (that isn't set ) is linked with this IR000.00 bit in "I" circuit, this status of IR200.00 bit will change to ON. Bit IR200.00 keeps its status through self-maintenance until counter flag is not set and a condition interrupted. When an IR200.00 bit is set, timers TIM001 and TIM002 start counting a set interval number at 0.1 s ( in the example, this number is 10 for the first timer, or 20 for the second timer, and this sets the period of one or two seconds). With both timers, a normally closed contact which refers to TIM002 timer flag is connected with IR200.00 bit. When this flag is set which happens every two seconds, both timers are reset. Timer TIM002 resets timer TIM001 and itself, and this starts a new cycle. At the start of a program, IR010.00 output bit changes status to ON and stays in this status until TIM001 flag changes status to ON (after one second). By changing TIM001 flag status to ON, condition is broken (because it is represented as normally closed contact) and IR010.00 bit changes status to OFF. IR010.00 output status changes to ON again when time has run out on TIM002 timer. This resets TIM001 timer and its flag which in turn executes a condition for status change of the IR010.00 output. Cycle is thus repeated until a counter numbers 10 changes of TIM001 flag status. With the change of status of CNT000 counter flag, a condition for an assisting bit IR200.00 is broken, and program stops working. Ladder Diagram:
Chapter7
Previous page
Table of contents
Copyright 2003 mikroElektronika. A l l R i g h t s R e s e r v e d . F o r a n y c o m m e n t s c o n t a c t webmaster.
Next page
FREE!
Previous page
Table of contents
Next Page
APPENDIX A
INTRODUCTION
A.1 Differences and similarities A.2 Marking the PLC controller A.3 Specific case
Introduction
This appendix is an answer to the question What if more input or output lines are needed ?. Model detailed in the book carries the mark CPM1A-10CDR-A and is taken as an optimal for its price and features. Alternative models with greater number of lines include CPM1A-20CDR-A, CPM1A-30CDR-A or CPM1A-40CDR-A. The last two can be expanded with three additional modules with 20 extra I/O lines each, totaling 100 I/O lines as a maximum (if this is still insufficient, maybe it is time for you to start using some of more powerful PLC controllers). If not even the most powerful model of CPM1A family satisfies your needs, then extra modules with 20 I/O lines are added. This form of connection reaches 100 input/outputs, which is a significant number in industrial proportions.
outputs because expansion increases the cost of the project. All the models and expansions of CPM1A class carry additional marks defining them more precisely.
Output points Power Supply 4 point Relay 100 to240 VAC, Output 50/60 Hz 24 VDC 24 VDC 24 VDC 100 to 240 VAC, 50/60 Hz 24 VDC 24 VDC 24 VDC 100 to 240 VAC, 50/60 Hz 24 VDC 24 VDC 24 VDC 100 to 240 VAC, 50/60 Hz 24 VDC 24 VDC 24 VDC
20 I/O points
12 points
CPM1A-10CDR-D CPM1A-l0CDT-D CPM1A-10CDT1-D CPMlA-20CDR-A CPM1A-20CDR-D CPM1A-20CDT-D CPMlA-20CDT1-D CPM1A-30CDR-A CPM1A-30CDR-D CPM1A-30CDT-D CPM1A-30CDT1-D CPM1A-40CDR-A CPM1A-40CDR-D CPM1A-40CDT-D CPM1A-40CDT1-D
30 I/O points
18 points
40 I/O points
24 points
Notice that PLC controllers with 10 and 20 I/O lines do not have an expansion port. Generally speaking, if there is the slightest possibility for expansion in the project, PLC controller with 30 or 40 I/O lines should be used.
1 2 3 4
Unit Central processing unit (CPM2A-30CDX-X) Unit for I/O expansion (CPM1A-20EDxxx) Analog I/O unit (CPM1AMAD01) Unit for I/O expansion (CPM1A-EDxxx)
Assigned input bits IR 00000-IR 00011 and IR 00100-IR 00105 IR 00200-IR 02011 IR 00300-IR 03015 and IR 00400-IR 00415 IR 00500-IR 00511
Assigned output bits IR 01000-IR 01007 and IR 01100-IR 01103 IR 01200-IR 01207 IR 01300-IR 01315 IR 01400-IR 01415
Previous page
Table of contents
C o p y r i g h t 2 0 0 3. m i k r o E l e k t r o n i k a. All Rights Reserved. For any comments contact webmaster.
Next page
Next Page
Introduction
Purpose of this appendix is to explain certain memory areas in detail. As the following tables cover whole memory, there are options left unused in this book. They should be skipped during the first reading, and used later according to needs.
Data area
Word(s)
Bit(s)
Function
input area
IR area
output area
These bits may be assigned to an external I/O connection. Some of these have direct output on screw terminal (for example, IR000.00 - IR000.05 and IR010.00 - IR010.03 with CPM1A model) Working bits that can be used freely in the program. They are commonly used as swap bits Special functions, such as flags and control bits Temporary storage of ON/ OFF states when jump takes place Data storage; these keep their states when power is off Special functions, such as flags and control bits 1:1 connection with another PC Same numbers are used for both timers and counters Data of DM area may be accessed only in word form. Words keep their contents after the power is off Part of the memory for storing the time and code of error that occurred. When not used for this purpose, they can be used as regular DM words for reading and writing. They cannot be changed from within the program Storing various parameters for controlling the PC
working area
IR 20000 - IR 23115 (512 bits) SR23200 - SR25515 (384 bits) TR 0 - TR 7 (8 bits) HR0000 - HR1915 (320 bits) AR0000 - AR1515 (256 bits) LR0000 - LR1515 (256 bits)
SR 232 - SR 255 (24 words) --HR 00 - HR 19 (20 words) AR 00 - AR 15 (16 words) LR 00 - LR 15 (16 words)
TC 000 - TC 127 (timer/counter numbers) DM 0000 - DM 0999 and DM 1022 - DM 1023 (1002 words)
Read/write
---
---
Read only
---
PC setup
---
Note: 1. IR and LR bits, when not used to their purpose, may be used as working bits. 2. Contents of HR area, LR area, counter and DM area for reading/writing is stored within backup condenser. On 25C, condenser keeps the memory contents for up to 20 days. 3. When accessing the current value of PV, TC numbers used for data have the form of word. When accessing the Completing flags, they are used as data bits. 4. Data from DM6144 to DM6655 must not be changed from within the program, but can be changed by peripheral device.
file:///D|/Dilawer/ELECTRONIC/Web/www.mikroe.com/en/books/plcbook/app_b/app_b.htm (2 of 10)4/10/2008 3:22:26 AM
Words
SR 232 - SR 235 SR 236 - SR 239 SR 240
Bits
00 - 15 00 - 15 00 - 15
Function
Input area for macro functions. Contains input operands for MCRO(99) (may be used for working bits, when MCRO(99) is not used) Output area for macro functions. Contains output operands for MCRO(99) (may be used for working bits, when MCRO(99) is not used) Contains set value SV, when input interrupt 0 is used in counter mode (4 hexadecimal digits) (may be used for working bits, when input interrupt 0 is not used in counter mode) Contains set value SV, when input interrupt 1 is used in counter mode (4 hexadecimal digits) (may be used for working bits, when input interrupt 1 is not used in counter mode) Contains set value SV, when input interrupt 2 is used in counter mode (4 hexadecimal digits) (may be used for working bits, when input interrupt 2 is not used in counter mode)
SR 241
00 - 15
SR 242
00 - 15
SR 243 SR 244 SR 245 SR 246 SR 247 SR 248, SR 249 SR 250 SR 251 SR 252
00 - 15 00 - 15 00 - 15 00 - 15 00 - 15 00 - 15 00 - 15 00 - 15 00 01 - 07 08 09 10
Contains set value SV, when input interrupt 3 is used in counter mode (4 hexadecimal digits) (may be used for working bits, when input interrupt 3 is not used in counter mode) Contains current value (PV-1), when input interrupt 0 is used in counter mode (4 hexadecimal digits) Contains current value (PV-1), when input interrupt 1 is used in counter mode (4 hexadecimal digits) Contains current value (PV-1), when input interrupt 2 is used in counter mode (4 hexadecimal digits) Contains current value (PV-1), when input interrupt 3 is used in counter mode (4 hexadecimal digits) Contains current value PV of the high-speed counter (may be used for working bits, when high-speed counter is not used) Analog setting of value 0. Keeps 4 digit BCD value (0000 - 0200) set via analog potentiometer on the PLC controller casing. Analog setting of value 1. Keeps 4 digit BCD value (0000 - 0200) set via analog potentiometer on the PLC controller casing. Reset of the high-speed counter Not used Peripheral port. Switches on for the reset of the peripheral port (this doesn't apply to a case when peripheral device is connected). Bit automatically changes state to OFF after the reset Not used PLC Setup Reset Bit. When on, it initializes PC setup (DM6600-DM6655). It automatically goes to OFF after the reset. This applies only if the PC is in PROGRAM mode Forced Status Hold Bit. OFF: bits used in the operation of forced set/reset are cleared when changing from PROGRAM to MONITOR mode. ON: bits used in the operation of forced set/reset keep their states when changing from PROGRAM to MONITOR mode. I/O Hold bit. OFF: IR and LR bits are reset when starting or ending an operation. ON: IR and LR bits keep their states when starting or ending an operation. Not used Error Log Reset Bit. Bit state OFF clears the record of error taking place. Bit automatically goes off after the operation Not used FAL error code. Location contains error code (2 digit number). FAL number is stored at this location upon executing FAL(06) or FAL(07) instructions. Location contents are reset upon executing FAL 00 instruction or by clearing an error from peripheral device Not used Cycle Time Overrun Flag. Bit goes to ON when program length doesn't allow cycle of input/output scanning to be executed in a specified time period
11
12
13 14 15 SR 253 00 - 07 08 09
10 - 12 13 14 15 SR 254 00 01 02 03 - 05 06 07 08 - 15 SR 255 00 01 02 03 04 05 06 07 08 - 15
Not used Flag always on Flag always off First Cycle Flag. Goes ON during the first cycle at the beginning of the operation 1 min clock impulse (30s on, 30s off) 0.02s clock impulse (0.01s on, 0.01s off) Negative (N) flag Not used Differential Monitor Flag STEP(8) execution flag Not used 0.1s clock impulse (0.05s on, 0.05s off) 0.2s clock impulse (0.1s on, 0.1s off) 1.0s clock impulse (0.5s on, 0.5s off) Instruction Execution Error (ER) Flag. Changes state to ON if error occurs during instruction execution Carry (CY) flag "Greater than" (GR) flag "Equals" (EQ) flag "Less than" (LE) flag Not used
Word(s)
AR00 and AR01 AR02
Bit(s)
00 - 15 00 Not used
Function
Status flag of the first I/O unit for expanding I/O lines (I/O units status flag)
Status flag of the second I/O unit for expanding I/O lines (I/O units status flag) Status flag of the third I/O unit for expanding I/O lines (I/O units status flag) Not used Number of connected I/O units Not used Not used Peripheral device error code Flag of peripheral device error Peripheral Device Transmission Enabled Flag Not used Not used Power-off counter. Contains 4-digit BCD value High-speed Counter Range Comparison Flags Not used Pulse Output Status. ON: stopped; OFF: Impulse at output Not used Power-up PC Setup Error Flag. Goes ON when error occurs in area DM 6600 - DM 6614 Start-up PC Setup Error Flag. Goes ON when error occurs in area DM 6615 - DM 6644 RUN PC Setup Error Flag. Goes ON when error occurs in area DM 6645 DM 6655 Not used Long Cycle Time Flag. Goes ON if real cycle length exceeds length set in DM 6619 Not used Memory Area Specification Error Flag. Goes ON when non-existing address is specified in the program Flash Memory Error Flag Read-only DM Error Flag. Goes ON when checksum error occurs in DM 6144 - DM 6599 range PC Setup Error Flag. Goes ON when checksum error occurs in PC Setup area Program Error Flag. Goes ON when checksum error occurs in program memory (UM) or inappropriate instruction is executed Expansion Instruction Error Flag Not used
AR14 AR15
00 - 15 00 - 15
Maximum Cycle Time. 4 BCD digits. Cleared at the beginning of the operation Current Cycle Time. 4 BCD digits. Not cleared when the operation ends
Note: 1. IR and LR bits when not used for their function may be used as working bits. 2. Contents of HR area, LR area, counter, and DM area for reading/writing are kept by battery of central processing unit. In case that the battery is removed or malfunction occurs, this data will be lost. 3. When accessing the current value of PV, TC numbers used for data have form of word. When accessing Completing flags, they are used as data bits. 4. Data stored from DM6144 to DM6655 cannot be changed from within the program, but can be changed by peripheral device. 5. Program and data from DM 6144 to DM 6655 are stored in the flash memory.
Word(s)
DM 6600
Bit(s)
00 - 07 08 - 15
Function
Startup Mode. Active only if bits 08 - 15 are set to 02. 00: PROGRAM; 01: MONITOR; 02: RUN Startup mode designation. 00: programming console switch; 01: proceeds in the mode last used before turning off the power; 02: settings in 00 - 07 Not used (set to 0) IOM Hold Bit (SR 25212). 0: Reset; 1: Keeps the state Forced Status Hold Bit (SR 25211). 0: Reset; 1: Keeps the state Writing to program memory protection. 00: OFF; 01: ON (except for DM 6602) Programming console display language. 00: English; 01: Japanese Not used Not used
Settings are active only upon resetting the PLC and sending data from PC to PLC
DM 6601
00 - 07 08 - 11 12 - 15
DM 6602
00 - 03 04 - 07 08 - 11
DM 6603
00 - 15
DM 6604
00 - 07 08 - 15
00: in case of battery malfunction, error will not be generated; 01: in case of battery malfunction, error will be generated Not used Not used Not used Servicing time for peripheral port. Active when bits 08 - 15 are set to 01. It is expressed in percentage of cycle time duration (00 to 99 (BCD)) Peripheral port servicing setting enable. 00: 5% of cycle duration; 01: time defined in first half of the word Cycle monitor time. Settings are identical to those of the second half of the previous word Cycle monitor enable (Setting in 00 to 07 x unit; 99 5 max). 00:120ms (settings in bits 00-07 are disabled) ; 01: setting unit 10ms; 02: setting unit 100ms; 03: setting unit 1s Cycle time. 0000: variable (no minimum); 0001: up to 9999 (BCD). Minimal time is expressed in ms Input constant for IR 00000 - IR 00002. 0: 0.8ms; 1: 1ms; 2: 2ms; 3: 4ms; 4: 8ms; 5: 16ms; 6: 32ms; 7: 64ms; 8: 128ms Input constant for IR 00003 and IR 00004. Settings are same as with bits 00-03 Input constant for IR 00005 and IR 00006. Settings are same as with bits 00-03 Input constant for IR 00007 and IR 00011. Settings are same as with bits 00-03 Input constant for IR 001. 0: 0.8ms; 1: 1ms; 2: 2ms; 3: 4ms; 4: 8ms; 5: 16ms; 6: 32ms; 7: 64ms; 8: 128ms Input constant for IR 002. Settings are same as with IR 001 Input constant for IR 003. Settings are same as with IR 001 Input constant for IR 004. Settings are same as with IR 001 Input constant for IR 005. Settings are same as with IR 001 Input constant for IR 006. Settings are same as with IR 001 Input constant for IR 007. Settings are same as with IR 001 Input constant for IR 008. Settings are same as with IR 001 Input constant for IR 009. Settings are same as with IR 001 Not used Interrupt enabled on IR 00000. (0: regular input; 1: interrupt input; 2: fast-reaction input) Interrupt enabled on IR 00001. (0: regular input; 1: interrupt input; 2: fast-reaction input) Interrupt enabled on IR 00002. (0: regular input; 1: interrupt input; 2: fast-reaction input)
00 - 15 00 - 15 00 - 07 08 - 15
Cycle Time Settings (DM 6615 - DM 6619) take effect after the transfer to PC area, next time you start working
DM 6618
00 - 07 08 - 15
DM 6619
00 - 15
Interrupt Processing (DM 6620 - DM 6639) take effect after the transfer to PC area, next time you start working DM 6620 00 - 03 04 - 07 08 - 11 12 - 15 DM 6621 00 - 07 08 - 15 DM 6622 DM 6623 DM 6624 DM 6625 DM 6626 - DM 6627 DM 6628 00 - 07 08 - 15 00 - 07 08 - 15 00 - 07 00 - 07 08 - 15 00 - 15 00 - 03 04 - 07 08 - 11
12 - 15
Interrupt enabled on IR 00003. (0: regular input; 1: interrupt input; 2: fast-reaction input) Not used High-speed counter mode. 0: counting up/down; 4: incremental mode High-speed counter reset mode. 0: Z phase and software reset; 1: software reset only High-speed counter enable. 0: high-speed counter not used; 1: highspeed counter used with settings 00-07 Not used Not used Port settings. 00: standard (1 start bit, even parity, 2 stop bits, 9600bps); 01: Settings in DM 6651 (settings other than this cause error and turn on AR 1302) Area for 1:1 connection with a PC via peripheral port. 0: LR00-LR15 Modes of communication. 0: Host link; 2: one-to-one PC link (slave); 3: one-to-one PC link (master); 4: NT link (settings other than this cause error and turn on AR 1302) Baud rate. 00: 1200 bps; 01: 2400 bps; 02: 4800 bps; 03: 9600 bps; 04: 19200 bps Frame format (Start bits/Data bits/Stop bits/Parity). 00:1/7/1/even; 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/7/1/even; 07:1/7/1/odd; 08:1/7/1/none; 09:1/7/2/even; 10:1/7/2/odd; 11:1/7/2/none (settings other than this cause error and turn on AR 1302) Host Link Transmission Delay (0000 - 9999ms) other than this cause error and turn on AR 1302) Host Link (00 - 31 BCD) other than this cause error and turn on AR 1302) Not used Not used Style. 0: move after 7 records; 1: keep only first 7 (no moving); no records Not used Cycle Time monitor Enable. 0: detect long cycles as non-fatal errors; 1: do not detect long cycles Not used 2-F: (settings (settings
High-speed counter settings (DM 6640-DM 6644) take effect after the transfer to PC area, next time you start working DM 6640 - DM 6641 DM 6642 00 - 15 00 - 03 04 - 07 08 - 15 DM 6643 - DM 6644 DM 6645 - DM 6649 DM 6650 00 - 15 00 - 15 00 - 07 08 - 11 12 - 15 DM 6651 00 - 07
08 - 15
DM 6652 DM 6653
00 - 15 00 - 07 08 - 15
DM 6654
00 - 15
Error log settings (DM 6655) take effect after the transfer to PLC controller DM 6655 00 - 03 04 - 07 08 - 11 12 - 15
Previous page
Table of contents
Next page