Chapter 5 Instruction specifications

Sample program

R7E3

 

 

 

 

 

WM103 = 0

 

 

 

WM104 = H000A

WR0

 

 

WM105 = H0000

 

 

 

 

 

WM106 = 16

 

 

 

WM107 = H000A

WR100

 

 

WM108 = H0100

 

 

 

 

 

WM109 = 256

 

 

 

WM10A = 0

 

 

 

WM10B = H8002

 

 

 

WM10C = H800D

 

 

 

WM10D = 6

 

 

 

WM10E = 0

 

 

 

WR10 = H0200

 

R7E3

 

FUN 5 (WR10)

 

 

 

 

 

 

WR100 = 9

 

 

 

WR101 = H0231

 

 

 

WR102 = H3830

 

 

 

WR103 = H3031

 

 

 

WR104 = H3338

 

 

 

WR105 = H0D00

 

Switch

DIF0

 

R0

 

 

 

S

 

 

 

R5

 

 

 

S

 

 

TRNS 0 (WY10, WM100, R0)

R7E3 : 1st scan ON

Timeout = 0

Reserve area for data sending : 16 words from WR0

Reserve area for data receiving : 256 words from WR100

Data receiving definition

Start code : H02, End code : H0D

Communication speed : 19.2k bps

Format : 7 bits, even, 2 stop

Port 2 configured as general purpose port.

Sent data : 9 bytes

Inverter (SJ300/L300P) command

FWD RUN for station No.18 02 31 38 30 30 31 33 38 0D

(STX 18 00 1 38 CR) [38=BCC]

When the switch is ON, execution bit R0 is ON, and data is sent out from CPU port.

R5 enables data receiving from the other device.

0 (d, s, t)

Description

TRNS 0 parameter and sent data are configured at 1st scan by R7E3 contact.

When the switch is ON, execution bit R0 is ON, and data is sent out from CPU port.

TRNS

5-119

Page 169
Image 169
Hitachi NJI-350B manual Sample program, R7E3, WR0, DIF0