GE GFK-0804B manual Write Program Memory, Read Status, Status Word

Models: GFK-0804B

1 160
Download 160 pages 24.24 Kb
Page 94
Image 94

B

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

0memory is corrupted

1invalid program

2invalid instruction encountered

3(runtime error (such as Indirect Move to invalid address)

4 ± 6

reserved

7forced stop (PLC stopped by error or by programmer)

8I/Oproblem

9system timer malfunction

10 ± 14

reserved

15

Program mode (1 if in Program mode)

B-6

Micro PLC Programmer's Guide ± Aptil 1994

GFK-0804B

Page 94
Image 94
GE GFK-0804B manual Write Program Memory, Read Status, Status Word