- No category
advertisement
9 CONTENTS AND REGISTRATION OF THE USER FRAMES FOR DATA
COMMUNICATION
MELSEC-Q
9.3 Precautions when Registering, Reading, Deleting and Using User Frames
The following shows the precautions which should be observed when registering user frames and using registered user frames to transmit data to and receive data correctly from the external device.
(1) Precautions when registering, reading or deleting user frames
(a) User frames can be registered using one of the following methods. However, an user frame to be registered to the flash ROM could be registered by the utility package (GX Configurator-SC) dedicated to the Q series C24 as much as possible.
1) Registering via the utility package (GX Configurator-SC) for the Q series
C24.
2) Registering with the dedicated instruction "PUTE" from the PLC CPU.
3) Registering from an external device with command "1610" through communication using the MC protocol.
(b) The following settings are required when registering or deleting user frames.
1) Switch setting via GX Developer
Set the setting modification to Enable in the transmission setting.
2) Setting via GX Configurator-SC
Set the flash ROM write allow/prohibit setting to Allow on the monitor/test screen.
To set from the PLC CPU, write "1" in the following buffer memory at the startup of the Q series C24 (when the ready signal rises).
Flash ROM write allow/prohibit designation area (address: 2000
H
)
(c) To register, read or delete user frames from the PLC CPU, perform the operation while there is no data communication in progress with the external device.
(d) An user frame having only a sum check code as changeable data cannot be registered. To register a sum check code, add arbitrary data.
(e) Register a receive user frame in the Q series C24 flash ROM.
(f) The changeable data (05
H
to F9
H
) can be specified at only one place in the last frame.
9 - 11 9 - 11
9 CONTENTS AND REGISTRATION OF THE USER FRAMES FOR DATA
COMMUNICATION
MELSEC-Q
(2) Precautions when using user frames
(a) To send/receive data using the user frames, it is necessary to set the user frame number to be used in the buffer memory prior to data transmission/reception (receive user frames must be set at the startup of the
Q series C24).
The user frame number to be used can be set from the PLC CPU. However, please try to register frames using the utility package (GX Configurator-SC) of the Q series C24.
(b) Set the receive user frame number by the PLC CPU to show the procedure to receive data.
Receive user frame data by performing the following operations sequentially.
(chapter 11 explains steps 2) and 3).)
1) If an user frame used in data reception was registered from PLC CPU, restart PLC CPU.
2) When starting the Q series C24, set the receive user frame No. to the buffer memory and write [1] to buffer memory user frame use enable/disable designation area (addresses: AD
H
/14D
H
).
3) After the value of the buffer memory user frame use enable/disable designation area changes to [2], start receiving data.
4) Check if the data from the external device was received normally.
(c) If the Q series C24 receives additional code data while receiving data with the non procedure protocol, it does not assume that the last byte of data is the following control data.
• Data received as user frame first frame, last frame (See Sections 9.1 and
9.2.)
• Receive complete code data
Therefore, do not set a user frame containing data receive additional code data as a non procedure protocol receive user frame.
(d) The arbitrary data area of a message received from an external device cannot include data with the same contents (same code) as the last frame.
(Example)
User frame
(first frame)
Arbitrary dat area
User frame
(last frame)
(e) In the following cases, set the data bit length of the transmission specification to 8 bits.
(It is set in the "transmission setting" of switch setting by GX Developer on the Q series C24 side.)
1) When transmitting and receiving the sum check code of the variable data as binary data
(Write code: FF
H
, EE
H
/FF
H
, F0
H
/FF
H
, F4
H
/FF
H
, F6
H
)
2) When transmitting and receiving a user frame containing data codes 80
H to FF
H
9 - 12 9 - 12
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 2 SAFETY PRECAUTIONS
- 6 REVISIONS
- 7 INTRODUCTION
- 7 CONTENTS
- 14 About the Manuals
- 15 The Manual's Use and Structure
- 17 About the Generic Terms and Abbreviations
- 19 Definitions and Descriptions of Terminology
- 21 1 OVERVIEW
- 21 1.1 Overview
- 26 1.2 Functions Added/Changed by Function Version B
- 27 2 USING THE PLC CPU MONITORING FUNCTION
- 27 2.1 Overview
- 29 2.2 About the PLC CPU Monitoring Function
- 29 2.2.1 Data registration for using the PLC CPU monitoring function
- 29 2.2.2 PLC CPU monitoring information
- 31 2.2.3 Timing for PLC CPU monitoring
- 32 2.2.4 Timings of transmission and notification of monitoring results to the external device
- 35 2.2.5 Transmission methods of monitoring results and transmission data to the external device
- 46 2.2.6 Execution sequence for using the PLC CPU monitoring function
- 47 2.3 Settings for Using the PLC CPU Monitoring Function
- 47 2.3.1 System setting items for the PLC CPU monitoring function
- 52 2.3.2 How to register and cancel the PLC CPU monitoring function
- 54 2.4 Precautionary Notes for Using the PLC CPU Monitoring Function
- 56 3 COMMUNICATIONS BY THE MODEM FUNCTION
- 56 3.1 Overview
- 57 3.1.1 Features
- 60 3.1.2 Function list
- 61 3.1.3 Comparisons with related devices
- 62 3.2 System Configuration
- 62 3.2.1 System configuration when performing data communication with an external device
- 63 3.2.2 System configuration when using the notification function
- 64 3.2.3 System configuration when connecting GX Developer
- 65 3.2.4 Precautions for system configurations
- 67 3.3 Specifications
- 67 3.3.1 Transmission specifications
- 68 3.3.2 Specification of connectable modems/terminal adapters
- 71 3.3.3 Compatibility with the QCPU remote password function
- 77 3.3.4 Compatibility with the callback function
- 86 3.3.5 I/O signals with the PLC CPU
- 88 3.3.6 Buffer memory
- 101 3.3.7 Precautions when using the modem function
- 107 3.4 Start-up of the Modem Function
- 107 3.4.1 Start-up procedures when communicating data with external devices
- 110 3.4.2 Initial settings of the serial communication module
- 113 3.4.3 Register/read/delete of the initialization data
- 118 3.4.4 Register/read/delete of the data for connection
- 123 3.4.5 Initialization of modem/terminal adapter
- 127 3.4.6 Line connection
- 133 3.4.7 Data communication and notification
- 139 3.4.8 Line disconnection
- 142 3.5 Sample Programs
- 143 3.5.1 Sample program for data communication-1
- 149 3.5.2 Sample program for data communication-2
- 158 3.5.3 Sample program for notification
- 161 4 RECEIVING DATA WITH AN INTERRUPT PROGRAM
- 162 4.1 Settings for Receiving Data Using an Interrupt Program
- 162 4.2 Interrupt Program Startup Timing
- 163 4.3 Reception Control Method Using an Interrupt Program
- 164 4.4 Programming
- 164 4.4.1 Program example
- 165 4.4.2 Precautions when receiving data with an interrupt program
- 167 5 CHANGING SEND AND RECEIVE DATA LENGTH UNITS TO BYTE UNITS (WORD/BYTES UNITS SETTING)
- 169 6 CHANGING THE DATA COMMUNICATIONS MONITORING TIMES
- 170 6.1 No-Reception Monitoring Time (timer 0) Setting
- 175 6.2 Response Monitoring Time (timer 1) Setting
- 178 6.3 Transmission Monitoring Time (timer 2) Setting
- 181 6.4 Message Wait Time Setting
- 182 7 DATA COMMUNICATIONS USING DC CODE TRANSMISSION CONTROL
- 183 7.1 Control Contents of DTR/DSR (ER/DR) Signal Control
- 185 7.2 Control Contents of DC Code Control
- 188 7.3 Precautions when Using the Transmission Control Functions
- 190 8 DATA COMMUNICATIONS USING HALF-DUPLEX COMMUNICATIONS
- 190 8.1 Half-duplex Communications
- 191 8.2 Data Transmission and Reception Timing
- 195 8.3 Changing the Communication System
- 196 8.4 Connector Connections for Half-duplex Communications
- 197 8.5 Half-duplex Communications Precautions
- 198 9 CONTENTS AND REGISTRATION OF THE USER FRAMES FOR DATA COMMUNICATION
- 198 9.1 User Frame Types and Contents During Communication
- 198 9.1.1 User frames to be registered and used by the user
- 204 9.1.2 Default registration frame (read only)
- 205 9.2 Transmission/Reception Processing Using User Frame Register Data
- 208 9.3 Precautions when Registering, Reading, Deleting and Using User Frames
- 210 9.4 Register/Read/Delete User Frames
- 213 9.4.1 Registering user frames
- 214 9.4.2 Reading user frames
- 215 9.4.3 Deleting user frames
- 216 10 ON-DEMAND DATA COMMUNICATIONS USING USER FRAMES
- 216 10.1 User Frame Data Communications Function
- 217 10.2 User Frame Types and Registration
- 217 10.3 User Frame On-Demand Data Transmission and Buffer Memory Used
- 219 10.4 On-Demand Function Control Procedure During User Frame Use
- 219 10.4.1 Data communication using the ASCII code
- 221 10.4.2 Data communications using the binary code
- 223 10.5 Example of an On-Demand Data Transmission Program Using User Frames
- 225 11 DATA COMMUNICATIONS USING USER FRAMES
- 226 11.1 Overview of Data Communication Procedure
- 227 11.2 Data Reception
- 227 11.2.1 About reception data
- 234 11.2.2 Timing for start/completion of data reception
- 238 11.2.3 Receive procedure
- 239 11.2.4 User frame setting for reception
- 245 11.3 Receive Program
- 245 11.3.1 Sequence program example
- 246 11.3.2 Application example for data reception using a combination that specifies the first frame
- 252 11.3.3 Application example for data reception using a combination that does not specify the first frame
- 254 11.4 Data Transmission
- 254 11.4.1 Send data
- 256 11.4.2 Transmission procedure
- 257 11.4.3 Settings for transmission user frames
- 261 11.5 Transmission program
- 264 12 TRANSPARENT CODES AND ADDITIONAL CODES
- 264 12.1 Handling the Transparent Code and Additional Code Data
- 265 12.2 Registering Transparent Codes and Additional Codes
- 266 12.3 Handling Transparent Codes and Additional Codes During Non Procedure Protocol Data Communication
- 271 12.4 Example of Data Communication Using the Non Procedure Protocol
- 272 12.4.1 Example of data reception
- 274 12.4.2 Example of data transmission
- 276 12.5 Handling Transparent Codes and Additional Codes During Bidirectional Protocol Data Communication
- 279 12.6 Example of Data Communication Using the Bidirectional Protocol
- 280 12.6.1 Example of data reception
- 282 12.6.2 Example of data transmission
- 284 13 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
- 284 13.1 ASCII-BIN Conversion
- 284 13.2 Settings for ASCII-BIN Conversion
- 285 13.3 Performing ASCII-BIN Conversion for Data Communicated via Non Procedure Protocol
- 287 13.4 Example of Data Communication Using the Non Procedure Protocol
- 288 13.4.1 Example of data reception
- 291 13.4.2 Example of data transmission
- 293 13.5 Performing ASCII-BIN Conversion for Data Communicated Via the Bidirectional Protocol
- 295 13.6 Example of Data Communication Using the Bidirectional Protocol
- 296 13.6.1 Example of data reception
- 297 13.6.2 Example of data transmission
- 298 14 DATA COMMUNICATIONS USING EXTERNAL DEVICE AND PLC CPU M : N CONFIGURATION
- 298 14.1 Data Communications Precautions
- 300 14.2 External Devices Interlock Conditions
- 300 14.2.1 Maximum communications time per external device station
- 301 14.2.2 Message structure when communicating data between external devices
- 303 14.3 Examples of Procedure for Data Communications with the PLC CPU
- 303 14.3.1 Sequential data communications between external devices and the PLC CPU
- 306 14.3.2 Data communications between PLC CPU and external devices by designating a master station and slave stations
- 309 15 SWITCHING THE MODE AFTER STARTING
- 310 15.1 Mode Switching Operation and Contents that can be Changed
- 310 15.1.1 Settings that can be changed with mode switching
- 310 15.1.2 Operation for mode switching
- 311 15.2 Mode Switching Precautions
- 313 15.3 I/O Signals for Handshake with PLC CPU and Buffer Memory
- 315 15.4 Switching the Mode from the PLC CPU
- 315 15.4.1 Mode switching procedure
- 316 15.4.2 Mode switching sample program
- 317 15.5 Switching the Mode from an External Device
- 317 15.5.1 Mode switching procedure
- 318 15.5.2 Mode switching sample program
- 319 16 USING COMMUNICATION DATA MONITORING FUNCTION
- 319 16.1 Communication Data Monitoring Function
- 319 16.1.1 Overview
- 320 16.1.2 Communication data monitoring operation
- 322 16.2 Communication Data Monitoring Function Settings
- 326 16.3 Communication Data Monitoring Example
- 329 17 DEDICATED INSTRUCTIONS
- 329 17.1 Dedicated Instruction List
- 330 17.2 BUFRCVS Instruction
- 333 17.3 CSET Instruction (PLC CPU Monitoring Register/Cancel)
- 339 17.4 CSET Instruction (Initial Settings)
- 343 17.5 GETE Instruction
- 346 17.6 PRR Instruction
- 349 17.7 PUTE Instruction
- 354 INDEX
- 356 WARRANTY