Mitsubishi Electric MELSEC iQ-R Series User Manual page 182

Serial communication module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Program example
The following shows an example of a program used to write (register) data for initialization.
Writing data for initialization to the area of which registration number 8001H
Category
Label name
Module label
C24_1.bSts_UnitReady
C24_1.bSts_WatchdogTimerError
C24_1.wnForUserRegistrationNo8001H_D[0]
Label to be defined
Define the global label as shown below.
(0)
Turn the READY flag ON.
(3)
Designate initialization data registration.
(6)
Set the registration data byte count.
Set the user control data (control number).
Set the AT command for initialization to buffer memory.
Set the initialization flag.
(Item name)
Number of registered data bytes
User control data
Initialization command
7 COMMUNICATIONS BY THE MODEM FUNCTION
180
7.4 Startup of the Modem Function
Data register
D0
30
D1
1
D2
Initialization
to
command
D13
Description
Module READY
Watchdog timer error
For user registration number 8001H
(Address)
Buffer memory
Area for registration
No. 8001H
Un\G6912
30
Un\G6913
1
Un\G6914
Initialization
to
command
Un\G6925
to
Un\G6952
Device
X1E
X1F
U0\G6912
Data for initialization

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents