基于西门子S系列PLC定时功能的实现.pdf
- 文档编号:3209861
- 上传时间:2022-11-20
- 格式:PDF
- 页数:47
- 大小:1.34MB
基于西门子S系列PLC定时功能的实现.pdf
《基于西门子S系列PLC定时功能的实现.pdf》由会员分享,可在线阅读,更多相关《基于西门子S系列PLC定时功能的实现.pdf(47页珍藏版)》请在冰豆网上搜索。
系LC系LC系LC系LC?
必0年息必0年息必0年息必0年息?
年年年年?
www.PLCwww.91HMI.comTheImplementationofTimerTheImplementationofTimerTheImplementationofTimerTheImplementationofTimerFunctionBasedontheSiemensFunctionBasedontheSiemensFunctionBasedontheSiemensFunctionBasedontheSiemensS7-300SeriesPLCS7-300SeriesPLCS7-300SeriesPLCS7-300SeriesPLC?
S描始息00S描始息00S描始息00S描始息00?
系LC系LC系LC系LC?
www.PLCwww.91HMI.com?
PLC?
www.PLCwww.91HMI.com1.1?
SIEMENSS7-300PLC?
CPU?
烁累节?
清I展类?
I展类?
而程?
www.PLCwww.91HMI.com?
应输闪t?
式Byte式Byte?
1.2?
PLC?
模?
因?
增?
是是是?
s模式用?
描程态?
而www.PLCwww.91HMI.com?
1.2?
PLC?
FX2OMRON?
C?
ON?
Off?
FX2SIEMENSSP?
TONTOFwww.PLCwww.91HMI.com?
PLC?
1?
2?
3?
4?
www.PLCwww.91HMI.com2.1?
必?
年?
而?
展而而?
而累展而特?
而环?
www.PLCwww.91HMI.com2.1?
S7-300?
(而累)(而累)(而累)(而累)?
(而特)(而特)(而特)(而特)?
(而?
)(而?
)(而?
)(而?
)?
(而而)(而而)(而而)(而而)?
(而环)(而环)(而环)(而环)式扩描式扩描式扩描式扩描?
扩扩扩扩?
www.PLCwww.91HMI.com?
1?
SD?
类等类等类等类等?
2.1.1?
www.PLCwww.91HMI.com2.1.1?
X0T1SDS5T#10ST1Y0?
1?
(E01)www.PLCwww.91HMI.com2.1.1?
X0T1SDS5T#10S?
2?
(E02_1)M0M0X1T1Y0www.PLCwww.91HMI.com?
2?
SS?
类等类等类等类等?
2.1.1?
www.PLCwww.91HMI.comX0T1SSS5T#10S?
2?
(E02_2)T1Y0X1T1R2.1.1?
www.PLCwww.91HMI.com?
3?
(E03_1)2.1.1?
X0T0SDS5T#10SY0X0T0www.PLCwww.91HMI.com?
3?
SP?
类ff类ff类ff类ff?
2.1.1?
www.PLCwww.91HMI.comS5T#10SX0T0SPY0T0?
3?
(E03_2)2.1.1?
www.PLCwww.91HMI.comX1T1SDS5T#10SY1?
4?
(E04_1)2.1.1?
Y1T1www.PLCwww.91HMI.com?
4?
SE?
类ff类ff类ff类ff?
2.1.1?
www.PLCwww.91HMI.comX1T1SES5T#10SY1T1?
4?
(E04_2)2.1.1?
www.PLCwww.91HMI.com?
5?
(E05_1)2.1.1?
M0Y0T0SDS5T#10SM2M2X0NM1M0X0M0T0T0www.PLCwww.91HMI.com?
5?
SF?
能类环能类环能类环能类环?
2.1.1?
www.PLCwww.91HMI.com?
5?
(E05_2)T0Y0X0T0SFS5T#10S2.1.1?
www.PLCwww.91HMI.com2.1.1?
SPSESDSSSF?
,?
,类ff类ff类ff类ff?
,类等类等类等类等?
能类环能类环能类环能类环www.PLCwww.91HMI.com?
6?
(?
/?
)(E06)X0T0SDS5T#2ST1T1T0SDS5T#1SY0能?
能?
能?
能?
能应能应能应能应能应能应能应能应?
能?
能?
能?
能?
2.1.2?
www.PLCwww.91HMI.com2.1.2?
7?
(E07)T0T1SDS5T#10msT0SDS5T#2s990msX0C0SCC#5C0CDY0C0C0X0RT1X0C0www.PLCwww.91HMI.com2.1.2?
8?
(E08)T1T2SDS5T#5SY0X0Y2T1X0T0SDS5T#5ST0T1SDS5T#5ST2Y1T0T0T1www.PLCwww.91HMI.com?
必?
年?
系LC?
2?
1?
2?
2.2?
1?
www.PLCwww.91HMI.com必0年息始年始据必无?
OB?
-?
-?
0?
27?
-?
FB?
-?
-?
FC?
-?
-?
DB?
-?
DB?
-?
SFB?
-FB?
CPU?
SFC?
-FC?
CPU?
SDB?
-?
1.?
2.2.1PLC?
www.PLCwww.91HMI.com必0年息始年始据息0?
类B类B类B类B?
烁累节烁累节烁累节烁累节?
OB1FCFBSFCSFB?
OBsFCFB?
2?
2.2.1PLC?
www.PLCwww.91HMI.com必0年息始年始据息年OB10.17(?
器器器器OB80.87(?
器器器器OB20.23(?
器器器器?
OB30.38(?
)?
OB40.47(?
器器器器?
OB102OB100OB101?
OB1OB121,122(?
器器器器?
,OB?
,OB2.2.1PLC?
www.PLCwww.91HMI.com2.2.2?
类B应?
类B应?
类B应?
类B应?
类B应提类B应提类B应提类B应提类B态?
类B态?
类B态?
类B态?
类B态新类B态新类B态新类B态新www.PLCwww.91HMI.com必0年息始年始据息息?
1?
(OB10?
OB17)?
8?
SFC28SFC31?
HWConfig=CPU?
2.2.2?
www.PLCwww.91HMI.com必0年息始年始据息意?
9?
:
?
(E09)www.PLCwww.91HMI.com必0年息始年始据息技?
2?
OB30?
OB38?
HWConfig=CPU?
OB?
OB35?
SFC39SFC42?
2.2.2?
RUNOB35OB35OB35IntervalOOB1B1OB1OB1OB1OB1OB1OB1IntervalIntervalwww.PLCwww.91HMI.com必0年息始年始据息据?
10?
(E10)www.PLCwww.91HMI.com2.3?
1:
1?
?
CPU?
:
www.PLCwww.91HMI.com必0年息始年始据息方?
11?
(E11)www.PLCwww.91HMI.com2.4?
CPU?
PLC?
CPU?
OB1?
:
OB1_PREV_CYCLE?
www.PLCwww.91HMI.com必0年息始年始据意0?
1?
FB1?
100ms?
I:
IN_T_S=OB1_PREV_CYCLETime_Base=100M:
Counter_m=Counter_m+IN_T_SSCR=Counter_m-C_100msecif(SCRTime_Base)C_100msec=C_100sec+Trunc(SCR/Time_Base)*Time_BaseSCR=Trunc(SCR/Time_Base)O:
Out_100msec=Out_100msec+SCR?
应?
ms?
应?
ms?
应?
ms?
应?
ms?
2.4?
www.PLCwww.91HMI.com必0年息始年始据意年0000041400180480909039040321Out_100msec300200100C_100msec11501100113050SCRIN_T_SCounter_m505080130702001503502.4?
www.PLCwww.91HMI.com必0年息始年始据意必2.4?
L#IN_T_SL0-IJMZM001L#IN_T_SL#Counter_m+IT#Counter_mL#C_100msec-IT#SCRL#Time_Base-IJMZM001?
环B应环B应环B应环B应?
L#SCRL#Time_Base/IL#Time_Base*IL#C_100msec+IT#C_100msecL#SCRL#Time_Base/IT#SCRL#Out_100msec+IT#Out_100msecM001:
NOP0www.PLCwww.91HMI.com必0年息始年始据意息?
2?
FC1?
ON?
I:
Enabled=TrueTimer_Set=100Time_Count=FB1.Out_100msecAcc_M=MW10Acc_T=MW12M:
if(Acc_M=0)Acc_M=Time_CountAcc_T=Time_Count-Acc_Mif(Acc_TTimer_Set)O:
Out_timer=True?
ON?
2.4?
www.PLCwww.91HMI.com必0年息始年始据意意2.4?
A#EnabledJCM001L0T#Acc_MR#Out_TimerJUM000M001:
L#Acc_ML0-IJNM002L#Time_CountT#Acc_M?
环烁应环烁应环烁应环烁应?
M002:
L#Time_CountL#Acc_M-IT#Acc_TL#Timer_Set-IJMM000S#Out_TimerM000:
NOP0www.PLCwww.91HMI.com必0年息始年始据意技?
12?
(E12)CALLFB1,DB1IN_T_S:
=#OB1_PREV_CYCLETime_Base:
=100Out_100msec:
=C_100msecAX0ANT_1=X_0CALLFC1Enabled:
=X_0Timer_Set:
=100Time_Count:
=C_100msec“Acc_M:
=MW12Acc_T:
=MW14Out_Timer:
=T_0CALLFC1Enabled:
=T_0Timer_Set:
=100Time_Count:
=C_100msecAcc_M:
=MW16Acc_T:
=MW18Out_Timer:
=T_1AT_0=Y0?
www.PLCwww.91HMI.com?
年?
必?
意?
息?
大?
PID?
www.PLCwww.91HMI.comwww.PLCwww.91HMI.com
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 西门子 系列 PLC 定时 功能 实现