Motorola 89FT4840 User Manual

Motorola Inc.1999
All rights reserved
ToolBox for MOSCAD
For Programming ToolBox Versi on 7. 51

RTUs
System Overview
COMMERCIAL WARRANTY (STANDARD)
Motorola radio communic ations products are warranted to be free from defects in mat eri al and workmanship for a period of ONE (1) YEAR, (except for c rystals and channel element s which are warranted for a period of ten (10) years), from the date of shipm ent . Parts, including crystals and channel elements, will be replaced free of charge for t he f ull warranty period but the labor to replace defective parts will only be provided for one Hundred-Twenty (120) days from the date of shipment. Thereafter purchaser must pay for the labor involved in repairing the product or replacing the parts at the prevailing rates together with any transportation charges t o or f rom the place where warranty service is provided. This express warranty is extended by Motorola Communications and Elect roni cs Inc., 1301 E. Al gonqui n Road, Schaumburg, Illinois 60196, to the original purchaser only, and only to those purchasing for purpose of leasing or solely for comm ercial, industrial, or governmental use.
THIS WARRANTY IS GIVEN IN LIEU OF ALL OTHER WARRANTIES EXPRESS OR IMPLIED WHICH ARE SPECIFICALLY EXCLUDED, INCLUDING WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MOTOROLA BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES TO THE FULL EXTENT SUCH MAY BE DISCLAIMED BY LAW.
In the event of a defect, malfunction or failure t o conform to specif i cations established by s el l er, or if appropriate, to specifications accept ed by Seller in writing, during t he period shown, Motorola, at its option, will either repair or replace the product or refund the purchase price thereof, and such action on the part of Motorola shall be the full extent of Motorola’s liability hereunder.
This warranty is void if:
a. the product is used in other t han i ts normal and customary manner; b. the product has been subject to misuse, acci dent neglect or damage; c. unauthorized alt erat ions or repairs have been made, or unapproved parts used in the equipment.
This warranty extends only to individual products, batteries are excluded, but carry their own separate limited warranty. Because each radio system is unique, Motorola disclaims liability for range, c overage, or operat ion of the system as a whole under this warranty except by a separate written agreement s igned by an officer of Motorola.
Non-Motorola manufactured product s are excluded from this warranty, but s ubj ect to the warranty provided by their manufacturers, a copy of which will be supplied to you on spec if ic written request.
In order to obtain performance of this warranty, purchaser must contact its Moto rol a salesperson or Motorola at the address first above shown, att ention Quality Assurance Department.
This warranty applies only within the United S t ates.
COMPUTER SOFTWARE COPYRIGHTS
The Motorola products described in t hi s instruction manual may include copyrighted Motorola computer programs stored in semi conductor memories or other media. Laws in the United Stat es and other countries preserve for Motorola certain exclusive rights for copyrighted computer programs including the exclusive right to copy or reproduce in any form the copyrighted computer program. Accordingly, any copyrighted Motorola computer programs contained in the Motorola products described in t hi s instruction manual may not be copied or reproduced in any manner without the express written permission of Motorol a. Furthermore, the purchase of Motorol a products shall not be deemed t o grant either directly or by impli cation, estoppel, or otherwise, any l i cense under the copyrights, patents or patent applications of Motorola, except for the normal non-exclusive, royalty free license t o use that arises by operation of law in the sale of a product.

Table of Contents

GENERAL ..............................................................................................................................................................III
Glossary...........................................................................................................................................................iii
Terms and Conventions....................................................................................................................................vi
MOSCAD RTU And ToolBox Software Version Policy ...................................................................................vii
Applicable Documentation...............................................................................................................................viii
Model Complements.........................................................................................................................................ix
Options.............................................................................................................................................................x
Accessories.......................................................................................................................................................xi
HE MOSCAD SYSTEM -OVERVIEW................................................................................................................... 1
T
The MOSCAD System ......................................................................................................................................1
Control Center ..............................................................................................................................................................1
Remote Terminal Unit (RTU)....................................................................................................................................... 2
Communication Processor/MODBUS (MCP-M).........................................................................................................2
Communication Processor/TCP/IP (MCP-T)................................................................................................................2
ToolBox for MOSCAD RTUs ...........................................................................................................................3
Features and Functions.................................................................................................................................................3
The RTU Programming Concept.................................................................................................................................. 3
Programming Sequence................................................................................................................................................ 4
RTU Definition.................................................................................................................. ........................................... 4
Communication Network..................................................................................................................................6
The RTUs and the Network..........................................................................................................................................7
Communication Links...................................................................................................................................................7
Communication Types.................................................................................................................................................. 7
Network Configurations ...............................................................................................................................................8
Starting a ToolBox Application........................................................................................................................ 15
Entering the Password .................................................................................................................................................. 15
Changing the Session Password.................................................................................................................................... 15
THE TOOLBOX FOR MOSCAD RTUS...................................................................................................................16
Hardware and Software Requirements ............................................................................................................16
Installing ToolBox............................................................................................................................................16
Connecting ToolBox to RTU ............................................................................................................................16
A Brief Tour .....................................................................................................................................................16
The RTU....................................................................................................................................................................... 16
Database Principles....................................................................................................................................................... 18
Programming Philosophy..............................................................................................................................................20
The Tools..........................................................................................................................................................22
Site Configuration (MOSCAD-L).................................................................................................................................23
Network Configuration................................................................................................................................................. 25
Application Programmer .................................................................................................................................26
Database Builder........................................................................................................................................................... 28
Process Programming................................................................................................................................................... 28
I/O Link ........................................................................................................................................................................29
Compiler....................................................................................................................................................................... 30
Downloading and Monitoring....................................................................................................................................... 31
REMOTE TERMINALUNIT......................................................................................................................................32
The RTU Hardware..........................................................................................................................................32
i
CPU Module................................................................................................................................................................. 32
I/O Modules.................................................................................................................................................................. 38
RTU Software...................................................................................................................................................38
MDLC C
OMMUNICATION PROTOCOL...................................................................................................................40
Physical Layer..................................................................................................................................................41
Link Layer ........................................................................................................................................................41
Network Layer..................................................................................................................................................42
Transportation Layer .......................................................................................................................................42
Session Layer ...................................................................................................................................................42
Presentation Layer...........................................................................................................................................43
Application Layer.............................................................................................................................................43
ii

General

Glossary

This list of terms consists of abbreviations, acronyms and specialized words used in this manual.
Acronyms and Abbreviations
ACK Acknowledge AGA American Gas Association ASL Arithmetical Shift to Left ASR Arithmetical Shift to Right BCD Convert to BCD Format BIN Convert to Binary Format CD Carrier Detect COS Change of State CPU Central Processing Unit CPY Copy CRC Cyclic Redundancy Check CTD Count Down CTS Clear to Send CTU Count Up DBB Data Base Builder DCE Data Communication Equipment DFM Direct Frequency Modulation DOF Delay Off DON Delay On DPL Digital Private Line DPSK Differential Phase Shift Keying DSP Digital Signal Processing DSR Data Set Ready DTE Data Terminal Equipment DTR Data Ready EGU Engineering Units FEP Front End Processor (MCP-M, MCP-T, or FIU) FIU Field Interface Unit FSK Frequency Shift Keying GND Ground GPS Global Positioning System HDLC High -level Data Link Communication HW Hardware I/O Input/Output IGC/M IBM Graphic Center for MOSCAD (old) IMP Integrated Multiprotocol Processor INTRAC Two-layer (32 bits) protocol
iii
General
JMP Jump JSP Jump To Subprocess LED Light Emitting Diode LSL Shift to Left LSR Shift to Right MCP-M Motorola Communication Processor – MODBUS MCP-T Motorola Communication Processor – TCP/IP MDLC MDLC Motorola Data Link Communication (Seven-layer OSI protocol) MEIC Previous generation RTU type MMI Man Machine Interface MODBUS MODICON BUS Protocol MOSCAD Motorola SCADA MOSCAD-L Motorola SCADA-Light MOVE Move Value MOVH Move High MTE Multi Task Environment NACK Negative Acknowledge N.C. Normally Closed N.O. Normally Open NEMA National Electrical Manufacturers Association (issues enclosure
standards) OSI Open System Interconnection OVF Overflow PC Personal Computer PID Proportional Integral Derivative PL Private Line PLC Programmable Logic Controller PPH Pulse per Hour PPS Pulse per Second PSTN Public Switching Telephone Network PTT PushtoTalk(buttononradio) RAM Random Access Memory RET Return RF Radio Frequency ROM Read Only Memory ROR Rotate to Right RNR Receive, Not Ready RR Receive, Ready RST Reset RTS Request to Send RTU Remote Terminal Unit (can be MOSCAD or MOSCAD-L) RUNP Run Process RX Receive SCADA Supervisory Control and Data Acquisition SW Software TDPSK Trunked Differential Phase Shift Keying
iv
TRT Retentive Timer TX Transmit UART Universal Asynchronous Receiver Transmitter UCL User Call Function UDF Underflow XTAL Crystal
Definitions
Upload Load a block of data or code, from the RTU to the ToolBox Download Load a block of data or code, from the ToolBox to the RTU.
General
v

