Chapter 8 Communication Functions

8.4.3Instructions

1)No protocol receive(DRCV)

DRCV

No protocol receive

 

Instruction

 

 

 

 

 

Available Device

 

 

 

 

 

 

No. of

 

Flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M

P

K

L

F

T

C

S

 

D

 

#D

Integer

step

Error

Zero

Carry

 

 

 

 

 

 

 

 

 

 

 

 

 

(F110)

(F111)

(F112)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ch

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Cw

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag

 

 

 

 

 

 

 

 

 

 

Designation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ch

 

Designated communication channel

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Error

Error flag turns on, when designating area is over.

 

 

CW

 

Designated format of receiving frame

 

 

 

 

 

(F110)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D

Device address which is stored communication data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SS

 

Device address which is displayed communication

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

status

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DRCV

Ch

Cw

D

SS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(1)Function

When the execution condition is on, the communication starts with No protocol.

Received data is stored in device ‘D’

If received data is not match to the designated format by ‘Cw’, data is not saved to ‘D’

The communication status is saved in ‘SS’ .

(2)Example program

When the execution condition M0000 is on, the communication starts with channel 1

When ‘EXT(h’03)’ is received, Received frames are saved to D0100

When NDR is on, the length of received frames is saved to M010 by byte.

Length of received data

error bit Done

8-69

Page 259
Image 259
LG Electronics 120S user manual Communication Functions Instructions, No protocol receiveDRCV, Drcv