3) execution condition, 3) execution condition -21 – Sharp Z-336J User Manual

Page 98

Advertising
background image

9-21

Chapter 9: Message transfers

9

Write enable mode

Details

Mode 0
Mode 1
Mode 2

Writing to all of memory is prohibited

Writing is only enabled to data memory
Writing is enabled to all of memory

BLOC

: Bit location on the data memory

The register (file register) is to be designated using DSEG and DADR.
[Example] Register 09000

: DSEG = 00

(H)

, DADR = 0800

(H)

030000 of the file 1 : DSEG = 01

(H)

, DADR = 3000

(H)

The relay address is to be designated using DSEG, DADR, and BLOC.
The destination is made by the combination of the file address and the bit location.
[Example] Relay 07252: DSEG = 00

(H)

, DADR = 01D5

(H)

, BLOC = 02

(H)

(bit 2 of the file address 000725 (]0725))

TADR

: Timer/counter number

To assign a timer/counter number, use TADR. (Hexadecimal notation)

SADR

: System memory address

To assign a system memory address, use SADR. (Hexadecimal notation)
SEG should be assigned in the command. Always specify 08

(H)

.

(3) Execution condition

1

1

1

1

1

Write enable mode

Each command will be executed or depending on the current status of the write enable mode.

When the power is first applied, the module is in "mode 0." Therefore, if you want to write data
from the host computer, change to "mode 1 or "mode 2" using the setting command (command
code F9

(H)

). The current status can be read using the reading command (command code E9

(H)

)

for the write enable command.

2

2

2

2

2

PC operation status

Some commands can be executed when the PC halts operation (writing programs: Command
code 14

(H)

etc.). Other commands can be executed whether the PC is halted or is running (read-

ing programs: Command code 04

(H)

etc.)

JW20H
J-board (Z-300 series)

JW30H
J-board (Z-500 series)

JW50H/70H/100H

TADR

0000 to 01FF

(H)

0000 to 03FF

(H)

0000 to 03FF

(H)

JW20H
J-board (Z-300 series)

JW30H
J-board (Z-500 series)

JW50H/70H/100H

SADR

0000 to 00FF

(H)

0000 to 047F

(H)

0000 to 047F

(H)

Advertising
This manual is related to the following products: