created by created by Ralf Wohlschlaeger Ralf Wohlschlaeger General Manager Factory Automation General Manager Factory Automation Panasonic Electric Works (Europe) AG Panasonic Electric Works (Europe) AG Chairman of PLCopen PC1 committee (promotion) Chairman of PLCopen PC1 committee (promotion)
Panasonic Electric Works Europe AG Wohlschlaeger / January 2006
Contents :: Contents
--What is PLCopen ?? What is PLCopen --Organisation Organisation --Current topics Current topics
Style of Software Conventional styled software IEC 61131-3 styled software Conventional styled software IEC 61131-3 styled software
Direct hardware address :: Direct hardware address -- X0, X1...Y0,Y1....DT0,DT1..... X0, X1...Y0,Y1....DT0,DT1..... IEC address: IEC address: -- %IX0.....%QX0.....%MW5.0 %IX0.....%QX0.....%MW5.0 -- each Variable have a name each Variable have a name -- each Variable have a data type each Variable have a data type -- global and local Variables global and local Variables POU concept: POU concept: -- 1 program or more programs 1 program or more programs -- Function Blocks and Functions Function Blocks and Functions
Panasonic Control FPWIN Pro can use both styles Panasonic Control FPWIN Pro can use both styles Both styles can be mixed Both styles can be mixed
Panasonic Electric Works Europe AG Wohlschlaeger / January 2006
POUs
structured programming well defined interface --> other variables can be used in other projects re-use of Function Blocks saves time and debugging flowchart on the monitor divide big programs into small and easy parts top down development / bottom up --> well structured different languages in the program easy debugging and error locating - only the current step is active save training time for programmers enables parallel software development by more programmers certification ensures users to protect their investments for the future
SFC
General
16-bit
32-bit
EN s1 s2
EN s1 s2
EN s1 s2
F43_ADD2 ENO d
EN s1 s2
F310_FADD ENO d
Programming Languages User Guidelines Communication Reserved Fuzzy control Technical Report
International Standard
Panasonic Electric Works Europe AG Wohlschlaeger / January 2006
Configuration A
Resource L Task1
Program P1
Resource L Task2
Program P2
Task3
Program P3
Task4
Program P4
FB1
FB2
FB3
FB4
Common Elements of the IEC 61131-3 IEC 61131-3: The 5 Programming Languages IEC 61131-3: The 5 Programming Languages and and The Common Elements The Common Elements Character set Data types Variables POUs, Program Organisation Units SFC Elements Configuration elements:
(English.........) (BOOL, WORD, INTEGER.................) (VAR, VAR_input, VAR_output..........) (Function, Function Block...) (Steps, Transitions.................................) (Tasks)
Keyword
BOOL SINT INT DINT LINT USINT UINT UDINT ULINT REAL LREAL TIME DATE TIME_OF_DAY or TOD DATE_AND_TIME or DT STRING BYTE WORD DWORD LWORD
Data Type
Boolean Short integer Integer Double integer Long integer Unsigned short integer Unsigned integer Unsigned double integer Unsigned long integer Real numbers Long reals Duration Date (only) Time of day (only) Date and time of day Character string Bit string of length 8 Bit string of length 16 Bit string of length 32 Bit string of length 64
Bits
1 8 16 32 64 8 16 32 64 32 64
8 16 32 64
Wohlschlaeger / January 2006
Structured Text
C:= A AND NOT B
Transition 2 Step 3
-| |--|/|----------------( )
A POU consists of a header (variable declaration) and the body (instructions) POUs enable the re-use of software from macro level (Programs) to micro level (FB and Functions)
Function
Function
Comments Main program Subroutine with own memory, several in and outputs possible Subroutine without own memory
1. Function Block
FU_Block
OUT_1 IN_1 IN_2
3. Program body
LD AND OR AND : : : : ST IN_1 IN_2 OUT_1 IN_3 : : : : OUT_1
2. Variable Interface
FU-Block Header
Class 0 1 2 3 VAR_INPUT VAR_INPUT VAR_INPUT VAR_OUPUT Identifier IN_1 IN_2 IN_3 OUT_1 Type BOOL BOOL BOOL BOOL
IN_3
Library Concept
Libraries:
IEC_Standard_Lib Vendor_Lib Pulsed_Lib Communication_Lib PID_Lib Special_Project_Lib
Special_Lib
TWO_TRIP POSITION_2_AX POSITION_3_AX WAIT_10s ELEVAT_4_FL : : :
Self-created FBs can be stored in libraries Comfortable structuring and sorting in the libraries Know-how protection of FBs and libraries Easy reuse of tested software --> saves time
Panasonic Electric Works Europe AG Wohlschlaeger / January 2006
PLCopen
PLCopen was founded on June 15, 1992 in Giessen, Germany. PLCopen was founded on June 15, 1992 in Giessen, Germany. Target was to promote IEC 61131-3, inform customers and give Target was to promote IEC 61131-3, inform customers and give more weight to the IEC 61131-3 standard. more weight to the IEC 61131-3 standard.
PLCopen
Standardization in Industrial Control programming
TC6
Panasonic Electric Works Europe AG Wohlschlaeger / January 2006
PLCopen Mission
We want to be the leading association resolving We want to be the leading association resolving topics related to topics related to control programming control programming to support the use of to support the use of international standards in this field. international standards in this field.
> 80 members (June 2004) from 19 countries all over the world Suppliers, institutes and users See newsletter / website for up-to-date list
Details
Meanwhile only truly compliant IEC 61131-3 systems Meanwhile only truly compliant IEC 61131-3 systems are promoted as IEC 61131-3 products are promoted as IEC 61131-3 products
Panasonic Electric Works Europe AG Wohlschlaeger / January 2006
Application Program FB Variable Code Body FB FB Variable Variable Code Code Body Body
Conformity Level & Reusability Level Re-usability of Function (Block) libraries Base Level Portability of minimal systems
Application Program FB Variable Code Body FB FB Variable Variable Code Code Body Body
Certification
Certified products can use these logos Base Level: Base Level: Conformity Level: Conformity Level: first step into IEC 61131-3 software first step into IEC 61131-3 software conforms to IEC 61131-3 based on conforms to IEC 61131-3 based on supported data types supported data types reuse of IEC 61131-3 Function Blocks reuse of IEC 61131-3 Function Blocks based on supported data types based on supported data types certified Function Blocks according the certified Function Blocks according the Motion Control specification Motion Control specification Opening up the development Opening up the development environments by specifying XML environments by specifying XML formats for IEC 61131-3 formats for IEC 61131-3
Wohlschlaeger / January 2006
XML: XML:
Reusability Level ST
BOOL INT WORD FU_Body OUT_1 IN_1 IN_2 IN_3 IN_1 IN_2 BOOL INT WORD FU_Body OUT_1
OK
BOOL WORD
IN_3
no LINT
FU_Body
Not possible
Function Block exchange in ST language is possible: Function Block exchange in ST language is possible: if both systems have the Reusability Level ST if both systems have the Reusability Level ST the used instructions are IEC 61131-3 instructions the used instructions are IEC 61131-3 instructions the same data types are available the same data types are available
Panasonic Electric Works Europe AG Wohlschlaeger / January 2006
Hardware independent Software Development Consistent Development Environment Consistent Installation and Maintenance Interface
Goal :
To harmonize the access for Motion Control across different platforms during development, installation and maintenance based on the IEC 61131-3 environment
Panasonic Electric Works Europe AG
Software View
Encapsulation / Information Hiding
Inputs
Hardware View
I/F Sercos Drive Motor E PWM I/F Drive Motor E
Name
Outputs
Thank you !