Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 3 of 39

Series 90-30/20/Micro PLC CPU Instruction Set Reference Manual, pages 18 to 27

Pages 18 to 27 of 337: Chapter 1 - Introduction; Chapter 2 - System Operation

The original document is the PDF (4.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the GE Fanuc IC692CPU211D / IC692MDR541C, Fanuc IC692CPU211D / IC692MDR541C, GE IC692CPU211D / IC692MDR541C and GE Fanuc IC693CPU311X

Page 18

Chapter

Introduction

1 The Series 90-30, 90-20, and Micro PLCs are members of the GE Fanuc Series 90 family of Programmable Logic Controllers (PLCs). They are easy to install and configure, offer advanced programming features, and are compatible with the Series 90-70 PLCs. The 341 and lower Series 90-30 PLCs and Series 90-20 PLC use an 80188 microprocessor. The 35x and 36x series of 90-30 PLCs use an 80386EX microprocessor. The 37x series of 90-30 PLCs use a 586 microprocessor. The Series 90 Micro PLC uses the H8 microprocessor. Both program execution and basic housekeeping tasks such as diagnostic routines, input/output scanners, and alarm processing are supported. The system firmware also contains routines to communicate with the programmer. These routines provide for the upload and download of application programs, return of status information, and control of the PLC. In the Series 90-30 PLC, the application (user logic) program that controls the end process to which the PLC is applied is controlled by a dedicated Instruction Sequencer Coprocessor (ISCP). The ISCP is implemented in hardware in the Model 313 and higher and in software in the Model 311 systems, and the Micro PLC. The microprocessor and the hardware-based ISCP can execute simultaneously, allowing the microprocessor to service communications while the ISCP is executing the bulk of the application program; however, the microprocessor must execute the nonBoolean function blocks. Faults occur in the Series 90-30 PLC, Series 90-20 PLC, and the Micro PLC when certain failures or conditions happen that affect the operation and performance of the system. These conditions may affect the ability of the PLC to control a machine or process. Other conditions may only act as an alert, such as a low battery signal to indicate that the voltage of the battery protecting the memory is low and should be replaced. The condition or failure is called a fault. Faults are handled by a software alarm processor function that records the faults in either the PLC fault table or the I/O fault table. (Model 331 and higher CPUs also time-stamp the faults.) These tables can be displayed through the programming software on the PLC Fault Table and I/O Fault Table screens in Logicmaster 90-30/20/Micro software using the control and status functions.

Note Floating-point capabilities are only supported on the 35x and 36x series CPUs Release 9 or later, and on all releases of CPU352 and CPU374. The CPU364 (release 9.10 or later) and the CPU374 are the only Series 90-30 CPUs that support Ethernet Global Data (EGD).

GFK-0467M

1-1

Page 19

1 The Series 90-20 PLC provides a cost-effective platform for low I/O count applications. The primary objectives of the Series 90-20 PLC are as follows: •

To provide a small PLC that is easy to use, install, upgrade, and maintain.

•

To provide a cost-effective family-compatible PLC.

•

To provide easier system integration through standard communication hardware and protocols.

The Series 90 Micro PLC also provides a cost-effective platform for lower I/O count applications. The primary objectives of the Micro PLC are the same as those for the Series 90-20. In addition, the Micro offers the following: •

The Micro PLC has the CPU, power supply, inputs and outputs all built into one compact device.

•

Most models also have a high speed counter.

•

Because the CPU, power supply, and inputs and outputs are all built into one device, it is very easy to configure.

Note For additional information, see the appendices in the back of this manual. •

Appendix A lists the memory size in bytes and the execution time in microseconds for each programming instruction.

•

Appendix B describes how to interpret the message structure format when reading the PLC and I/O fault tables.

•

Appendix C lists instruction mnemonics for searching or editing a program.

•

Appendix D lists the special keyboard assignments used in the Logicmaster 90-30/20/Micro Software.

•

Appendix E describes the use of floating-point math operations.

Note to Windows-Based PLC Programming Software Users This manual was written for Logicmaster (a DOS-based PLC programming software) users. The Windows-based PLC software products, such as CIMPLICITY® Machine Edition Logic Developer and VersaPro®, provide PLC instruction set information in the software’s built-in on-line help system rather than in a manual. Users of the Windows-based programming software should be aware that instructions appear differently from the way they appear on a Logicmaster screen (they still work the same in the PLC). The online help system has the most accurate information about using the instruction set in the Windows-based programming software. For a summary of major differences between the two software types, refer to Appendix F.

1-2

Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual – May 2002

GFK-0467M

Page 20

Chapter

System Operation

2 This chapter describes certain system operations of the Series 90-30, 90-20, and Micro PLC systems. These system operations include:

GFK-0467M

•

A summary of PLC sweep sequences (Section 1).....................................................2-2

•

Program organization and user references/data (Section 2)....................................2-17

•

Power-up and power-down sequences (Section 3) .................................................2-31

•

Clocks and timers (Section 4) .................................................................................2-35

•

System security through password assignment (Section 5).....................................2-38

•

Series 90-30 I/O modules (Section 6).....................................................................2-40

2-1

Page 21

2

Section 1: PLC Sweep Summary The logic program in the Series 90-30, 90-20, and Micro PLCs executes repeatedly until stopped by a command from the programmer or a command from another device. The sequence of operations necessary to execute a program one time is called a sweep. In addition to executing the logic program, the sweep includes obtaining data from input devices, sending data to output devices, performing internal housekeeping, servicing the programmer, and servicing other communications. Series 90-30, 90-20, and Micro PLCs normally operate in STANDARD PROGRAM SWEEP mode. Other operating modes include STOP WITH I/O DISABLED mode, STOP WITH I/O ENABLED mode, and CONSTANT SWEEP mode. Each of these modes, described in this chapter, is controlled by external events and application configuration settings. The PLC makes the decision regarding its operating mode at the start of every sweep.

Standard Program Sweep STANDARD PROGRAM SWEEP mode normally runs under all conditions. The CPU operates by executing an application program, updating I/O, and performing communications and other tasks. This occurs in a repetitive cycle called the CPU sweep. There are seven parts to the execution sequence of the Standard Program Sweep:

2-2

1.

Start-of-sweep housekeeping

2.

Input scan (read inputs)

3.

Application program logic solution

4.

Output scan (update outputs)

5.

Programmer communications

6.

System communications

7.

Diagnostics

Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual – May 2002

GFK-0467M

Page 22

2 All of these steps execute every sweep. Although the Programmer Communications Window opens each sweep, programmer services only occur if a board fault has been detected or if the programming device issues a service request; that is, the Programmer Communications Window first checks for work to do and exits if there is none. The sequence of the standard program sweep is shown in the following figure.

a43064A START-OF-SWEEP HOUSEKEEPING

I/O ENABLED ?

HOUSEKEEPING

NO

YES DATA INPUT

INPUT SCAN

RUN MODE ?

NO

YES LOGIC SOLUTION

I/O ENABLED ? YES OUTPUT SCAN

PROGRAMMER COMMUNICATIONS

SYSTEM COMMUNICATIONS

PROGRAM EXECUTION

SCAN TIME OF PLC

NO

DATA OUTPUT

PROGRAMMER COMMUNICATIONS

SYSTEM COMMUNICATIONS

RECONFIGURATION USER PROGRAM CHECKSUM CALCULATION

CHECKSUM CALCULATION

START NEXT SWEEP

Figure 2-1. PLC Sweep

GFK-0467M

Chapter 2 System Operation

2-3

Page 23

2 As shown in the PLC sweep sequence, several items are included in the sweep. These items contribute to the total sweep time as shown in the following table. Table 2-1. Sweep Time Contribution Sweep Element

Description •

Calculate sweep time

•

Schedule start of next sweep

•

Determine mode of next sweep

•

Update fault reference tables

•

Reset watchdog timer

Housekeeping

2-4

Time Contribution (milliseconds) 4 Micro

211

311/313

331

34x

35x/36x

0.368

0.898

0.714

0.705

0.424

See Tables 2-2 and 2-3 for scan time contributions

0.279

37x

0.027

Data Input

Input data is received from input and option modules

Note 5

Program Execution

User logic is solved

Execution time is dependent upon the length of the program and the types of instructions used in the program. Instruction execution times are listed in Appendix A.

Data Output

Output data is sent to output and option modules

1.656

See Tables 2-2 and 2-3 for scan time contributions

Service requests from programming devices and intelligent modules are processed1

HHP

1.93

6.526

4.426

4.524

2.476

0.334

N/A

Programmer and System Communications

Programmer

0.380

3.536

2.383

2.454

1.248

0.517

0.026

PCM2

N/A

N/A

N/A

3.337

1.943

0.482

0.029

Reconfiguration

Slots with faulted modules and empty slots are monitored

N/A6

N/A

0.458

0.639

0.463

0.319

0.243

Diagnostics

Verify user program integrity (time contribution is the time required per word checksummed each sweep) 3

N/A7

0.083

0.050

0.048

0.031

0.010

0.022

1.

The scan time contribution of external device service is dependent upon the mode of the communications window in which the service is processed. If the window mode is LIMITED, a maximum of 8 milliseconds for the 311, 313, 323, and 331 CPUs and 6 milliseconds for the 340 and higher CPUs will be spent during that window. If the window mode is RUN-TO-COMPLETION, a maximum of 50 milliseconds can be spent in that window, depending upon the number of requests which are presented simultaneously.

2.

These measurements were taken with the PCM physically present but not configured and with no application task running on the PCM.

3.

The number of words checksummed each sweep can be changed with the SVCREQ function block.

4.

These measurements were taken with an empty program and the default configuration. The Series 90-30 PLCs were in an empty 10-slot rack with no extension racks connected. Also, the times in this table assume that there is no periodic subroutine active; the times will be longer if a periodic subroutine is active.

5.

The data input time for the Micro PLC can be determined as follows: 0.365ms (fixed scan) + 0.036ms (filter time) x (total sweep time) / 0.5ms.

6.

Since the Micro PLC has a static set of I/O, reconfiguration is not necessary.

7.

Since the user program for the Micro PLC is in Flash memory, it will not be checked for integrity.

Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual – May 2002

GFK-0467M

Page 24

2

Table 2-2. I/O Scan Time Contributions (in milliseconds) for Series 90-30 35x, 36x and 37x CPUs 35x and 36x Series CPUs Module Type

37x Series CPUs

Main Expansion Remote Rack Rack Rack

Main Rack

Expansion Rack

Remote Rack

.030 .030 .043 .030 .030 .042 .060 .075 .058 .978

.055 .055 .073 .053 .053 .070 .112 .105 .114 1.446

.206 .206 .269 .197 .197 .259 .405 .396 .402 3.999

.030 .030 .048 .024 .030 .047 .052 .085 .046 .423

.055 .055 .075 .052 .052 .069 .110 .109 .101 .700

.206 .206 .272 .198 .199 .258 .408 .403 .393 1.741

1.274 1.220 1.381 1.574 .7129 1.527 1.807 2.143 2.427 2.864 1.6 2.2 2.8 3.3

1.988 1.999 2.106 2.402 2.067 2.581 2.864 3.315 3.732 4.317 2.6 3.8 4.3 5.2

4.472 4.338 5.221 6.388 3.681 6.388 7.805 9.527 11.092 13.138 6.9 9.9 13.0 15.9

.873 .862 1.142 1.270 .426 1.236 1.539 1.801 2.075 2.441 1.330 1.888 2.421 2.969

1.492 1.487 1.808 2.125 .795 2.073 2.439 2.963 3.373 3.931 2.337 3.148 3.953 4.761

3.635 4.103 5.234 6.269 2.302 6.032 7.369 9.275 10.840 12.881 6.905 9.917 12.929 15.982

8 32-bit devices no devices 32 64-word devices no devices 16 64-word devices not configured, or no application task running 20Kb application program

8.826 .567 19.497 .798 29.976 .476

16.932 .866 25.588 1.202 40.570 N/A

21.179 1.830 80.871 2.540 131.702 N/A

7.386 .457 17.036 .544 26.976 .195

9.520 .759 24.390 .908 38.564 N/A

20.591 1.743 80.044 2.209 130.639 N/A

1.746

N/A

N/A

.538

N/A

N/A

ADC (no task) I/O Link no devices Master sixteen 64-point devices I/O Link 32-point Slave 64-point

.476 .569 4.948 .087 .154

N/A .865 7.003 .146 .213

N/A 1.932 19.908 .553 .789

.193 .996 5.924 .095 .165

N/A 1.618 8.240 .149 .219

N/A 3.749 26.637 .540 .803

8-point discrete input 16-point discrete input 32-point discrete input 8-point discrete output 16-point discrete output 32-point discrete output Combination discrete input/output 4-channel analog input 2-channel analog output 16-channel analog input (current or voltage) 8-channel analog output Combination analog input/output High Speed Counter I/O Processor Ethernet Interface (no connection) Power Mate APM (1-axis) Power Mate APM (2-axis) DSM 302 * 40 AI, 6 AQ 50AI, 9 AQ 64 AI, 12 AQ DSM314 * 1 Axis Configured 2 Axes Configured 3 Axes Configured 4 Axes Configured GCM GCM+ GBC PCM 311

* For applications where the DSM’s contributions to scan time will affect machine operation you may need to use the Do I/O function block, and the Suspend I/O and Fast Backplane Status Access service requests to transfer necessary data to and from the Motion module without getting all the data every scan. For the DSM302, refer to the Motion Mate DSM302 for Series 90-30 PLCs User’s Manual, GFK1464 for details. For the DSM314, refer to the Motion Mate DSM314 for Series 90-30 PLCs User’s Manual, GFK1742 for details. NOTE: The DSM314 will only work with the CPUs 350, 352, 360, 363, 364, and 374 and only with CPU firmware version 10.00 or later.

GFK-0467M

Chapter 2 System Operation

2-5

Page 25

2

Table 2-3. I/O Scan Time Contributions (in milliseconds) for the Series 90-30 CPU311 through CPU341 CPU Model Module Type

331 311/313 /323

Main Rack

Expansion Rack

340/341 Remote Rack

Main Rack

Expansion Rack

Remote Rack

8-point discrete input

.076

.054

.095

.255

.048

.089

.249

16-point discrete input

.075

.055

.097

.257

.048

.091

.250

32-point discrete input

.094

.094

.126

.335

.073

.115

.321

8-point discrete output

.084

.059

.097

.252

.053

.090

.246

16-point discrete output

.083

.061

.097

.253

.054

.090

.248

32-point discrete output

.109

.075

.129

.333

.079

.114

.320

8-point combination input/output

.165

.141

.218

.529

.098

.176

.489

4-channel analog input

.151

.132

.183

.490

.117

.160

.462

2-channel analog output

.161

.138

.182

.428

.099

.148

.392

High-Speed Counter

2.070

2.190

2.868

5.587

1.580

2.175

4.897

Power Mate APM (1-axis)

2.330

2.460

3.175

6.647

1.750

2.506

5.899

Power Mate APM (2-axis)

3.181

3.647

4.497

9.303

2.154

3.097

7.729

DSM 302*

GCM GCM+

40 AI, 6 AQ

3.613

4.081

5.239

11.430

2.552

3.648

9.697

50AI, 9 AQ

4.127

4.611

5.899

13.310

2.911

4.170

11.406

64 AI, 12 AQ

4.715

5.276

6.759

15.747

3.354

4.840

13.615 no devices

.041

.054

.063

.128

.038

.048

.085

8 64-point devices

11.420

11.570

13.247

21.288

9.536

10.648

19.485 no devices

.887

.967

1.164

1.920

.666

.901

1.626

32 64-point devices

4.120

6.250

8.529

21.352

5.043

7.146

20.052 not configured, or no application task

N/A

3.350

N/A

N/A

1.684

N/A

N/A read 128 %R as fast as possible

N/A

4.900

N/A

N/A

2.052

N/A

N/A

ADC 311

N/A

3.340

N/A

N/A

1.678

N/A

N/A

16-channel analog input (current or voltage)

1.370

1.450

1.937

4.186

1.092

1.570

3.796

I/O Link Master no devices

1.910

2.030

1.169

1.925

.678

.904

1.628 sixteen 64-point devices

6.020

6.170

8.399

21.291

4.992

6.985

20.010

I/O Link Slave

32-point

.206

.222

.289

.689

.146

.226

.636

64-point

.331

.350

.409

1.009

.244

.321

.926

PCM 311

* For applications where the DSM’s contributions to scan time will affect machine operation you may need to use the Do I/O function block, and the Suspend I/O and Fast Backplane Status Access service requests to transfer necessary data to and from the Motion module without getting all the data every scan. Refer to the Motion Mate DSM302 for Series 90-30 PLCs User’s Manual, GFK1464 for details. NOTE: The DSM314 is not supported by the 311 through 341 CPUs.

2-6

Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual – May 2002

GFK-0467M

Page 26

2

Sweep Time Calculation Table 2-1 lists the seven items that contribute to the sweep time of the PLC. The sweep time consists of fixed times (housekeeping and diagnostics) and variable times. Variable times vary according to the I/O configuration, size of the user program, and the type of programming device connected to the PLC.

Example of Sweep Time Calculation An example of the calculations for determining the sweep time for a Series 90-30 model 331 PLC are shown in the table below. The modules and instructions used for these calculations are listed below: •

Input modules: five 16-point Series 90-30 input modules.

•

Output modules: four 16-point Series 90-30 output modules.

•

Programming instructions: A 1200-step program consisting of 700 Boolean instructions (LD, AND, OR, etc.), 300 output coils (OUT, OUTM, etc.), and 200 math functions (ADD, SUB, etc.). Time Contribution

Sweep Component

GFK-0467M

Calculation

Without Programmer

With HHP

With Logicmaster

Housekeeping

0.705ms

0.705ms

0.705ms

0.705ms

Data Input

0.055 x 5 = 0.275ms

0.275ms

0.275ms

0.275ms

Program Execution

1000 x 0.4µs* + 200 x 89µs** + 18.2ms

18.2ms

18.2ms

18.2ms

Data Output

0.061 x 4 = 0.244ms

0.244ms

0.244ms

0.244ms

Programmer Service

0.4ms + programmer time + 0.6ms

0ms

4.524ms

2.454ms

NonProgrammer Service

None in this example

0ms

0ms

0ms

Reconfiguration

0.639ms

0.639ms

0.639ms

0.639ms

Diagnostics

0.048ms

0.048ms

0.048ms

0.048ms

PLC Sweep Time

Housekeeping + Data Input + Program Execution + Data Output + Programmer Service + Non-Programmer Service + Diagnostics

12.611ms

17.135ms 15.065ms

Chapter 2 System Operation

2-7

Page 27

2 PLC Sweep Details This section discusses details of the major portions of the PLC Sweep: 1.

Housekeeping

2.

Input Scan

3.

Application Program Logic Scan

4.

Output Scan

5.

Programmer Service

6.

System Communications

7.

Reconfiguration

8.

Checksum Calculation

1. Housekeeping The housekeeping portion of the sweep performs all of the tasks necessary to prepare for the start of the sweep. If the PLC is in CONSTANT SWEEP mode, the sweep is delayed until the required sweep time elapses. If the required time has already elapsed, the OV_SWP %SA0002 contact is set, and the sweep continues without delay. Next, timer values (hundredths, tenths, and seconds) are updated by calculating the difference from the start of the previous sweep and the new sweep time. In order to maintain accuracy, the actual start of sweep is recorded in 100 microsecond increments. Each timer has a remainder field which contains the number of 100 microsecond increments that have occurred since the last time the timer value was incremented.

2. Input Scan Scanning of inputs occurs during the input scan portion of the sweep, just prior to the logic solution. During this part of the sweep, all Series 90-30 input modules are scanned and their data stored in %I (discrete inputs) or %AI (analog inputs) memory, as appropriate. Any global data input received by a Genius Communications Module (GCM), an Enhanced Genius Communications Module (GCM+), or a Genius Bus Controller (GBC) is stored in %G memory. Modules are scanned in ascending reference address order, starting with any installed Genius Module, then discrete input modules, and finally analog input modules. If the CPU is in STOP mode and the CPU is configured to not scan I/O in STOP mode, the input scan is skipped.

3. Application Program Logic Scan or Solution The application program logic scan occurs immediately following the completion of the input scan. The application program logic scan performs two main tasks: (1) solving/executing the program logic and (2) updating %Q, %AI, and %AQ output memory. (Output modules, however, are not updated until the output scan occurs). In general, ladder logic is solved from left to right and top to bottom, although this flow direction can be altered temporarily by subroutine calls and jumps. The

2-8

Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual – May 2002

GFK-0467M