Mitsubishi Electric MELSEC iQ-R Series User Manual page 186

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

Advertisement

■Program example
An example of a program used for writing data for connection is shown below.
Example of writing data for connection to the registration number 8002H area
Category
Label name
Module label
C24_1.bSts_UnitReady
C24_1.bSts_WatchdogTimerError
C24_1.wnForUserRegistrationNo8002H_D[0]
Label to be defined
Define the global label as shown below.
(0)
Turn the READY flag ON.
(3)
Issue the registration command of data for connection.
(6)
Set the number of registered data bytes.
Clear the storage device of data for connection.
Set the connection target telephone number.
Set the external line outgoing number (send 0).
Set the line type to 'Tone'.
Write the data for connection to buffer memory.
Turn the data for connection registration completion flag ON.
(Item name)
Number of registration
data bytes
Data for connection
7 COMMUNICATIONS BY THE MODEM FUNCTION
184
7.4 Startup of the Modem Function
Data register
D0
80
D1
to
(Connection data)
D22
D23
(Open)
to
D40
Description
Module READY
Watchdog timer error
For user registration number 8002H
(Address)
Buffer memory
Area for registration No. 8002H
Un\G6953
80
Un\G6954
to
(Connection data)
Un\G6975
Un\G6976
to
(Open)
Un\G6993
Device
X1E
X1F
U0\G6953

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents