Download Programmer`s Access Kit

Transcript
FACTORYLINK API REFERENCE GUIDE
fl_write_mbx
Remarks:
This API has been retained from previous releases of FactoryLink to maintain
compatibility for users to upgrade with no changes to existing startup code.
However, new tasks should be written to use FL_WRITE_APP_MBX (with
additional capabilities for multiuser systems). FL_WRITE_MBX can only be used
to send messages to tasks in the same domain instance.
Use FL_WRITE_MBX to write a single mailbox message together with its
message data. The message being written is added to the queue (that is, it is
queued) at the tail of the queue. Prior to making this call, the caller must fill in
the MBXMSG and the message data.
Note that within the same domain instance (non-multi-user environments),
FL_WRITE, when passed a mailbox TAG, does the same thing as
FL_WRITE_MBX. That is, the function call
8
fl_write_mbx(id, mbx, mmp);
is equivalent to the function call
FactoryLink API
Reference Guide
fl_write(id, &mbx, 1, mmp) ;
FactoryLink ECS / Programmer’s Access Kit / 319