Mitsubishi Electric MELSEC iQ-R Series User Manual page 205

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

Advertisement

Considerations during the line disconnection
• Prior to data communication with target devices, determine when and which station will perform the line connection (dialing)
and line disconnection processing to the target device.
• If the line is disconnected during data transmission, transmission processing will be performed depending on the signal
status of the C24 RS-232 interface.
• If the line is disconnected during data reception, data reception will be disabled.
This may cause an error occurrence such as a reception time out.
• When data communication is not performed for the period equivalent to the no-communication interval time designation,
C24 will automatically disconnect the line.
When the line is disconnected, the 'Connection' (X12) and the 'Modem initialization completion' (X10) turn OFF, and the
'Modem disconnection completion' (X14) turns ON.
To turn OFF the 'Modem disconnection completion' (X14), turn ON the 'Modem disconnection request' (Y12) for a second
after the 'Modem disconnection completion' (X14) turned ON.
Program for line disconnection
A program example for line disconnection is shown below.
■Program example
Category
Label name
Module label
C24_1.stnCH1.bSts_TransmissionNormalCompletion
C24_1.stnCH1.bSts_TransmissionAbnormalEnd
C24_1.bSts_ModemInitializationCompletion
C24_1.bSts_DialProcessing
C24_1.bSts_ConnectionProcessing
C24_1.bSts_Initialization_Connection_AbnormalCompletion
C24_1.bSts_DisconnectionCompletion
C24_1.bSts_UnitReady
C24_1.bSts_WatchdogTimerError
C24_1.stnCH1.bSet_Req_ReceptionRead
C24_1.stnCH1.bSts_ReceptionAbnormalDetection
C24_1.stnCH1.bSet_Req_Transmission
C24_1.stnCH1.bSet_Req_ReceptionReadCompletion
C24_1.bSet_Req_ModemInitialization
C24_1.bSet_Req_Connection
C24_1.bSet_Req_Disconnection
C24_1.uErrorCode_ModemFunction_D
C24_1.wnForUserRegistrationNo8001H_D[0]
C24_1.wnForUserRegistrationNo8002H_D[0]
Label to be defined
Define the global label as shown below.
Description
CH1 Transmission normal completion
CH1 Transmission abnormal completion
Modem initialization completion
Dialing
Connection
Initialization/connection abnormal
completion
Modem disconnection completion
Module READY
Watchdog timer error
CH1 Reception data read request
CH1 Reception abnormal detection
CH1 Transmission request
CH1 Reception data read completion
Modem initialization request
Connection request
Modem disconnection request
Modern function error code
For user registration number 8001H
For user registration number 8002H
7 COMMUNICATIONS BY THE MODEM FUNCTION
7.4 Startup of the Modem Function
Device
X0
7
X1
X10
X11
X12
X13
X14
X1E
X1F
X3
X4
Y0
Y1
Y10
Y11
Y12
U0\G545
U0\G6912
U0\G6953
203

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents