PS4 Sucosoft S40 h1306g.pdf

(6731 KB) Pobierz
Language Elements for PS4-150/-200/-300 and PS416
Language Elements for
PS4-150/-200/-300 and PS416
Sucosoft S40
Programming Software
07/01 AWB2700-1306-GB
1 st edition 12/97
2 nd published 1998, edition 06/98
3 rd published 1999, edition 03/99
4 th published 2000, edition 02/00
5 th published 2001, edition 07/01
See List of Revisions on Page 3
© Moeller GmbH, Bonn
Authors: Arno Dielmann, Eberhard Kastner
Editor: Thomas Kracht
Translator: Terence Osborn
645968696.001.png
Contents
About This Manual
3
List of revisions
3
1 Program Structure of SucosoftS40
5
Program POU
7
Function POU
8
Function block POU
9
2 Variables and Constants
11
Variables declaration
11
Variables
20
Constants
32
3 Textual Programming Languages
37
Introduction
37
Programming in instruction list (IL)
37
Programming in structured text (ST)
75
4 Graphical Programming Languages
91
Introduction
91
Programming in ladder diagram (LD)
95
Programming in function block diagram
(FBD)
108
5Funcions
127
Overview
127
6 Function Blocks
221
Overview
221
7 Language Extension
587
Mixing IL and ST language elements
587
Single-bit access
587
1
Contents
8 Compliance with the IEC Standard 591
Common Elements 592
Language-specific elements 610
D.1: Implementation-dependent parameters 614
Reaction to errors
617
Appendix
619
Sucosoft conventions
619
Sucosoft limit values
621
Program examples LD/FBD
622
Index
641
2
645968696.002.png
About This Manual
The manual “Language Elements” describes
programming languages compliant with the
IEC/EN 61131-3 standard including functions and
function blocks.
The language elements are identical for all controllers
and CPUs in the PS4 and PS416 series. There may,
however, be differences in the descriptions due to
variations in the memory sizes of the controllers, or
data types supported or a different I/O systems. In
such cases your attention will be drawn to the
differences by means of marginal comments or
footnotes. “PS4-200” stands for the PS4-201-MM1,
PS4-271-MM1, PS4-151-MM1 and PS4-141-MM1
controllers. “PS4-300” stands for the PS4-341-MM1
controller. References to “PS416” includes all CPU
type, such as CPU-200, CPU-300 and CPU-400.
Unless explicitly indicated by comments, all
descriptions apply to all controller and CPU types.
List of revisions
The following revisions have been made in
comparison to the 08/00 edition of this manual:
Page
Description
new
Modification
75
Programming in Structured Text (ST)
344 f.
Description of the IncEncoder function block
258
Description of the ClearDiagnosticBits function block
591
Chapter “Compliance with the Standard”
437 ff.
SCO
533
Pulse length of Predivide input
3
645968696.003.png
Zgłoś jeśli naruszono regulamin