Professional Documents
Culture Documents
Code Tayrobot Digtal
Code Tayrobot Digtal
Code Tayrobot Digtal
Automation Portal
Program blocks
Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID
Network 1:
%FC9000
"MHJ-PLC-Lab-Function-S712
00"
EN ENO
%M0.0 %Q0.0
"Mstar" "Light star"
%I0.2 %Q0.1
"Dừng khẩn cấp" "Light stop"
%M0.1
"Mstop"
Network 3:
%M0.2
"mkd"
%I1.3 %M0.4
"manual" "Mmanual"
Network 5:
Totally Integrated
Automation Portal
%I0.6 %M1.0
"cb bt B" "Mcb Bt B"
N S
%M0.6
"Tag_2"
Network 6:
%Q1.3
"vật A(1)"
%M1.0 %Q0.6
"Mcb Bt B" "bt B"
Network 7:
%M1.0 %Q0.7
"Mcb Bt B" "Ben B ra/vào"
Network 8:
%I1.4 %M1.5
"moving X" "Mmoving X"
N
%M1.3
"Tag_4"
Network 9:
%I1.6
%I1.1 "cb home up/ %M1.6
"cb hút" down ben B" "Mhut"
%M1.7
"Mmove X"
%M1.4 %M1.0
"Mmoving Z" "Mcb Bt B"
R
Network 10:
Totally Integrated
Automation Portal
%I1.6
%M0.3 %M1.1 "cb home up/ %Q0.3
"Mauto" "Mmove Z" down ben B" "move z"
%Q0.2 %M1.5
"move x" "Mmoving X"
%Q0.3
"move z"
%M1.6 %Q0.4
"Mhut" "hút"
%M1.7 %Q0.2
"Mmove X" "move x"
Network 12:
%DB1
"IEC_Counter_
0_DB"
%I1.0 CTU
"cb Ra" Int
CU Q
%I0.3 %QD30
"reset" R CV "counter"
0 PV
Totally Integrated
Automation Portal
Program blocks
MHJ-PLC-Lab-Function-S71200 [FC9000]
MHJ-PLC-Lab-Function-S71200 Properties
General
Name MHJ-PLC-Lab-Function- Number 9000 Type FC Language SCL
S71200
Numbering Manual
Information
Title Author Comment Family
Version 0.1 User-defined ID
0001
0002 #Value:=PEEK(area := 16#82,
0003 dbNumber := 0,
0004 byteOffset := 511);
0005 #Value := #Value + 1;
0006
0007 POKE(area := 16#82,
0008 dbNumber := 0,
0009 byteOffset := 511,
0010 value := #Value);
0011
0012 POKE(area:=16#81,
0013 dbNumber:=0,
0014 byteOffset:=1016,
0015 value:=#Value_01_DW);
0016 POKE(area := 16#81,
0017 dbNumber := 0,
0018 byteOffset := 1020,
0019 value := #Value_02_DW);
0020
0021 POKE(area := 16#81,
0022 dbNumber := 0,
0023 byteOffset := 511,
0024 value := B#16#00);
0025
0026 FOR #forVal := 0 TO 120 DO
0027 FOR #forVal_2:=0 TO 10 DO
0028 #rdTimeReturn:=RD_SYS_T(#outputTime);
0029 #rdTimeReturn := WR_SYS_T(#outputTime);
0030 #rdTimeReturn := RD_SYS_T(#outputTime);
0031 #rdTimeReturn := WR_SYS_T(#outputTime);
0032 END_FOR;
0033 #SyncVal:= PEEK(area := 16#81,
0034 dbNumber := 0,
0035 byteOffset := 511);
0036 IF #SyncVal = #CompVal THEN
0037 GOTO M_1;
0038 END_IF;
0039 END_FOR;
0040 RETURN;
0041
0042 M_1:
0043 POKE(area := 16#81,
Totally Integrated
Automation Portal
0044 dbNumber := 0,
0045 byteOffset := 511,
0046 value := B#16#0);
0047
0048
0049
Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA HMI/
OPC
UA
Static
CU Bool false True True True True False
CD Bool false True True True True False
R Bool false True True True True False
LD Bool false True True True True False
QU Bool false True True True True False
QD Bool false True True True True False
PV Int 0 True True True True False
CV Int 0 True True True True False