Sie sind auf Seite 1von 1

SIMATIC S7-1200 Easy Book PROFINET and PROFIBUS instructions

PROFINET and PROFIBUS instructions


PROFINET instructions
The TSEND_C and TRCV_C instructions make PROFINET communications simpler by combining the functionality of the TCON and TDISCON instructions with the TSEND or TRCV instruction.

TSEND_C establishes a TCP or ISO on TCP communication connection to a partner station, sends data, and can terminate the connection. After the connection is set up and established, it is automatically maintained and monitored by the CPU. TSEND_C combines the functions of the TCON, TDISCON and TSEND instructions into one instruction. TRCV_C establishes a TCP or ISO-on-TCP communication connection to a partner CPU, receives data, and can terminate the connection. After the connection is set up and established, it is automatically maintained and monitored by the CPU. The TRCV_C instruction combines the functions of the TCON, TDISCON, and TRCV instructions into one instruction.

The TCON, TDISCON, TSEND and TRCV instructions are also supported. Use the TUSEND and the TURCV instructions to transmit or receive data via UDP. TUSEND and TURCV function asynchronously, which means that the processing of the job extends over several instruction calls. Use the IP_CONF instruction to change the IP configuration parameters from your user program. IP_CONF works asynchronously. The execution extends over multiple calls.

PROFIBUS instructions
The DPNRM_DG (read diagnostics) instruction reads the current diagnostic data of a DP slave in the format specified by EN 50 170 Volume 2, PROFIBUS.

Distributed I/O instructions for PROFINET, PROFIBUS and GPRS


You can use the following instructions with PROFINET, PROFIBUS, and GPRS.

Use the RDREC (read record) and WRREC (write record) instructions to transfer a specified data record between a component, such as a module in a central rack or a distributed component (PROFIBUS DP or PROFINET IO). Use the RALRM (read alarm) instruction to read an interrupt and its information from a DP slave or PROFINET IO device component. The information in the output parameters contains the start information of the called OB as well as information of the interrupt source. Use the DPRD_DAT (read consistent data) and DPWR_DAT (write consistent data) instructions to transfer a maximum of four continuous bytes using load instructions that access the DP standard slave or PROFINET IO device.

This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties. The complete documentation can be found at: https://www.automation.siemens.com/mdm/default.aspx?DocVersionId=36721585419&Language=en-US&TopicId=27548628107 7/17/2013

Das könnte Ihnen auch gefallen