A7e1: L #AddSpeedDis_t
PUSH
*R
L 2.000000e+000
TAK
T LD 60
TAK
L #MaxSpeed_t
*R
L LD 60
TAK
/R
T #Up_P
L #DecSpeedDis_t
PUSH
*R
L 2.000000e+000
TAK
T LD 60
TAK
L #MaxSpeed_t
*R
L LD 60
TAK
/R
T #Down_P
L #WorkDis_t
L #TargetDis_t
-R
L #AddSpeedDis_t
TAK
-R
T #Temp_Num
L #Temp_Num
L 0.000000e+000
>=R
A #SpeedUp
JCN A7e3
L #Temp_Num
PUSH
*R
L -2.000000e+000
TAK
T LD 60
TAK
L #Up_P
*R
L LD 60
TAK
/R
L #MaxSpeed_t
+R
RND
T #DigitalValue
累加器1和累加器2的变化,PLC 3172PN/DP
最佳答案
A7e1: L #AddSpeedDis_t
PUSH
*R //A1=#AddSpeedDis_t*#AddSpeedDis_t
L 2.000000e+000 //A2=#AddSpeedDis_t*#AddSpeedDis_t,A1=2.0
TAK //A2=2.0 A1=#AddSpeedDis_t*#AddSpeedDis_t
T LD 60 //LD60=#AddSpeedDis_t*#AddSpeedDis_t
TAK //A2=#AddSpeedDis_t*#AddSpeedDis_t, A1=2.0
L #MaxSpeed_t //A1=#MaxSpeed_t,A2=2.0
*R //A1= #MaxSpeed_t*2.0
L LD 60 //A1=#AddSpeedDis_t*#AddSpeedDis_t, A2=#MaxSpeed_t*2.0
TAK //A1=#MaxSpeed_t*2.0 A2=#AddSpeedDis_t*#AddSpeedDis_t
/R //A1=#AddSpeedDis_t*#AddSpeedDis_t / #MaxSpeed_t*2.0
T #Up_P // A1=#AddSpeedDis_t*#AddSpeedDis_t / #MaxSpeed_t*2.0
大概的计算过程就是这样,弄清楚PUSH指令和TAK指令就明白了
提问者对于答案的评价:
谢谢,学习了
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc189728.html