User`s manual

246
10.4 On-Demand Function Control Procedure During User
Frame Use
The following uses examples to explain the control procedure when using the on-demand 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 by GX Developer
Set the "Communication protocol setting" to any one of the "MC protocol (formats 1 to 4) ".
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.
(a) "User frame registration" screen
(b) "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).
User frame No. User frame (Registration code) Contents of user frame registration
02H (2) 02H
STX to host station No. data code matched to QnA
compatible 3C frame format 1
3EBH(1003) F9H, 00H, 00H, FFH, FFH, 00H
401H(1025) 03H, FFH, F1H
QnA compatible 3C frame format 1 corresponding
ETX, sum check code data code