13.07.2015 Views

Safety Considerations Guide, Tricon v9.0 - Tuv-fs.com

Safety Considerations Guide, Tricon v9.0 - Tuv-fs.com

Safety Considerations Guide, Tricon v9.0 - Tuv-fs.com

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

72 Examples of Peer-to-Peer ApplicationsExamples of Peer-to-Peer ApplicationsPeer-to-Peer function blocks are designed to transfer limited amounts of databetween two applications. Therefore you should use these function blockssparingly in your applications. Ideally, you should control the execution of eachTR_USEND function block in such a way that each TR_USEND is initiated onlywhen the acknowledgment for the last TR_USEND is received and new data isavailable for sending. You can do this through effective use of the SENDFLGparameter in the TR_USEND function block and the STATUS output of theTR_USEND function block, as shown in Examples 2 and 3.The examples described below can be found in the Expeer.pt2 project on theTriStation CD.Fast Send to One <strong>Tricon</strong>ex NodeThis is a simple example of sending data as fast as possible from Node #2 to Node#3. Scan time in both controllers is set to 100 milliseconds.The example uses the following project elements:• PEER_EX1_SEND_FBD (for sending Node #2)• PEER_EX1_RCV_FBD (for receiving Node #3)Sending Data Every Second to One NodeThis is a simple example of sending data every second from Node #2 to Node #3.Scan time in both controllers is set to 100 milliseconds.The example uses the following project elements:• PEER_EX2_SEND_FBD (for sending Node #2)• PEER_EX2_RCV_FBD (for receiving Node #3)<strong>Tricon</strong> <strong>Safety</strong> <strong>Considerations</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!