Terms and Conventions

The MOSCAD RTU is shipped in two versions, MOSCAD RTU and MOSCAD-L RTU. Most of the features described in the MOSCAD documentation are common to MOSCAD and MOSCAD-L. Throughout the documentation the terms “RTU” and “MOSCAD” refer to the “generic” system. Differences are indicated by specific references to MOSCAD and MOSCAD-L.
RTUs and MCP/Ms are “sites”. In the MOSCAD documentation, references to “site” generally mean “RTU” and vice-versa. The MCP/M is a central adapter between SCADA and the field.
The MOSCAD ToolBox package consists of several Windows 95/NT applications, such as Site Configuration and Application Programmer. Throughout the MOSCAD documentation the application names are printed in initial capitals.
Some features are valid from a certain version of Programming ToolBox. as specified using the Va.b notation. See MOSCAD RTU And ToolBox Software Version Policy.
General
vi

MOSCAD RTU And ToolBox Software Version Policy

The version numbers of the Programming ToolBox and MOSCAD RTU system software are updated according to additional features and improvements.
Compatibility (at source level) between the Programming ToolBox and the MOSCAD RTU is assured only if the version number of the Programming ToolBox Software is later
than the version number of the MOSCAD RTU system software.
A version number is composed of two numbers, as in the following example: V1.61. The one-digit number to the left of the decimal point describes a major modification of the software, while the two-digit number to the right of the decimal point describes a minor modification.
In this manual, some headings of major subjects are marked by the following annotation:
Va.b.
For example, V1.61 indicates that the marked subject is supported by an RTU whose MOSCAD software version number is at least 1.61.
General
This numbering convention applies to MOSCAD-L as well, except for the versions below: If no version number is specified, then that feature is supported by all versions of MOSCAD and MOSCAD-L.
MOSCAD-L Version Supported by
ToolBox Version
1.0x 5.01
2.0x 6.00
2.40 6.50
vii

Applicable Documentation

The MOSCAD system includes the following manuals:
ToolBox for MOSCAD RTUs, MOSCAD Programming ToolBox - Overview,
Motorola publication no. 68P02956C45
ToolBox for MOSCAD RTUs, MOSCAD Programming ToolBox - System Setup &
Diagnostic Tools,
Motorola publication no. 68P02956C50
ToolBox for MOSCAD RTUs, MOSCAD Programming ToolBox - Application
Programmer,
Motorola publication no. 68P02956C55
ToolBox for MOSCAD RTUs, MOSCAD Programming ToolBox - Third Party
Protocols Support, Modbus and Allen Bradley,
Motorola publication no. 68P02956C70
ToolBox for MOSCAD RTUs, MOSCAD Programming ToolBox C Toolkit,
Motorola publication no. 68P02956C75
General
ToolBox for MOSCAD RTUs, MOSCAD Programming ToolBox - AGA8 Gas Flow
Calculations,
Motorola publication no. 68P02957C10
MOSCAD RTU Service manual,
Motorola publication no. 68P02991G90
MOSCAD RTU Owner's manual,
Motorola publication no. 68P02994G10
MCP/M User’s Manual,
Motorola publication no. 68P02945C05-0.
viii

