Beruflich Dokumente
Kultur Dokumente
ISaGRAF
Printing History
Table of Contents
Workbench _______________________________________ 1
Appearance ............................................................................................................ 3
Title Bar .......................................................................................................... 4
Menu Bar ........................................................................................................ 5
Toolbars ........................................................................................................ 14
Standard Toolbar......................................................................................15
Debug Toolbar .........................................................................................17
Window Buttons Toolbar.........................................................................19
Layers Toolbar .........................................................................................20
Version Source Control Toolbar..............................................................20
Options Toolbar .......................................................................................20
I/O Wiring Toolbar ..................................................................................21
Workspace .................................................................................................... 23
Zoom ........................................................................................................24
Output Window ............................................................................................ 25
Contextual Menus......................................................................................... 26
Status Bar...................................................................................................... 27
Customization ...................................................................................................... 28
Directory Structure .............................................................................................. 31
Working with Projects ......................................................................................... 36
Creating Projects........................................................................................... 39
Opening and Closing Projects ...................................................................... 40
Saving Projects ............................................................................................. 43
Renaming Projects ........................................................................................ 43
Adding a Project Description........................................................................ 44
Printing Projects ........................................................................................... 44
Project Access Control......................................................................................... 45
Importing and Exporting Workbench Elements .................................................. 47
Uploading Workbench Elements from Targets ................................................... 50
Link Architecture View ....................................................................................... 52
Resources...................................................................................................... 53
Resource Window Workspace.................................................................54
Creating Resources ..................................................................................54
ii
iii
iv
Link ............................................................................................239
Jump ...........................................................................................240
Managing Elements .........................................................................242
Select ..........................................................................................242
Rename.......................................................................................243
Move ..........................................................................................244
Cut ..............................................................................................244
Copy ...........................................................................................245
Paste ...........................................................................................245
Delete .........................................................................................246
Goto............................................................................................246
Level 2 .............................................................................................247
Coding Action Blocks for Steps.................................................248
Coding Conditions for Transitions.............................................250
Moving Action Blocks Up or Down ..........................................251
Deleting an Action Block...........................................................252
Renumbering Charts ........................................................................253
FC Editor .................................................................................................... 255
Appearance ............................................................................................256
Menu Bar ...............................................................................................257
Working with Flow Charts ....................................................................260
Flow Chart Elements........................................................................261
Action.........................................................................................261
Test.............................................................................................262
IF-THEN-ELSE .........................................................................262
DO-WHILE................................................................................263
WHILE-DO................................................................................264
Flow............................................................................................264
Connector ...................................................................................266
I/O Specific ................................................................................267
Comment ....................................................................................267
Sub-Program ..............................................................................268
Managing Elements .........................................................................269
Select ..........................................................................................269
Cut ..............................................................................................270
Copy ...........................................................................................270
Paste ...........................................................................................271
Delete .........................................................................................271
Move ..........................................................................................272
vi
GoTo...........................................................................................272
Renumber ...................................................................................273
Level 2..............................................................................................274
Level 2 Window .........................................................................275
Edit the Level 2 ..........................................................................276
Multi-language Editor................................................................................. 277
Appearance ............................................................................................278
Menu Bar ...............................................................................................280
Multi-Language Elements......................................................................284
ST/IL Elements ................................................................................284
LD Elements.....................................................................................285
Contact on the Left ....................................................................285
Contact on the Right ..................................................................285
Parallel Contact .........................................................................286
Coil ............................................................................................286
Block on the Left .......................................................................286
Block on the Right .....................................................................286
Parallel Block ............................................................................286
Jump ..........................................................................................286
Label...........................................................................................287
Return ........................................................................................287
Change Coil/Contact Type ........................................................287
Insert New Rung ........................................................................288
Other Operations .......................................................................288
FBD Elements ..................................................................................289
Variable ......................................................................................291
Function Block ...........................................................................292
Link ...........................................................................................293
Corner ........................................................................................293
Jump ..........................................................................................293
Label ..........................................................................................294
Return .........................................................................................294
LD Elements...............................................................................295
Left Power Bar ....................................................................295
Contacts ..............................................................................295
LD Vertical "OR" Connection ............................................295
vii
Coils.....................................................................................296
Right Power Bar .................................................................296
Comment ....................................................................................297
Managing Elements ...............................................................................298
Select................................................................................................298
Resize...............................................................................................299
Undo/Redo .......................................................................................299
Move ................................................................................................300
Cut....................................................................................................300
Copy.................................................................................................301
Paste .................................................................................................301
Paste Special ....................................................................................302
Delete ...............................................................................................303
Select All..........................................................................................303
Find Matching Name .......................................................................303
Find Matching Coil ..........................................................................304
Go to Line ........................................................................................304
Display/Hide Comments..................................................................305
Composite IEC 61499 Editor ..................................................................... 307
Appearance ............................................................................................308
Menu Bar ...............................................................................................310
Toolbars .................................................................................................313
Standard Toolbar..............................................................................313
Options Toolbar ...............................................................................315
Debug Toolbar .................................................................................315
IEC61499 Tools ...............................................................................317
IEC 61499 Elements ........................................................................318
Variable ......................................................................................319
Function Block ...........................................................................320
Link ............................................................................................320
Corner.........................................................................................320
Comment ....................................................................................320
Managing Elements ...............................................................................321
Select................................................................................................321
Resize...............................................................................................321
Undo/Redo .......................................................................................322
Move ................................................................................................322
Cut....................................................................................................323
Copy.................................................................................................323
viii
Paste .................................................................................................324
Delete ...............................................................................................324
Select All..........................................................................................324
Libraries ............................................................................................................. 325
Creating Libraries ....................................................................................... 326
Using Libraries in a Project ........................................................................ 327
Debug................................................................................................................. 333
Status Information ...................................................................................... 334
Download.................................................................................................... 337
Debug/Simulate .......................................................................................... 339
Start / Stop a Resource...........................................................................341
Resource Execution Mode .....................................................................342
Real-time Mode................................................................................342
Cycle-to-cycle Mode........................................................................343
Step-by-step Mode ...........................................................................344
Setting Breakpoints ....................................................................346
Removing Breakpoints ...............................................................346
Stepping in POUs .......................................................................348
Set Cycle Time.......................................................................................349
Write / Lock / Unlock ............................................................................350
Diagnosis................................................................................................353
SFC Breakpoints ....................................................................................358
Breakpoint on Step Activation .........................................................360
Breakpoint on Step Deactivation .....................................................361
Breakpoint on Transition..................................................................362
Transition Clearing Forcing .............................................................363
Spying Variables....................................................................................364
Adding Variables to the Spy List .....................................................364
Selecting Variables in the Spy List ..................................................366
Removing Variables from the Spy List............................................366
Rearranging the Spy List..................................................................367
Saving a Spy List .............................................................................367
Opening an Existing Spy List ..........................................................367
Forcing / Locking / Unlocking the Value of a Spy List Variable ....368
Simulate a Panel of I/Os ............................................................................. 369
Appearance ............................................................................................371
Menu Bar..........................................................................................372
Toolbar .............................................................................................373
ix
Contextual Menu..............................................................................374
Displaying I/O Device Window Headers ........................................374
Moving or Hiding the Browser ........................................................375
Online Changes .......................................................................................... 376
Code Sequences .....................................................................................378
Variables ................................................................................................380
Declared Variables...........................................................................380
Function Block Instances.................................................................381
Compiler Allocated Hidden Variables.............................................381
I/O Devices ............................................................................................382
Memory Requirements ..........................................................................382
Miscellaneous Limitations.....................................................................383
Operations..............................................................................................384
Debug Function Block Instances................................................................ 386
Clean Stored Code...................................................................................... 388
Document Generator.......................................................................................... 389
Table of Items............................................................................................. 390
Printing Options ......................................................................................... 392
Preview ....................................................................................................... 394
Code Generator.................................................................................................. 397
Build ........................................................................................................... 397
Build a POU...........................................................................................399
Building Resources / Projects................................................................400
Stopping Builds .....................................................................................401
Cleaning Projects ...................................................................................402
Compiler Options ....................................................................................... 403
C Source Code............................................................................................ 406
Project Tree View .............................................................................................. 407
Cross References Browser................................................................................. 409
Calculating Cross References..................................................................... 411
Browsing the POUs of a Project................................................................. 411
Defining Search Options ............................................................................ 412
Version Source Control ..................................................................................... 413
Performing a Check in of a Workbench Element....................................... 417
Viewing the History of Workbench Elements ........................................... 418
Getting a Previous Version....................................................................419
Comparing Current and Previous Versions ...........................................420
xi
xii
FC Language...................................................................................................... 489
FC Basic Components ................................................................................ 489
FC BEGIN .............................................................................................490
FC END .................................................................................................490
FC Flow Links .......................................................................................491
FC Actions .............................................................................................492
FC Conditions ........................................................................................492
Other FC Components ................................................................................ 494
FC Sub-Program ....................................................................................494
FC I/O Specific Actions.........................................................................495
FC Connectors .......................................................................................496
FC Comments ........................................................................................496
FC Complex Structure Examples...........................................................497
FC Dynamic Behavior ................................................................................ 498
FC Checking ............................................................................................... 498
FC Examples............................................................................................... 499
FBD Language ................................................................................................... 501
FBD Diagram Main Format........................................................................ 501
RETURN Statement ................................................................................... 503
Jumps and Labels........................................................................................ 504
Boolean Negation ....................................................................................... 505
Calling Functions and Function Blocks...................................................... 506
LD Language ..................................................................................................... 507
Power Rails and Connection Lines............................................................. 508
Multiple Connections ................................................................................. 509
Basic LD Contacts and Coils...................................................................... 510
Direct Contact ........................................................................................511
Inverted Contact.....................................................................................512
Contact with Rising Edge Detection......................................................513
Contact with Falling Edge Detection.....................................................514
Direct Coil..............................................................................................515
Inverted Coil ..........................................................................................516
SET Coil.................................................................................................517
RESET Coil ...........................................................................................518
Coil with Rising Edge Detection ...........................................................519
Coil with Falling Edge Detection ..........................................................520
xiii
xiv
IL Operators................................................................................................ 560
LD Operator ...........................................................................................561
ST Operator............................................................................................562
S Operator ..............................................................................................562
R Operator..............................................................................................563
JMP Operator .........................................................................................564
RET Operator.........................................................................................565
) Operator ...............................................................................................566
Calling Functions ...................................................................................567
Calling Function Blocks: CAL Operator ...............................................569
Standard Operators ............................................................................................ 571
* ................................................................................................................. 573
+ ................................................................................................................. 575
- .................................................................................................................. 577
/ .................................................................................................................. 578
1 GAIN ....................................................................................................... 580
AND............................................................................................................ 581
ANY_TO_BOOL ....................................................................................... 583
ANY_TO_SINT ......................................................................................... 585
ANY_TO_USINT....................................................................................... 587
ANY_TO_BYTE........................................................................................ 589
ANY_TO_INT............................................................................................ 591
ANY_TO_UINT......................................................................................... 593
ANY_TO_WORD ...................................................................................... 595
ANY_TO_DINT......................................................................................... 596
ANY_TO_UDINT...................................................................................... 598
ANY_TO_DWORD ................................................................................... 600
ANY_TO_LINT ......................................................................................... 602
ANY_TO_ULINT ...................................................................................... 603
ANY_TO_LWORD.................................................................................... 605
ANY_TO_REAL........................................................................................ 606
ANY_TO_LREAL ..................................................................................... 608
ANY_TO_TIME......................................................................................... 609
ANY_TO_DATE........................................................................................ 611
ANY_TO_STRING.................................................................................... 612
BOO............................................................................................................ 614
CAT ............................................................................................................ 615
Equal ........................................................................................................... 617
Greater Than or Equal ................................................................................ 619
xv
Greater Than...............................................................................................
ISA3_ANA .................................................................................................
ISA3_REAL ...............................................................................................
ISA3_SYSTEM..........................................................................................
Less Than or Equal.....................................................................................
Less Than ...................................................................................................
MSG ...........................................................................................................
NEG............................................................................................................
NOT............................................................................................................
Not Equal....................................................................................................
OPERATE ..................................................................................................
OR ..............................................................................................................
TMR ...........................................................................................................
XOR............................................................................................................
Standard Functions ............................................................................................
ABS ............................................................................................................
ACOS .........................................................................................................
AND_MASK..............................................................................................
ARCREATE ...............................................................................................
ARREAD....................................................................................................
ARWRITE..................................................................................................
ASCII..........................................................................................................
ASIN...........................................................................................................
AS_SEND_EVENT ...................................................................................
ATAN .........................................................................................................
CHAR .........................................................................................................
COS ............................................................................................................
CURRENT_ISA_DATE ............................................................................
DAY_TIME................................................................................................
DELETE .....................................................................................................
EXPT ..........................................................................................................
F_CLOSE ...................................................................................................
F_EOF ........................................................................................................
F_ROPEN...................................................................................................
F_WOPEN..................................................................................................
FA_READ ..................................................................................................
FA_WRITE ................................................................................................
FM_READ .................................................................................................
FM_WRITE................................................................................................
xvi
621
622
624
626
628
630
631
633
634
635
637
638
639
641
643
646
648
649
650
652
653
655
656
657
661
662
663
664
666
667
669
670
672
675
676
678
681
685
688
FAILOVER................................................................................................. 690
FIND ........................................................................................................... 693
GET_TIME_STRING ................................................................................ 694
IOCTRL...................................................................................................... 695
INSERT ...................................................................................................... 696
ISA_SERIAL_CLOSE ............................................................................... 698
ISA_SERIAL_CONNECT ......................................................................... 699
ISA_SERIAL_DISCONNECT................................................................... 701
ISA_SERIAL_OPEN ................................................................................. 702
ISA_SERIAL_RECEIVE ........................................................................... 703
ISA_SERIAL_SEND ................................................................................. 705
ISA_SERIAL_SET..................................................................................... 706
ISA_SERIAL_STATUS............................................................................. 708
LEFT........................................................................................................... 709
LIMIT ......................................................................................................... 711
LOG ............................................................................................................ 712
LOG_MSG ................................................................................................. 714
MAX ........................................................................................................... 715
MID............................................................................................................. 716
MIN............................................................................................................. 718
MLEN ......................................................................................................... 719
MOD ........................................................................................................... 721
MUX4 ......................................................................................................... 722
MUX8 ......................................................................................................... 724
NOT_MASK............................................................................................... 726
ODD............................................................................................................ 727
OR_MASK ................................................................................................. 728
POW ........................................................................................................... 729
RAND ......................................................................................................... 731
REPLACE .................................................................................................. 733
RIGHT ........................................................................................................ 735
ROL ............................................................................................................ 737
ROR ............................................................................................................ 738
SEL ............................................................................................................. 740
SET_PRIORITY......................................................................................... 741
SHL............................................................................................................. 742
SHR ............................................................................................................ 743
SIN.............................................................................................................. 745
SQRT .......................................................................................................... 746
xvii
SUB_DATE_DATE ...................................................................................
TAN............................................................................................................
TRUNC ......................................................................................................
XOR_MASK ..............................................................................................
Standard Function Blocks..................................................................................
Basic Operations.........................................................................................
AS_AE..................................................................................................
AVERAGE ...........................................................................................
BLINK ..................................................................................................
CMP......................................................................................................
CONNECT ...........................................................................................
CTD ......................................................................................................
CTU ......................................................................................................
CTUD ...................................................................................................
DERIVATE ..........................................................................................
F_TRIG.................................................................................................
FC_GET_STAT....................................................................................
GET_TIME_STRUCT .........................................................................
HYSTER...............................................................................................
INTEGRAL ..........................................................................................
LIM_ALRM .........................................................................................
NOW.....................................................................................................
R_TRIG ................................................................................................
RS .........................................................................................................
SEMA ...................................................................................................
SR .........................................................................................................
SIG_GEN..............................................................................................
STACKINT...........................................................................................
TOF.......................................................................................................
TON ......................................................................................................
TP..........................................................................................................
URCV_S ...............................................................................................
USEND_S.............................................................................................
Advanced Control.......................................................................................
AnalogAlarm ........................................................................................
BatchSwitch..........................................................................................
BatchTotalizer.......................................................................................
Bias .......................................................................................................
BiasCalibration .....................................................................................
xviii
747
748
749
751
753
753
755
760
761
762
763
765
766
768
770
771
772
776
778
779
781
782
783
784
785
786
787
789
791
792
793
794
795
797
799
807
809
811
812
xix
xx
875
877
881
881
882
883
884
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
955
Workbench
The Workbench is the environment in which you develop multi-process control projects made
up of virtual machines running on hardware components, called target nodes. The development
process consists of creating projects made up of configurations, representing, individual target
nodes, on which one or more instances of resources, i.e., virtual machines, are downloaded. At
runtime, the virtual machines run on these target nodes.
Projects can be developed using any of the five languages of the IEC 61131-3 standard: SFC:
Sequential Function Chart (or Grafcet), FBD: Function Block Diagram, LD: Ladder Diagram,
ST: Structured Text, and IL: Instruction List. You can also use the Flow Chart language.
Furthermore, using the IEC 61499 language, i.e., distribution method, enables the distribution
of function blocks across multiple resources. When building, resources are compiled to
produce very fast "target independent code" (TIC) or "C" code.
Within resources, you can declare variables using standard IEC 61131-3 data types (i.e.,
Boolean, integer, real, etc.) or user-defined types such as arrays or structures. For defined
variables, you can set up alarms, events, and trending. Furthermore, field communications
allow you to connect variables to field equipment. Resources can share variables using internal
bindings or external bindings. Internal bindings are between resources within the same project.
External bindings are between resources belonging to different projects. For IEC 61499
programs, bindings between function blocks declared in different resources are automatically
created.
You develop projects on a Windows development platform, in the Workbench and language
editors. The Workbench graphically represents and organizes configurations, resources, POUs,
and networks within a project from many views: