Saia PCD Operating System: Controls
Saia PCD Operating System: Controls
Saia PCD Operating System: Controls
Controls
SAIA®PCD operating system
Breaking the boundaries of PLC based controller technology
Edition 26/354 E3
PCS1
PCD1
PCD2
PCD4
Optimum interaction of operating system, hardware PCD6
and programming tools
Supply ready
2
PCS1
PCD1
PCD2
PCD4
Structure of operating system, hardware and PCD6
programming environment
The SAIA®PCD operating system is the link between the modules, working in fine coordination, guarantee that PLC
programming tools (or user programs written with them) function and communications run perfectly, while allowing
and the controller hardware. It ensures perfect controller access to onboard functions (fast counter, interrupt inputs,
function – as specified by the programming. etc.) of the PCD1/2 hardware. Finally, the BIOS establishes
a connection to the CPU hardware and I/O module drivers
The top position is occupied by the user program, which
allow the smooth operation of I/O modules
may be written with different methods and editors. This
is executed at the appropriate processing level. Individual
PROGRAMMING
R PROGRAM
USE
SOFTWARE
GRAM LIBR
PRO
(PG5)
D AR
PC Y
A IL HM
UPL I
LA/F CO
P
KO
RUCTION
N
ST
FI
GU
N
C
RA
SYSTEM
FTE
RATING
SE
(FIRMWARE)
TOR
CTEC COMM
OPE-
IL
GRA
LO
T
S
B
UN
GRAFTEC
ICATION
PCD
KERNEL
HARDWARE
Coun
figures communications
The interpreter, which channels.
ters
instructions.
mode
RR
up to six communications
CA
lem
channels, depending on IO
Tex de
IN
T
N
mo
output of information
ee
requirements.
t
blocks.
m
Ti
Processing levels
Processing levels are produced by organization purpose of this cold-start block is to execute the pro- Supply on/
blocks, which are called automatically by the operat- cess initialization that is needed for the application.
ing system in RUN mode. The event-controlled XOB It is followed by cyclical organization blocks COB0…
Start-up
blocks have the highest priority, with XOB16 being COB15 and sequential blocks SB0…SB31, which deal
called when the controller is switched on or after a with progressive process sequences.
“Restart Cold”, after which it cannot be repeated. The
XOB16
Program structure in BLOCTEC
With structured programming the user program is Cyclic organization block COB
broken down into small, self-contained program and In a BLOCTEC structure, the COB organization block
E(nd)XOB16
function blocks, with each block forming part of the defines the sequence in which the program will be
overall program. This structure saves time and costs processed. It contains calls to the program and func-
when writing a program. In addition, a structured tion block subroutines. When the called block has
program makes error detection easier during com- been processed, the program returns to the COB and COB 0
missioning or maintenance. continues from there. When the last instruction in a
COB has been processed, the processor starts on the
first instruction in the next COB.
COB 0 PB 5 FB 7 PB 27 C(all)PB
CPB 5 CFB 7 ..... Program block PB
CFB
A PB contains operations which belong together be- C(all)SB
EFB EPB cause of their functionality. For practical reasons, any
process to be controlled should always be divided into
CPB 9 PB PB 17 its mechanical or electrical functional units. Each of
EPB ..... these units will be assigned to a PB. E(nd)COB 0
CPB 5 EPB EPB
Function block FB
FB 2 Frequently recurring functions are programmed in
CFB 2 FBs. They can be viewed as subroutines and contain
CFB 15
frequently used, elementary processing sequences.
EFB Since they can be used in many applications, FBs
COB1
are often stored in a library. Instances of FBs can be
..... E(nd)COB1
CFB 15 called with different parameters.
FB 15
E(nd)COB 2
4
PCS1
PCD1
PCD2
PCD4
PCD6
5
System resources
All SAIA®PCD control devices have the same internal data Assignment of system resources is static and they are acces-
structure. Only the number of inputs and outputs varies sible to the user, who can read and change them when the
depending on the chosen system. The porting of entire user controller is either stopped or in operation. This procedure
programs or their functions is made easy by this compa- makes commissioning easier, enables effective adjustments
tibility of resources, bringing the user decisive advantages. and allows speedy error detection.
The CPU processes each resource directly at its physical
address, i. e. without a process image. This procedure saves
the unnecessary copying of data and allows instant dialogue
between the user program and the process.
Description Media code Address range Bit info Data / explanatory notes
Inputs I
0…8191 High/Low —
Outputs O
Flags F 0…8191 High/Low Non volatile as standard, however, the address range can be
partitioned into volatile/non volatile
Timers T 0…2 147 483 647 (31 bits)
0…1599 High/Low
Counters C T/Cs use the same address range.
T/C partition can be adjusted (standard: T 0…31/C 32…1599)
Timers are volatile and Counters are non-volatile.
Timebase selectable between 1 ms…10 s (standard 100 ms)
Registers, non volatile R 0…4095 Integer –2 147 483 648…+2 147 483 647 (–231…+231–1)
Floating point ±9.22357 × 1018…±5.42101 × 10–20
ASCII 1…4 ASCII characters
Binary 32 bits
Text block X — All ASCII characters
0…3999
Data block DB — Up to 383 × 32 bits (= 383 register contents) per data block
X RAM — X/DBs use the same address range. X/DBs in the
4000…7999
DB RAM — address range 4000…7999 are always in RAM, i. e. they
can be written to by the user program. DBs 4000…7999
can contain up to 16 383 elements.
Constant K Constant 0…16 383 — 14 bits
Constant ± 2 147 483 647 — 32 bits
K constants can be of a variety of types:
decimal (e. g. –3456), hexadecimal (e. g. A45Fh),
binary (e. g. 11011y) or ASCII (e. g. ‘STOP’ ⇒ 32 bits =
4 characters, 14 bits = 1 character)
Time constants can be loaded into a time function
element (T) and have a special format:
T#nnnMS or S (e. g.: T#250MS corresponds to 250 ms,
regardless of the chosen time base)
Semaphore — 0…99 — Latching of parts of the program when there is access
by two or more CPUs to the same media
Index register — 0…16 — 1 per COB or XOB
Real-time clock R 0…4095 — hh/mm/ss, week/day of week, month/day of month, year
BLOCTEC structure
Organization blocks COB 0…15 — COBs are main parts of the program. Every application
Exception blocks XOB 0…30 — consists of at least one COB (the number is not
Program blocks PB 0…299 — important). The operating system processes all available
Function blocks FB 0…999 — blocks consecutively and repeats this cyclically.
PBs and FBs can be nested in up to 7 levels.
GRAFTEC structure
Sequential blocks SB 0…31 — —
Steps ST 0…1999 —
Transitions TR 0…1999 —
Parallel branches — 0…31 —
6
PCS1
PCD1
PCD2
PCD4
PCD6
7
PCS1
PCD1
PCD2
PCD4
Instruction set of the SAIA®PCD PCD6
8
PCS1
PCD1
PCD2
PCD4
Communication PCD6
The PCD operating system allows 6 communications chan- The following example shows how three register contents
nels to be run with different protocols for the physical and can be represented differently.
logical connections.
Without formatting 123456
Connections –7890
Modem
Andere
TCP/IP
RS 232
RS 422
RS 485
FTT 10
5
Mode/Standard Defined field length 123456
0–7890
Character and text mode X X X – X – – 000005
Open data mode – – – X – – – All zeroes displayed 00123456
SAIA®S-Bus X X X X X – – –0007890
PROFIBUS FMS/DP – – X – – – – 00000005
LONWORKS® – – – – – X – Field length and decimal point 123.456
EIB ¹) – – – – – – X 0–7.890
000.005
Belimo MFT – – – – – – X
Decimal point only 1.23456
M-Bus ¹) – – – – – – X
–0.789
Modbus X X X X X – – 0.05
¹) These standards are supported by additional modules.
SAIA®S-Bus
Assigning a serial interface S-Bus is a proprietary field bus, included in every PCD
The SASI instruction tells a communications channel what operating system, which the user can utilize at no additional
definition will be used for the serial connection: cost. S-Bus is characterized by the following:
UART Baud rate, character length, parity, stop bits, – high transmission reliability, due to CRC16 error detection
timeout – high speed data transfer using binary protocol
MODE Character/text, S-Bus, PROFIBUS – supports remote data transmission and diagnostics via
DIAG Flags and registers modem and the OPC standard or Ethernet-TCP/IP
– drivers also available for many process management
systems
Protocols
S-Bus can be used to produce master/slave networks, and
Character mode also multi-master networks with the integral gateway func-
This mode allows single characters to be transmitted and tion. For details see technical information 26/370.
received via a register. When mode C is selected, it automati-
cally manages the handshaking control signals. PROFIBUS FMS/DP
PROFIBUS is an internationally accepted open field bus
Mode Effect standard and is supported by the PCD operating system in
MC0 Without control lines and without control characters two application-specific versions.
MC1 With control lines RTS and CTS
MC2 With control characters XON and XOFF – PROFIBUS FMS for communications tasks at field and
MC3 With echo (e. g. for operator devices) cell level
MC4 With transmission reversing for RS 485 – PROFIBUS DP for exchanging data with field devices
and decentralized peripherals
Example: "UART: 9600, 7, E, 1;"
"MODE: MC1;" The PG5 programming package includes a configurator
"DIAG: F100, R4000;" for PROFIBUS networks, which considerably simplifies the
definition of bus parameters, communications relationships
The user program is notified of the results of communication:
and objects.
receipt of a character, readiness to send, error diagnostics
and completion of a job. The 512-character send and receive
LONWORKS®
buffers can match data exchange with the sequence of the
user program. PCD systems can be used as host nodes in LONWORKS® net-
Communication
9
PCS1
PCD1
PCD2
PCD4
Programming PCD6
The programming unit for SAIA®PCD process controllers The SAIA®PG5 programming tools will very quickly become
is a standard personal computer running the SAIA®PG5 familiar to the user, running under Microsoft Windows
programming tools. Apart from programming, the user can and using the familiar Windows graphical user interface.
also test program sequences, optimise the process and test Programming languages are based on the international
for errors. Development and configuration programs are standard IEC 1131-3.
therefore provided, which make it much easier to realize
For details about the scope of performance of the PG5 pro-
complex process sequences and exchange data with foreign
gramming tool, see technical information 26/362.
devices.
HMI drivers
Character mode
Modem Text output Configurator
Text mode
Mobile phone, pager Text manipulation Up/Downloader
Assignment
Internet OPC Debugger
Diagnosis
DLL
Building automation Factory automation Standard field bus Other field buses
Hardware overview
PCD1 series
– up to 32 inputs/outputs or
up to 64 inputs/outputs if using Saia-Burgess Controls Ltd.
digital modules with 16 I/Os Bahnhofstrasse 18
– up to 140 kBytes user memory CH-3280 Murten / Switzerland
– up to 2 interfaces (serial, PROFIBUS DP, LonWorks® Telephone ++41 26 672 71 11
Ethernet-TCP/IP) Telefax ++41 26 670 44 43
E-mail: [email protected]
Homepage: www.saia-burgess.com
Support: www.sbc-support.ch
PCD2 series
– up to 128 inputs/outputs or
Saia-Burgess Controls Kft.
up to 255 inputs/outputs if using
digital modules with 16 I/Os Liget utca 1
H–2040 Budaörs
– up to 1MByte user memory
Telephone 023 / 501 170
– up to 6 interfaces (serial, Telefax 023 / 501 180
SAIA®S-Bus, PROFIBUS FMS/DP,
LONWORKS®, Ethernet-TCP/IP) E-mail: [email protected]
Homepage: www.saia-burgess.hu
Support: www.sbc-support.ch
PCD4 series
– up to 510 inputs/outputs or Your local contact:
up to 1020 inputs/outputs if using digital
modules with 16 I/Os
– up to 1 MByte user memory
– up to 6 interfaces (serial, SAIA®S-Bus,
PROFIBUS FMS/DP, LONWORKS®,
Ethernet-TCP/IP)
– up to 2 CPUs
PCD6 series
– up to 5100 inputs/outputs
– up to 1 MByte user memory
– up to 30 interfaces (serial, SAIA®S-Bus,
PROFIBUS FMS/DP, Ethernet-TCP/IP)
– up to 6 CPUs
Printed in Switzerland 26/354 E3 04. 2002 TA20 Subject to change without notice.