|
|
|
|
发表人:CXY |
发表时间:2004/6/15 16:23:00 |
|
|
| 本栏论题: |
用西门子STEP7如何编辑一台电机运行时间累计值 [9119] |
|
以下是关于《用西门子STEP7如何编辑一台电机运行时间累计值》论题的回复(共5篇) |
|
回复:可以用SM0.4和SM0.5进行累加啊
可以用SM0.4和SM0.5进行累加啊
|
|
|
A "AUTO"
A "1HZ_ONESHOT"
= L 0.0
A L 0.0
JNB _001
L "DB8ReservedSystem2".secuht
L 1.000000e+000
+R
T "DB8ReservedSystem2".secuht
_001: NOP 0
A L 0.0
A(
L "DB8ReservedSystem2".secuht
L 6.000000e+001
>=R
)
= L 0.1
A L 0.1
JNB _002
L "DB8ReservedSystem2".secuht
L 0.000000e+000
*R
T "DB8ReservedSystem2".secuht
_002: NOP 0
A L 0.1
JNB _003
L "DB8ReservedSystem2".minuht
L 1.000000e+000
+R
T "DB8ReservedSystem2".minuht
_003: NOP 0
A L 0.1
A(
L "DB8ReservedSystem2".minuht
L 6.000000e+001
>=R
)
= L 0.2
A L 0.2
JNB _004
L "DB8ReservedSystem2".minuht
L 0.000000e+000
*R
T "DB8ReservedSystem2".minuht
_004: NOP 0
A L 0.2
JNB _005
L "DB8ReservedSystem2".houruht
L 1.000000e+000
+R
T "DB8ReservedSystem2".houruht
_005: NOP 0
A L 0.2
A(
L "DB8ReservedSystem2".houruht
L 5.000000e+003
>=R
)
JNB _006
L "DB8ReservedSystem2".houruht
L 0.000000e+000
*R
T "DB8ReservedSystem2".houruht
_006: NOP 0
|
|
|