大家可以解释这段PLC代码意思吗?%,MX-O,CY1( )=ERA O1 512=ERA C1 256=ERA T1 256=ERA R1 256=ERA M1 M2000( )=ERA M4000 4127=ERA M4500 4563=ERA M4700 4855()=/FEEDHOL=/XFERINHENDREAPRG( ( SSTROBE OR MSTROBE)AND NOT M20)OR DFU I9 OR B5R561 =TG1
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 09:55:38
大家可以解释这段PLC代码意思吗?%,MX-O,CY1( )=ERA O1 512=ERA C1 256=ERA T1 256=ERA R1 256=ERA M1 M2000( )=ERA M4000 4127=ERA M4500 4563=ERA M4700 4855()=/FEEDHOL=/XFERINHENDREAPRG( ( SSTROBE OR MSTROBE)AND NOT M20)OR DFU I9 OR B5R561 =TG1
大家可以解释这段PLC代码意思吗?
%,MX-O,
CY1
( )=ERA O1 512=ERA C1 256=ERA T1 256=ERA R1 256=ERA M1 M2000
( )=ERA M4000 4127=ERA M4500 4563=ERA M4700 4855
()=/FEEDHOL=/XFERINH
END
REA
PRG
( ( SSTROBE OR MSTROBE)AND NOT M20)OR DFU I9 OR B5R561 =TG1 202 100
( NOT M20 AND NOT T202 )OR T203 =AUXEND
M20 AND MSTROBE=TG1 203 100
I1 = /EMERGEN
NOT I1=MSG1
()=/XFERINH
CNCREADY AND /ALARM AND NOT LOPEN=SERVO1ON=SERVO2ON=O41=O42
( NOT INCYCLE OR NOT I12) AND I2 AND NOT M2= M1
( NOT INCYCLE OR NOT I12 ) AND I2 = M2
I69 AND ( M1 XOR M4 ) = M4 = O33
( NOT INCYCLE OR NOT I13 ) AND I3 AND NOT M6 = M15
( NOT INCYCLE OR NOT I13 ) AND I3 = M6
I69 AND ( M15 XOR M7 ) = M7 = O34
REFPOIN1 AND REFPOIN2=SET M10= MSG3
O33 AND I12 AND I67 = SET M11 = MSG6
O34 AND I13 AND I68 = SET M12 = MSG5
(START AND I69 AND NOT I65 AND I66 AND M10 AND ( M11 OR M12 )AND ( O33 OR O34) )OR (MANUAL AND START AND /STOP) = CYSTART
NOT I65 AND I66 AND M10 AND ( M11 OR M12)= MSG2
I12 OR I13 =/STOP
I7 = DECEL1=MSG7
I8 = DECEL2=MSG8
CPS MBCD* EQ $3= SET M3= SET O40= MOV $FFFFFFFF MBCD1 0032
CPS MBCD* EQ $5= SET M50 = RES M3 = RES O40= MOV $FFFFFFFF MBCD1 0032
MSTROBE AND CPS MBCD* EQ $20 =SET M20= RES /FEEDHOL = SET O35= MOV $FFFFFFFF MBCD1 0032
M20 AND DFU I10 = SET M21
;M21 AND DFD I10 = SET M22
M21 AND DFD I10 = TG3 13 500
T13 = M40
DFD M40 =SET M22
M20 AND M22 = SET M31
DFU I9 = TG3 28 500
T28 = M28
DFD M28 = M29
M29 AND I9 = RES M32 = RES M20 = RES M21 = RES M22 = RES M30 = RES M31 = RES O35 =SET /FEEDHOL
( (M3 AND O40 AND I66 AND AUTOMAT AND INCYCLE AND M20 AND NOT I10 AND NOT I65 AND NOT M21 AND NOT M22)OR ( I65 AND I4 AND NOT I5 AND NOT I6 AND NOT I10 ) ) AND NOT I11 AND NOT O38 = O36
( ( O40 AND I66 AND INCYCLE AND M20 AND ( M21 OR I10 ) AND NOT I65 AND NOT M22 AND NOT M120 ) OR ( I65 AND NOT I4 AND I5 AND NOT I6 ) ) AND NOT I11 AND NOT O38 AND NOT M40 = O37
( M32 OR ( M22 AND M20 AND NOT I65 ) OR ( I65 AND NOT I4 AND NOT I5 AND I6 ) ) AND NOT I9 = O38
( DFU M21 OR T12 ) AND M21 = SET M120 = RES M121
M120 = TG2 10 2000
T10 = RES M120 = SET M121
M121 = TG2 12 2000
DFU M2 = SET M122 = SET O10
M122 = TG2 15 3000
T15 = RES M122 = RES O10
B5R561 = SET M32 = RES M3= RES M21 = RES M22 = RES M20 = RES M30 = SET M31 = RES O35 = RES O39 = SET /FEEDHOL
B10R563 = TG3 29 10000
T29 = O39
NOT I70=LIMIT+1
NOT I71=LIMIT-1
NOT I72=LIMIT+2
NOT I73=LIMIT-2
M2047=B8R502=B24R502=B9R502=B25R502=B10R502=B26R502
MANUAL AND B24R562= M5158= RES M5159= RES M5108= RES M5109
MANUAL AND B8R562= M5159=RES M5158=RES M5108=RES M5109
MANUAL AND B26R562= M5108=RES M5159=RES M5158=RES M5109
MANUAL AND B10R562= M5109=RES M5159=RES M5108=RES M5158
B6R561 OR B31R562=RES M5158=RES M5159=RES M5108=RES M5109
()=LIMIT+S=LIMIT-S=SERVOSON=GEAR1
I9=RES M32
END
大家可以解释这段PLC代码意思吗?%,MX-O,CY1( )=ERA O1 512=ERA C1 256=ERA T1 256=ERA R1 256=ERA M1 M2000( )=ERA M4000 4127=ERA M4500 4563=ERA M4700 4855()=/FEEDHOL=/XFERINHENDREAPRG( ( SSTROBE OR MSTROBE)AND NOT M20)OR DFU I9 OR B5R561 =TG1
2 - 树啊!
的公共无效createTree(树树,CachedRowSetDataProvider供应商,字符串idField,pidField字符串,字符串文本字段,字符串操作){
MethodExpression methodExpression =空;
FacesContext的上下文= FacesContext.getCurrentInstance(); / /当前实例
(action!= NULL){
应用程序的应用程序context.getApplication();
ELContext是elContext context.getELContext();
methodExpression =应用程序.getExpressionFactory().createMethodExpression(elContext,行动,String.class,新的Class [] {});
} / /上面的程序操作,我不太明白,主要是为了防止和空气问题.并初始化.
地图地图新的HashMap (); / /新地图
布尔的激活hasNext = provider.cursorFirst();/ / / /建立布尔变量时hasNext,重新提供先声夺人.
而(“激活hasNext”){
一个TreeNode节点=新的TreeNode();
字符串id =“树”+ provider.getValue(idField); / /拼接字符串.从提供者idfield获得.
字符串文本= String.valueOf(provider.getValue(在textField)); / /获取文字
node.setId(ID); / /设置属性
node.setText(文本); / /的setText
如果(methodExpression!= NULL){
node.setActionExpression的(methodExpression);}
map.put(ID,节点); / ,/到地图
激活hasNext = provider.cursorNext(); / /如果下一个循环继续
}
/ /重新启动
激活hasNext = provider.cursorFirst() ;
(激活hasNext){
字符串PID =“树”+的provider.getValue(pidField); / /获得传入的字符串PID.
字符串id =“树”+ provider.getValue(idField);
一个TreeNode pNode = map.get(PID)/ /从地图上删除传入的字符串 TreeNode的节点= map.get(ID);/ /同上
(pNode == NULL){
tree.getChildren()地址(节点);
/ /树加入
}其他{
pNode.getChildren的()地址(节点);
中的节点添加到pnod
}
激活hasNext = provider.cursorNext() / /设置为继续循环
}
}
,因为他们不知道的作用,我不是很了解,这是做!