这段程序可以给你参照一下,自己转换成图形。
AN "PLC运行"
= L 40.0
A(
A(
A L 40.0
JNB _001
L DB5.DBD 32
T DB5.DBD 36
SET
SAVE
CLR
_001: A BR
)
JNB _002
L DB5.DBD 28
T DB5.DBD 32
SET
SAVE
CLR
_002: A BR
)
JNB _003
L DB5.DBD 24
T DB5.DBD 28
_003: NOP 0
A(
A(
A L 40.0
JNB _004
L DB5.DBD 20
T DB5.DBD 24
SET
SAVE
CLR
_004: A BR
)
JNB _005
L DB5.DBD 16
T DB5.DBD 20
SET
SAVE
CLR
_005: A BR
)
JNB _006
L DB5.DBD 12
T DB5.DBD 16
_006: NOP 0
A(
A(
A L 40.0
JNB _007
L DB5.DBD 8
T DB5.DBD 12
SET
SAVE
CLR
_007: A BR
)
JNB _008
L DB5.DBD 4
T DB5.DBD 8
SET
SAVE
CLR
_008: A BR
)
JNB _009
L DB5.DBD 0
T DB5.DBD 4
_009: NOP 0
A(
A L 40.0
JNB _00a
L PIW 752
T #TEMP01
SET
SAVE
CLR
_00a: A BR
)
JNB _00b
L #TEMP01
T DB5.DBD 0
_00b: NOP 0
A(
A(
A L 40.0
JNB _00c
L #TEMP01
L DB5.DBD 4
+D
T #TEMP01
AN OV
SAVE
CLR
_00c: A BR
)
JNB _00d
L #TEMP01
L DB5.DBD 8
+D
T #TEMP01
AN OV
SAVE
CLR
_00d: A BR
)
JNB _00e
L #TEMP01
L DB5.DBD 12
+D
T #TEMP01
_00e: NOP 0
A(
A(
A L 40.0
JNB _00f
L #TEMP01
L DB5.DBD 16
+D
T #TEMP01
AN OV
SAVE
CLR
_00f: A BR
)
JNB _010
L #TEMP01
L DB5.DBD 20
+D
T #TEMP01
AN OV
SAVE
CLR
_010: A BR
)
JNB _011
L #TEMP01
L DB5.DBD 24
+D
T #TEMP01
_011: NOP 0
A(
A(
A L 40.0
JNB _012
L #TEMP01
L DB5.DBD 28
+D
T #TEMP01
AN OV
SAVE
CLR
_012: A BR
)
JNB _013
L #TEMP01
L DB5.DBD 32
+D
T #TEMP01
AN OV
SAVE
CLR
_013: A BR
)
JNB _014
L #TEMP01
L DB5.DBD 36
+D
T #TEMP01
_014: NOP 0
A L 40.0
JNB _015
L #TEMP01
L L#10
/D
T #TEMP01
_015: NOP 0