Download MELSEC-Q/L Serial Communication Module User`s Manual
Transcript
10 ON-DEMAND DATA COMMUNICATIONS USING USER FRAMES 10.4 On-Demand Function Control Procedure During User Frame Use The following uses examples to explain the control procedure when using the ondemand function to frame to transmit on-demand data to an external device by user frame. 10.4.1 Data communication using the ASCII code The following shows the control procedure when performing switch settings via GX Developer and registration via GX Configurator-SC. (1) Switch settings via GX Developer 1) Set the "Communication protocol setting" to any one of the "MC protocol (formats 1 to 4) ". 2) Set the "Station number" to "0". (2) Registration via GX Configurator-SC Register as follows when transmitting a user frame, user selected transmission data ( 1) or a combination of user frames. 1) "User frame registration" screen User frame No. 02H ( 2) 3EBH(1003) User frame Contents of user frame (Registration code) registration 02H F9H, 00H, 00H, FFH, FFH, 00H STX to host station No. data code matched to QnA compatible 3C frame format 1 QnA compatible 3C frame format 401H(1025) 03H, FFH, F1H 1 corresponding ETX, sum check code data code 2) "Transmission control and others system setting" screen, "MC protocol system setting" screen • Set the "Word/byte units designation" to word units. • Set the "On-demand user frame designation" items to the following: First frame No. 1st: 02H First frame No. 2nd: 3EBH Last frame No. 1st: 401H Last frame No. 2nd: 0H (No specification) 1 Use the ONDEMAND instruction to designate the transmission data to two words (1234H, 5678H). 10 - 4 10 - 4