Model Complements

F2316 MOSCAD Programming ToolBox
FVN4126 Program Software Package on CD-ROM + Manuals FLN6457 RS232 T e rminal Adapter Cable + Adapters
General
ix

Options

V377 Third Party Protocols
V378 AC Analyzer Toolkit
V284 AGA8 Gas Flow Calculations
V212 Master Key Diskette
V385 X.25 option for ToolBox
V204 MDLC over IP option for ToolBox
General
FVN4119 Third Party Protocols
FVN 4335 AC Analyzer Toolkit
FVN 4334 AGA8 Gas Flow Calculations
FVN 4396 Master Key Diskette
FVN 4730 X.25 option for ToolBox
FVN 4782 MDLC over IP option for ToolBox
x

Accessories

FVN1710 Upgrade ToolBox
FVN4126 Program Software Package on CD-ROM + Manuals FVN4334 AGA8 Gas Flow Calculations + Manual FVN4119 Third Party Protocols FVN4335 AC Analyzer Toolkit FVN4396 Master Key Diskette FLN2391 “C” Toolkit Package + Manual
General
xi

The MOSCAD System - Overview

MOSCAD Programming ToolBox is a package of computer programs that builds sophisticated distributed SCADA (Supervisory Control and Data Acquisition) systems for a wide range of applications.
The MOSCAD (Motorola SCADA) system consists of remote terminal units (RTU) and one or more computerized control centers, connected to a communication network via the Communication Processor/TCP/IP (MCP-T) or the Communication Processor/MODBUS (MCP-M). The Programming ToolBox software package runs on a Pentium 100 (or more powerful) computer.
The main function of the Programming ToolBox is to define and maintain the MOSCAD system according to user needs and requirements.
The Programming ToolBox also enables the engineer to program/download the application program to be executed in the RTU and to perform debugging in each RTU, using a symbolic (graphic) debugging tool. The Programming ToolBox may be operated either locally by direct connection to the selected unit’s computer port, or remotely, by connection to a computer port of any other RTU in the system (MCP-M, MCP-T, or RTU) via the system communication network.
By connecting the Programming ToolBox to a computer port of one of the RTUs, MCP-Ms, or MCP-Ts in the system, you can program or service that specific RTU or any other RTU in the system.

The MOSCAD System

The entire control system is comprised of the SCADA central computer as a master station, communicating with RTUs over various communication links, such as conventional radio, trunked radio, microwave, wireline, or dial system (telephone). The communication system is used for transmitting alarms, status information, telemetric readings, calculated data, diagnostics, and error logging information from the RTUs to the central facility computer and vice versa. It is also used for downloading, monitoring, and debugging the application program at the site.
The system can be relatively simple, comprising several RTUs and a control center, or a more complicated hierarchical system, where several sub-centrals communicate with lower, parallel and higher hierarchies. The RTUs may also communicate with each other and/or with any other hierarchy in the system.

Control Center

The control center computer, with the user i nterface, provides the user with full graphic control of the RTUs’ operation, including database and parameter changes, and on-line application monitoring for the system engineer. The central computer and MCP-M communicate using the MODBUS protocol; MCP-T uses the TCP/IP protocol.
1
One of the functions of the control center is to exchange data with the RTUs. It may interrogate the RTUs for any portion of their database. Multiple interrogation (polling) cycles operate with different priorities and by different trigger mechanisms (time or events).

Remote Terminal Unit (RTU)

