Download User manual Supervisor

Transcript
Supervisor documentation
3-5- Editors ...................................................................................................................................................... 42
3-5-1- Basic task editor ............................................................................................................................... 42
3-5-2- Ladder task editor ............................................................................................................................. 43
4-
PROGRAMMATION LANGUAGE ...................................................................................................... 45
4-1- Introduction .............................................................................................................................................. 45
4-1-1- Description ....................................................................................................................................... 45
4-1-2- Memory plan of SUPERVISOR....................................................................................................... 45
4-2- Data .......................................................................................................................................................... 46
4-2-1- Global constants ............................................................................................................................... 46
4-2-2- Global variables................................................................................................................................ 46
4-2-3- Local variables.................................................................................................................................. 47
4-2-4- Convert data types ............................................................................................................................ 48
4-2-5- Numeric notations............................................................................................................................. 49
4-3- Tasks ......................................................................................................................................................... 49
4-3-1- Multitask principles .......................................................................................................................... 49
4-3-2- Task priority ..................................................................................................................................... 50
4-3-3- Management of task.......................................................................................................................... 50
4-3-4- Basic task structure........................................................................................................................... 51
Main program ......................................................................................................................................... 51
Subroutine............................................................................................................................................... 51
Branch to a label ..................................................................................................................................... 52
Operators ................................................................................................................................................ 52
a)
Arithmetical operators .............................................................................................................. 53
b)
Binary operators ....................................................................................................................... 53
c)
Unary operators ........................................................................................................................ 53
d)
Logical operators...................................................................................................................... 54
e)
Bits operators............................................................................................................................ 54
f)
String operators ........................................................................................................................ 54
g)
Relationship operators .............................................................................................................. 54
B) Tests .............................................................................................................................................. 54
a)
Simple tests............................................................................................................................... 54
b)
Multiple tests ............................................................................................................................ 55
c)
Loops........................................................................................................................................ 55
4-3-5- Event task structure .......................................................................................................................... 56
Events configuration............................................................................................................................... 56
Reading the events detected.................................................................................................................... 57
Clearing the events ................................................................................................................................. 57
Warnings................................................................................................................................................. 57
Example .................................................................................................................................................. 57
4-3-6- Ladder task structure ........................................................................................................................ 58
5-
PROGRAMMATION OF PLC................................................................................................................ 59
5-1- Basic task.................................................................................................................................................. 59
5-1-1- Digital inputs/outputs ....................................................................................................................... 59
A) Inputs reading................................................................................................................................ 59
B) Outputs writing.............................................................................................................................. 59
C) Outputs reading ............................................................................................................................. 59
D) Events handling............................................................................................................................. 60
E) State test ........................................................................................................................................ 60
5-1-2- Timings............................................................................................................................................. 60
A) Passive waiting.............................................................................................................................. 60
B) Active waiting ............................................................................................................................... 60
TIME ........................................................................................................................................................... 60
TIMER......................................................................................................................................................... 61
5-1-3- Events ............................................................................................................................................... 61
Signal or Diffuse and Wait Event................................................................................................................ 61
R403
-3-
SERAD S.A.