15 DATA COMMUNICATIONS USING USER FRAMES
15.3 Program for Data Reception with User Frame
299
15
Program example when setting by a program
■Program example
Category Label name Description Device
Module label C24_1 Target module
C24_1.bSts_UnitReady Module READY X1E
C24_1.stnCH1.bSet_Req_ReceptionRead CH1 Reception data read request X3
C24_1.stnCH1.bSts_ReceptionAbnormalDetection CH1 Reception abnormal detection X4
C24_1.stnCH1.uSet_UserFrameUse_Enable_disable_Recei
veUserFrame_D
CH1_Receive user frame use enable/disable
designation
U0\G173
C24_1.stnCH1.wnSet_FirstFrameNum_1st_ReceiveUserFra
me_D[0]
CH1_Receive user frame_Start frame No. designation
[0]
U0\G174
C24_1.stnCH1.wnSet_FirstFrameNum_1st_ReceiveUserFra
me_D[1]
CH1_Receive user frame_Start frame No. designation
[1]
U0\G175
C24_1.stnCH1.wnSet_FirstFrameNum_1st_ReceiveUserFra
me_D[2]
CH1_Receive user frame_Start frame No. designation
[2]
U0\G176
C24_1.stnCH1.wnSet_FirstFrameNum_1st_ReceiveUserFra
me_D[3]
CH1_Receive user frame_Start frame No. designation
[3]
U0\G177
C24_1.stnCH1.wnSet_LastFrameNum_1st_ReceiveUserFra
me_D[0]
CH1_Receive user frame_Final frame No.
designation [0]
U0\G178
C24_1.stnCH1.wnSet_LastFrameNum_1st_ReceiveUserFra
me_D[1]
CH1_Receive user frame_Final frame No.
designation [1]
U0\G179
C24_1.stnCH1.wnSet_LastFrameNum_1st_ReceiveUserFra
me_D[2]
CH1_Receive user frame_Final frame No.
designation [2]
U0\G180
C24_1.stnCH1.wnSet_LastFrameNum_1st_ReceiveUserFra
me_D[3]
CH1_Receive user frame_Final frame No.
designation [3]
U0\G181
C24_1.stnCH1.uResult_ReceiveUserFrame_D CH1_Receive user frame (nth) U0\G603
C24_1.wnForUserRegistrationNo8001H_D[0] For user registration number 8001H [0] U0\G6912
C24_1.wnForUserRegistrationNo8001H_D[1] For user registration number 8001H [1] U0\G6913
C24_1.wnForUserRegistrationNo8001H_D[2] For user registration number 8001H [2] U0\G6914
C24_1.wnForUserRegistrationNo8001H_D[3] For user registration number 8001H [3] U0\G6915
C24_1.wnForUserRegistrationNo8002H_D[0] For user registration number 8002H [0] U0\G6953
C24_1.wnForUserRegistrationNo8002H_D[1] For user registration number 8002H [1] U0\G6954
C24_1.wnForUserRegistrationNo8002H_D[2] For user registration number 8002H [2] U0\G6955
C24_1.wnForUserRegistrationNo8005H_D[0] For user registration number 8005H [0] U0\G7076
C24_1.wnForUserRegistrationNo8005H_D[1] For user registration number 8005H [1] U0\G7077
C24_1.wnForUserRegistrationNo8005H_D[2] For user registration number 8005H [2] U0\G7078
C24_1.stnCH1.wnSet_UserFrameReceiveFormat_D[1] CH1_User frame receiving method designation [1] U0\G8225
C24_1.stnCH1.wnSet_UserFrameReceiveFormat_D[2] CH1_User frame receiving method designation [2] U0\G8226
C24_1.stnCH1.wnSet_UserFrameReceiveFormat_D[3] CH1_User frame receiving method designation [3] U0\G8227
C24_1.stnCH1.wnSet_UserFrameExclusiveFormat1Receive
dDataCount_D[1]
CH1_User frame method 1 dedicated receive end
data quantity [1]
U0\G8229
C24_1.stnCH1.wnSet_UserFrameExclusiveFormat1Receive
dDataCount_D[2]
CH1_User frame method 1 dedicated receive end
data quantity [2]
U0\G8230
C24_1.stnCH1.wnSet_UserFrameExclusiveFormat1Receive
dDataCount_D[3]
CH1_User frame method 1 dedicated receive end
data quantity [3]
U0\G8231
Label to be
defined
Define the global label as shown below.