GE GFK-0804B Universal Remote User Manual


 
B
B-6 Micro PLC Programmer’s Guide – Aptil 1994
GFK-0804B
Write Program Memory
ID 06 count addr_high addr_low data1 data2 ...
Reply:
ID 06 count addr_high addr_low
ID – PLC ID number
count – number of instruction words to write
addr_high – High byte of address of the first instruction to write
addr_low – Low byte of address of the first instruction to write
dataN – Data to write
Read Status
ID 07
Reply:
ID 07 stat_high stat_low pgm_siz_h pgm_siz_l mod0 mod1 ... mod13
ID – PLC ID number
stat_high – High byte of status word
stat_low – Low byte of status word
pgm_siz_h – High byte of program size (in words)
pgm_siz_l – Low byte of program size
modN Type of module in slot N. It may be:
0 – not installed
1 – 24VDC Input 16 pts
2 115VAC Relay Output 8 pts
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)