The RTU is a smart modular unit designed to operate as a stand-alone controller or as part of a system having any number of RTUs, control centers, and sub-centrals connected through a communication network with any number of links and nodes.
The RTU is configured and loaded with the appropriate application using the Programming ToolBox.
The RTU is a microprocessor-based unit, which consists of a CPU module and various I/O and communication modules. The very wide range of I/O and communication modules makes the MOSCAD system flexible to satisfy any application requirements. MOSCAD-L, on the other hand, is a lighter version with a limited number of I/O modules and fewer features.
The MCP-M and the RTUs communicate using the MDLC protocol, based on the seven layers of the OSI (Open Systems Interconnection) model published by ISO, and adapted for SCADA communications. The protocol provides network support and multiple logical channels per physical port, enabling simultaneous central-to-RTU and RTU-to-RTU sessions. It also enables each RTU to simultaneously run several communication sessions, such as data exchange, on-line monitoring, diagnostics, etc.
The MOSCAD System - Overview
The RTU is discussed in more detail later in this manual. For technical information, consult the Owner’s manual and the Service manual.
Note that throughout the ToolBox documentation, the terms RTU and unit are used interchangeably.

Communication Processor/MODBUS (MCP-M)

The MCP-M is an intelligent, intermediary unit that ensures communications between the control center and the RTUs. Its pre-loaded application and database allow it to perform tasks independently, at times when the control center is not active. The MCP­M application and database are dedicated to collecting data from the field and performing scheduling tasks.
The MCP-M is installed in the control center and does not require any further programming: the user only customizes the unit by setting parameters. It can be configured using a ToolBox of its own, which differs from the ToolBox for RTUs covered in this manual.
The communication processor does not have independent I/O capabilities. Any data collection and assessment needs that may arise in the control center premises are met by an additional RTU that is connected to the network like any remote terminal on the field.
2

Communication Processor/TCP/IP (MCP-T)

The MCP-T replaces the MCP-M where only a router that converts TCP/IP (over Ethernet) to M DLC and vice versa, is needed. Unlike MCP-M, it does not have a database or any control capabilities.

ToolBox for MOSCAD RTUs

This section is a brief review of Programming ToolBox, the software package used to configure an RTU system and to build an application.

Features and Functions

The following are the main features of the Programming ToolBox:
Configuring the RTU sites, configuring the network, building and maintaining the
application database and flow
Preparing project documentation for the user
Automatically creating a “central file” to be used later during RTU database
creation in the MCP-M.
The MOSCAD System - Overview
Performing the following functions on any RTU either via local connection or via
the communication network:
Downloading and uploading the site configuration and related data Downloading the application and the network configuration Downloading and uploading the compressed source Downloading C blocks which are run by the application Downloading the phone book Downloading the third-party protocol Real-time symbolic (graphic) monitoring and debugging of the application (both
database and process) Updating the time and the date in RTU sites Testing all hardware modules, including software calibration of analog inputs and
outputs Testing radio channels Retrieving time-tagged events (of very high resolution) logged in the RTUs Synchronizing the system clock according to MCP-M’s or FIU’s time Retrieving errors logged in the RTUs (hardware or software malfunctions) Capturing the data packets on the communication links and analyzing the seven
layers of the MDLC protocol System software diagnostics by object entity names

The RTU Programming Concept

The various circles illustrated below describe the RTU in layers. The first layer is the RTU hardware that is the base for the system software and application (including configuration) software. When the application software runs, the RTU database is updated.
3
The MOSCAD System - Overview
The following figure shows different ways of accessing and modifying each of the RTU layers, using the Programming ToolBox:
Locally by direct connection to the RTU
Remotely via the communication network
p

Programming Sequence

The definition of the RTU application allows the system engineer to build a database as a set of tables. The tables used for the RTU database definition are the basis for process programming, I/O link definition, automatic central database definition, real­time monitoring of the RTU’s operation, etc.
Once the database is built, the RTU application is created using the symbolic Motorola Advanced Ladder Diagram Language. These symbolic definitions are later used for monitoring and debugging.
The necessary RTU application documentation is automatically produced, including automatic insertion of notes into the produced documents.
After downloading the application to the RTU, the control program of the terminal controls the RTU run-time operations. The Programming ToolBox terminal then allows the system engineer to perform any required operation.

RTU Definition

The RTU definition is carried out in three stages, stored as corresponding sections in the RTU:
Site configuration - defining the I/O modules mounted on the RTU, the unit’s ports,
and the site address.
Network configuration - for defining the communications network structure.
Application program - building the application database and flow.
4
Loading...
+ 38 hidden pages