Vaisala Main Program Networks on Siemens S7 User manual

Type
User manual
Instruction Sheet
Main program networks on Siemens S7
with Vaisala K-Patents® refractometer
Totally Integrated
Automation Portal
S7_1200 / PLC_1 [CPU 1212C AC/DC/Rly] / Program blocks
Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering Automatic
Information
Title "Main Program Sweep (Cy‐
cle)"
Author Comment Family
Version 0.1 User-defined ID
Main
Name Data type Default value Comment
Input
Initial_Call
Bool Initial call of this OB
Remanence
Bool =True, if remanent data are available
Temp
Status
String
LED
Real
CCD
Real
nD
Real
T
Real
Tsens
Real
Traw
Real
RHsens
Real
CALC
Real
CONC
Real
PTraw
DInt
QF
Real
mA
Real
BGlight
DInt
Seq
DInt
Timestamp
DInt
Constant
Network 1:
This network connects to a K-PATENTS refractometer. "UDP_connect" must be set to '1' to connect. After that, 0->1 changes of "UDP_send" will trigger data traffic. Net‐
work 2 below is an example to do that.
"REFRACTOMETER_CONNECTION"
%FB7%FB7
"REFRACTOMETER_
CONNECTION_
DB_2"
%DB24%DB24
"UDP_connect"
%M10.
0
%M10.
0
"UDP_disconnect"
%M10.
1
%M10.
1
"UDP_send"
%M10.
3
%M10.
3
#Status
#LED
#CCD
#nD
#T
#Tsens
#Traw
#RHsens
#CALC
#CONC
#PTraw
#QF
#mA
#BGlight
#Seq
#Timestamp
EN
UDP_connect
UDP_
disconnect
UDP_send
ENO
Status
LED
CCD
nD
T
Tsens
Tra
w
RHsens
CAL
C
CON
C
PTra
w
QF
mA
BGlight
Seq
Timestamp
EN
UDP_connect
UDP_
disconnect
UDP_send
ENO
Status
LED
CCD
nD
T
Tsens
Tra
w
RHsens
CAL
C
CON
C
PTra
w
QF
mA
BGlight
Seq
Timestamp
Network 2:
This is an example network that triggers data traffic once in every second. A CPU clock memory bit can also be used.
TON
Time
R
"timer1_start"
%M4.0%M4.0
"IEC_Timer_0_DB"
%DB25%DB25
T#1S
"timer1_value"
%MD12%MD12
"timer1_start"
%M4.0%M4.0
"UDP_connect"
%M10.0%M10.0
"UDP_send"
%M10.3%M10.3
"UDP_send"
%M10.3%M10.3
IN
PT
Q
ET
Time
IN
PT
Q
ET
Time
  • Page 1 1
  • Page 2 2

Vaisala Main Program Networks on Siemens S7 User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI