Bcc Automatic Addition Sent Program - Panasonic FP2 User Manual

Serial data unit
Hide thumbs Also See for FP2:
Table of Contents

Advertisement

FP2 Serial Data Unit
8.1.1.2

BCC Automatic Addition Sent Program

In this program, when a command is set in a data register and X20 is turned on, the BCC
is added automatically after the command, and the data is sent.
DT0: Address at which command is stored
DT1: Number of command bytes (excluding BCC)
For this program, the serial data unit should be installed in slot 0.
X20
DF
R0
F95 ASC ,
F95 ASC ,
F6 DGT
F0 MV
F0 MV
F0 MV
R0
R0
F151 WRT
Specifies the FP2 serial data
unit in slot no.0.
Starting with the data register indicated by I0.
The word content specified by I1
is written to the shared memory address 1.
R0
X0
Y10
X1
DF
F150 READ
Specifies the FP2 serial data
unit in slot no.0.
The contents of 7−word of shared memory
address 251 to 257
is read to the data register DT200 to DT206.
M %01#RDD00100 , DT100
M 00101
, DT106
⊔⊔⊔⊔⊔⊔⊔
, H 0
, H 210
, DT108
, H 0
, DT109
, K 100
, DT0
, K 17
, DT1
, K0
, I0DT0 , I1K 0
, K0
, K251 , K7
R0
Internal relay (R0) is turned on at
timing of send condition (X20).
Commands are stored.
Command storage address
Number of command bytes
(CALL 0)
BCC creation routine call
Data is written to address 1 of
, K1
shared memory (sent buffer of CH1).
Y10
After sending has begun, the send-
ing directive continues until sending
has been completed.
, DT200
Data is read from address 251 of the
shared memory (received buffer of
CH1) at the timing of the reception
completed flag (X1).
Sample Programs
8.1
Sample Programs
next page
8 − 5

Advertisement

Table of Contents
loading

Table of Contents