Market Leader in SECS/GEM, Test Automation, AI Vision and Smart Factory

Smart FactorySupportFAQ

Using the Bypass function

This is used when you need to pass a message from the Host to another Common Instance object.

You can bypass the message to another object using the following method.
[A object receives a message from the Host]
1) GetMsgSize ()
Gets the size of the SECS message with the specified msgID of the received SECS messages.
2) GetMsgBytes ()
Get the SECS-II message part of the received SECS message excluding the header of the SECS message with the specified msgID.

[Message by B object Bypass]
3) MakeSecsMsg ()
4) SetMsgBytes ()
Sets the SECS-II message part directly without coding.
5) Send ()

lSize = pAXCom-> GetMsgSize ()
pAXCom-> GetMsgBytes (lMsgId, (short *) pszBuff, lSize) // Message to Bypass pszBuff

pBXCom-> MakeSecsMsg (& lMsgId, sDevId, sStream, sFunction, lSysByte)
pDstXCom-> SetMsgBytes (lMsgId, (short *) pszBuff, lSize)
pDstXCom-> SId (lMsg) n