OPC-Based Open Control for NT / 2000OPC-Based Open Control for NT / 2000• Fully Compliant IEC 1131 Configurator
All 5 IEC 1131 standard languages Supported: SFC, FBD, LD, IL, and ST
• Mix IEC 1131 Graphical LanguagesApplication worksheets in any appropriate language!
• Windows ‘Object & Action’ EditingObject-based editing of POU’s, SFC-steps, IL-instruction
• Powerful Built-in Runtime DebuggerTest your control logic right within the IEC 1131 configurator
• Online Configuration with Active ProcessNo need to interrupt control to implement new control logic.
• Fast, Full Multitasking Runtime EngineSub-millisecond instruction execution under NT®4.0
• Open Communications to Field DevicesOPC Connectivity and Drivers for Interbus-s, CAN, Profibus, DeviceNet, Fieldbus and much more...
OPC-To-The-CoreOPC-To-The-Core
DataWorX32DataWorX32
GraphWorX32GraphWorX32 TrendWorX32TrendWorX32 AlarmWorX32AlarmWorX32 OPC ClientsOPC Clients
ServersServers
COM/DCOM
OPC (COM/DCOM) Architecture
ServerServer
ControlWorX32ControlWorX32I/O DevicesI/O Devices
ControlWorX32ControlWorX32NT KernelNT Kernel
ControlWorX32ControlWorX32
ControlWorX32ControlWorX32IEC 1131IEC 1131
ServerServer
I/O DevicesI/O Devices
ServerServer
I/O DevicesI/O Devices
Run-TimeRun-Time
DevelopmentDevelopment
Embedded CEEmbedded CE
Device Networkse.g. Interbus, Profibus, Modbus TCP/IP, DeviceNet, etc...
IEC 1131 & OPC Open Control
ControlWorX32ControlWorX32
ControlWorX32ControlWorX32IEC 1131IEC 1131
ServerServer
I/O DevicesI/O Devices
DevelopmentDevelopment
Run-TimeRun-Time
Development & ConfigurationDevelopment & Configuration
OBOrganizationblock
SBStepblock
DBDatablock
FBFunctionblock
PBProgramblock
PROGRAM
FUNCTIONBLOCK
FUNCTION
Program Organization Unit
POU
PROGRAM
FUNCTIONBLOCK
FUNCTION Function POU with argumentswithout static variables
without "memory"
Function POU with argumentswithout static variables
without "memory"
Function block POU with arguments and static variables
"with persisting memory"
Function block POU with arguments and static variables
"with persisting memory"
Program Highest level of POUs;
execution is definedby the task it is associated to;
anchoring of the peripherals:
Declaration of IOs
Program Highest level of POUs;
execution is definedby the task it is associated to;
anchoring of the peripherals:
Declaration of IOs
Types of POUs
IEC 1131.3 LanguagesSFC (Sequential Function Charts)
FBD (Function Block Diagrams)
LD (Ladder Diagram)
ST (Structured Text)
IL (Instruction List)
Use any one or all of the5 standard languages
ActionActionnamename
QualifierQualifier IndicatorIndicator
Code of the action in oneCode of the action in oneof the IEC 1131 languagesof the IEC 1131 languages
Diagrammatic representation of process stateActivity Flow OrientedSequential ControlStep and Transition
Sequential Function Chart
Function Block
Function
directio
n of flow
GraphicalData Flow OrientedProcess Diagram like
Function Block Diagram
Power rail
contact
coil
Graphical PowerflowDiscrete control OrientedFamiliarEasily maintained
Ladder Diagram LD
High level textual languageComplex calculations and algorithmsHigher level language like
Structured Text- ST
Project Tree Structure
All instances within one resource
Description of PLC Runtime System according to IEC 1131-3
All Program Organization Unit s (POU) - program, function block, function - are organized and handled from project tree
Definition of Global variablesand IO-configuration independent from POUs
User defined FunctionBlocks
1. Define FunctionBlock POU in project tree
2. Write FunctionBlock in any IEC programming language
3. Instances of user defined FunctionBlock
User defined data types STRUCT /ARRAY
1. Define required data type in own worksheet of project
2. Use data type in global variable declaration workseet if used for physical I/O
3. Use data type in variable declaration worksheet of POU
Single Editor for all Graphical Languages
Mix Ladder Diagram, Function Block Diagram and Sequential Function Chart in a single worksheet.
Benefits of IEC 1131.3• Standard project organization
• Standard Function Blocks
• Standard Functions
• Standard Operators
• Standard Data Types
• Standard programming languages
Startup Tools• Changes while process is active
• Breakpoints
• Forcing
• Overwriting
• Single Step
• Single Cycle
• Watch List
Runtime debugger
Controling the resource• Test the project• Debugging with - variable status, powerflow, breakpoints, single step
source areafor POU in textualand graphical language
cross reference areafor variables used alsoin other worksheetslocal or global
bitmapfor companylogo, etc.
cross reference areafor variables used alsoin other worksheetslocal or global
textfor description
environment itemsfor name, date, title, etc.
rectanglesand lines
ControlworXProject: CONTAINAuthor: B. PelzerDate: 08.11.96
C:\MWT12\projects\contain
Last change: 08.11.96 16.17Title:
Page: 3/10
MISCH/1-I
MISCH/2-I
MISCH/3-O
MISCH/4-I
MISCH/5-O
Software
Design your own Page Layout
Resource
Task
ProgramProgram
Function
Function block
Configuration
Project Structure in ControlWorX32
Maximum_Fuel AT %MWW 2 : INT := 150;
:= valuelocation prefixI - InputQ - OutputM - Memory
location prefixI - InputQ - OutputM - Memory
size prefixX - 1 BitB - 8 Bit W - 16 Bit D - 32 BitL - 64 Bit
size prefixX - 1 BitB - 8 Bit W - 16 Bit D - 32 BitL - 64 Bit
Variables Declaration
ControlWorX32ControlWorX32
ControlWorX32ControlWorX32IEC 1131IEC 1131
ServerServer
I/O DevicesI/O Devices
DevelopmentDevelopment
Run-TimeRun-Time
Run-Time EngineRun-Time Engine
OPC SERVER
Start/StopUp/
Download
Debugging
Automatic
Variable List
INTERBUS, PROFIBUS
Dual-Ported RAM
REAL-TIME
Engine
IEC 1131CONFIGURATOR
ControlWorX32 GENESIS-32
Run-Time Specs.• High performance
– 66 µs for 1000 BOOL instructions on 150 MHz Pentium
– 16 µs for 1000 INT or BOOL8 instructions on 150 MHz Pentium
• 0.5ms/1K bit operation on Windows NT 4.0
• Program capacity; configurable, approx. 30,000 IL lines
• I/O; configurable, 64KB In / 64KB Out• PLC Tasks - 32
• Periodic tasks• Event driven tasks• Default task- cyclic program execution at low priority
ControlWorX Multitasking
Resource
. . .Task 2
Program Input(Read Inputs)
Program
Program Output(Write Outputs)
Task 1 Task 3
Program Output(Write Outputs)
ProgramAUTO_MODE AUTO_CMD
AUTO_MODE MAN_CMD
ACK ALRM
CMDCMD_TMR
TONIN QPT ET
FDBK ALRM
(
(
(
(
)
)
)
)
R
S
PLED
MAN_CMD KEY4 STOP
CMD START N DONE
WC < = z
WEIGH_A
WEIGH_B
FILL
BRICK1
DROP_1
BRICK2
DROP_2
N VA
N VE
N VC
S MT
R MT
WC > = WA+ z
WC > = WA+ WB+ z
d
NOT d
d
Program Input(Read Inputs)
. . .
Program Input(Read Inputs)
Program
Program Output(Write Outputs)
&Blink Blank
TONIN QPT
BLINK_TIME
&
&
CONTROL.X
TRUCK_ON_RAMP OK_TO_RUN
MOTORJOG_PB
RUN_IN.X
DUMB_BIN.X
RUNOUT.X
>=1
TONIN QPT
time [ms]
10 20 30 40 50
P1 P1 P1 P1P1
P3 P4 P3 P4 P4
P5 P6P5 P6 P6
P2 P2
System Puls
Fast Task
Event Task
Main Task
Default Task
CWX RuntimeSystem Tasks
Ta
sk
Pri
ori
ty
ControlWorX- PLC MultitaskingControlWorX- PLC Multitasking
time [ms]1 2 3 4 5System Puls
ControlworX - Realtime
Windows NT
1 2 3 4 5System Puls
ControlworX - Realtime
Windows NT
time [ms]
ControlworX event during Windows NT context - latency 10µs-1000µs
ControlworX consumesCPU-power less than
1 cycle time
ControlworX nothing to do -
context switch to check
ControlworX consumesCPU-power more than
1 cycle time
Windows NT Windows NT Preemptive Context SwitchPreemptive Context Switch
ControlWorX32ControlWorX32
ControlWorX32ControlWorX32IEC 1131IEC 1131
ServerServer
I/O DevicesI/O Devices
DevelopmentDevelopment
Run-TimeRun-Time
I/O DevicesI/O Devices
ControlWorX I/O Drivers• InterBus• CANopen• Profibus• DeviceNet• SDS• LonWorks
• Asi• ControlNet• FieldBus Foundation• IEC/ISA SP50
FieldBus• … more ...
ControlWorX32ControlWorX32
ControlWorX32ControlWorX32IEC 1131IEC 1131
ServerServer
I/O DevicesI/O Devices
DevelopmentDevelopment
Run-TimeRun-Time
OPC ServersOPC Servers
ControlWorX OPC Server
• Works with GENESIS-32, and all other compliant OPC clients
• Easily remote using DCOM and tag browser technology
• Hierarchical name space
• Supports CALL-R extensions for program start, stop, downloading etc.
Two ways to get to the I/O
ControlWorX32ControlWorX32NT KernelNT Kernel
ControlWorX32ControlWorX32
ControlWorX32ControlWorX32IEC 1131IEC 1131
ServerServer
I/O DevicesI/O Devices
ServerServer
I/O DevicesI/O Devices
Run-TimeRun-Time
DevelopmentDevelopment
Embedded CEEmbedded CE
Device Networkse.g. Interbus, Profibus, Modbus TCP/IP, DeviceNet, etc...
I/O Device Driver runs in Kernel
OPC ServerConnects to
all other Clients
SUMMARYSUMMARY• All five IEC programming languages• Fast multi-tasking runtime engine
– user defined interval and event tasks
• On-line Changes without stopping the process• Full Debug Support • On-Line Simulation • On-line Help System in multiple languages• Connect to devices on Interbus, Profibus, CAN,.. • OPC Connectivity