![Panasonic FP2 Series Скачать руководство пользователя страница 91](http://html.mh-extra.com/html/panasonic/fp2-series/fp2-series_user-manual_262311091.webp)
Sample Programs
FP2 Serial Data Unit
8
−
5
8.1
Sample Programs
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.
X1
, K0
, K251 , K7 , DT200
F150 READ
X20
R0
DF
, K0
, I0DT0 , I1K 0
, K1
R0
R0
Y10
F151 WRT
R0
M %01#RDD00100 , DT100
F95 ASC ,
, K 17
, DT1
F0 MV
X0
Y10
M 00101
⊔⊔⊔⊔⊔⊔⊔
, DT106
F95 ASC ,
, H 0
, DT108
F6 DGT
, H 210
, H 0
, DT109
F0 MV
, K 100
, DT0
F0 MV
R0
(CALL 0)
DF
Specifies the FP2 serial data
unit in slot no.0.
Internal relay (R0) is turned on at
timing of send condition (X20).
Commands are stored.
Command storage address
Number of command bytes
BCC creation routine call
Data is written to address 1 of
shared memory (sent buffer of CH1).
After sending has begun, the send-
ing directive continues until sending
has been completed.
Data is read from address 251 of the
shared memory (received buffer of
CH1) at the timing of the reception
completed flag (X1).
is written to the shared memory address 1.
Specifies the FP2 serial data
unit in slot no.0.
is read to the data register DT200 to DT206.
The contents of 7
−
word of shared memory
address 251 to 257
Starting with the data register indicated by I0.
The word content specified by I1
next page
Содержание FP2 Series
Страница 1: ......
Страница 6: ...FP2 Serial Data Unit Table of Contents iv ...
Страница 18: ...FP2 Serial Data Unit Functions of Serial Data Unit 1 2 ...
Страница 22: ...FP2 Serial Data Unit Functions of Serial Data Unit 1 6 1 3 Restrictions on Units Combination ...
Страница 24: ...FP2 Serial Data Unit Parts and Functions 2 2 ...
Страница 30: ...FP2 Serial Data Unit Confirming the Unit Settings and Design Contents 3 2 ...
Страница 44: ...FP2 Serial Data Unit Communication with External Devices 4 2 ...
Страница 66: ...FP2 Serial Data Unit Precautions Regarding Serial Data Unit Operation and Programs 5 2 ...
Страница 72: ...FP2 Serial Data Unit Operation If an Error Occurs 6 2 ...
Страница 78: ...FP2 Serial Data Unit Specifications 7 2 ...
Страница 86: ...FP2 Serial Data Unit Specifications 7 10 7 4 Transmission Format ...
Страница 88: ...FP2 Serial Data Unit Sample Programs 8 2 ...
Страница 98: ...FP2 Serial Data Unit Sample Programs 8 12 8 2 Table of ASCII Codes ...
Страница 100: ...Record of changes FP2 Serial Data Unit R 2 ...
Страница 101: ......
Страница 102: ......