Program example
Sending side
■Labels
Classification
Label name
Module label
RCPU.stSM.bAlways_ON
GN11_SE_1.bnCompletion_ConnectionOpen[1]
GN11_SE_1.bnStatus_ConnectionOpenExecution[1]
GN11_SE_1.uCompletion_EthernetInitialized_D.0
GN11_SE_1.stPort1.uStatus_HUB_Connection_D.0
Label to be defined
Define global labels as shown below:
FBs to be used
11 PROGRAMMING
250
11.4 Example of Socket Communications
• M+RJ71GN11_SE_Refresh_Data
• M+RJ71GN11_SE_ConnectionOpen
• M+RJ71GN11_SE_Send_Socket
• M+RJ71GN11_SE_ConnectionClose
Description
Always on
Open completion status (connection No.1)
Open request status (connection No.1)
Initial completion status
Switching hub connection status
Device
SM400
U0\G6291456.0
U0\G6291464.0
U0\G6291480.0
U0\G2102344.0