Mitsubishi Electric MELSEC iQ-R Series User Manual page 386

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

Advertisement

■Program example
The following shows an example of program for mode switching of the CH1 side interface.
Category
Label name
Module label
C24_1
C24_1.stnCH1.bSet_Req_ReceptionRead
C24_1.stnCH1.bSts_ReceptionAbnormalDetection
C24_1.stnCH1.bSts_ModeSwitchingProcessing
C24_1.stnCH1.bSet_Req_ModeSwitching
C24_1.stnCH1.uSet_SwitchingModeNum
C24_1.uSts_ModeSwitching_ParameterSetting_D
Label to be defined
Define the global label as shown below.
(0)
Change the operation mode to MC protocol format 1.
Set the transmission specifications.
Write the mode switching designation contents to the buffer memory.
Set the mode switching request.
(17)
Reset the mode switching request signal.
Read the mode switching request contents.
Mode switching completes.
(28)
Change the setting value of the communication protocol according to the communication specification.
Mode switching complete reset
(31)
Clear the mode switching request with the clear direction.
19 SWITCHING THE MODE AFTER STARTING
384
19.4 Mode Switching Method by Program
Description
Target module
CH1 Reception data read request
CH1 Reception abnormal detection
CH1 Switching mode
CH1 Mode switching request
CH1_Switching mode No. designation
Parameter setting error, mode switching
error status
Device
X3
X4
X6
Y2
U0\G144
U0\G515

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents