GE GFK-0804B 用户手册

下载
页码 160
B
B-7
GFK–0804B
Appendix B Micro PLC Protocol
Start Program
ID 08
Reply:
ID 08 stat_high stat_low
stat_high
– High byte of status word
stat_low
– Low byte of status word
Status Word:
bits 0 – 7 are for fatal conditions (stopping the PLC)
bits 8 – 11 are for non-fatal conditions
bit 15 is informational
0
memory is corrupted
1
invalid program
2 invalid 
instruction 
encountered
3
(runtime error (such as Indirect Move to invalid address)
4 – 6 
reserved
7
forced stop (PLC stopped by error or by programmer)
8 I/O 
problem
9
system timer malfunction
10 – 14 
reserved
15
Program mode (1 if in Program mode)
Stop Program
ID 09
Reply:
ID 09 stat_high stat_low
stat_high
– High byte of status word
stat_low
– Low byte of status word
Error Reply
ID 8x error_code
8x is the command code to which this is the reply plus 128 (80h).
error codes:
1      
Receive buffer overflow
2
Checksum error
3
Illegal command code
4
Illegal command format
5
Block size too big or zero
6
Cannot modify program while running
7
Cannot run while switch is in PROG position
8
Address out of range