Engineering via SICAM WEB
SICAM RTUs, User Manual SICAM CMIC
243
DC8-001-2.09, Edition 08.2016
Example:
LD M_DINT_COMPARE
(*load flag*)
ST EQ.IN0
(*store at input 0 for equal function*)
LD 3
(*load value 3*)
ST EQ.IN1
(*store at input 1 for equal function*)
CAL EQ
(*call function*)
ST O_030_008_000_000.VALUE
(*if both values are equal the output of
the function is set to 1*)
If a comparison of two values is performed, the output is set if the flag
M_DINT_COMPARE
is
written with
3
(the writing of the flag is not included here).
5.2.1.2.5 Call of Function Blocks
Function blocks do not have any temporary variables. Each new (derived) function block oc-
cupies a new memory in the RAM.
Respectively the first result of the function block is written in the accumulator. If a function
block has more than one result, then this can be accessed as with the parameter transfer.
Example:
LD 1
ST CTU_TEST.CU
ST CTU_TEST.R
LD 5
ST CTU_TEST.PV
CAL CTU_TEST
LD CTU_TEST.CV
(*access to 2nd result*)
5.2.1.3 Instruction Comments
Comments in the application program can be set at any arbitrary place and must be included
between brackets and stars. The documentation can also extend over several lines.
Example:
LD 15
(*load constant 15*)
ST M_DINT_CONSTANT
(*store in flag*)
The following characters may be used:
•
Numbers
0
…
9
•
Letters
A
…
Z
,
a
…
z
•
Special characters
^ ! " $ % & / ( ) = ? [ ] { } \ @ # ' + * ~ < > | , ; . : - _
Содержание SICAM CMIC
Страница 8: ...Preface 8 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 10: ...Open Source Software Used in SICAM CMIC 10 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 20: ...Table of Contents 20 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 Glossary 405 ...
Страница 46: ...Installation 46 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 62: ...Interfaces and Circuitry 62 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 102: ...Preparing the Engineering 102 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 130: ...Engineering via SICAM TOOLBOX II 130 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 334: ...Error Handling 334 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 386: ...Set Up Dial Up Connection via PPP 386 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 394: ...Install Security Certificate 394 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 404: ...Use Cases 404 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 414: ...Glossary 414 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 X Z ...