hit counter script

Port_Cfg Instruction - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Point-to-Point (PtP) communications
8.7 Point-to-Point instructions
8.7.2

PORT_CFG instruction

Parameter
REQ
PORT
PROTOCOL
BAUD
PARITY
DATABITS
STOPBITS
250
PORT_CFG (Port Configuration) allows you to change port
parameters such as baud rate from your program.
You can set up the initial static configuration of the port in the
device configuration properties, or just use the default values.
You can execute the PORT_CFG instruction in your program to
change the configuration. The PORT_CFG configuration
changes are not permanently stored in the CPU. The
parameters configured in the device configuration are restored
when the CPU transitions from RUN to STOP mode and after a
power cycle.
See Configuring the communication ports (Page 238) and
Managing flow control (Page 239) for more information.
Parameter
Data type
type
IN
Bool
IN
PORT
IN
UInt
IN
UInt
IN
UInt
IN
UInt
IN
UInt
Description
Activate the configuration change on rising edge of this
input.
Communication port identifier:
This logical address is a constant which can be
referenced within the "Constants" tab of the default tag
table.
0 - Point-to-Point communication protocol
1..n - future definition for specific protocols
Port baud rate:
1 - 300 baud
2 - 600 baud
3 - 1200 baud
4 - 2400 baud
5 - 4800 baud
6 - 9600 baud
7 - 19200 baud
8 - 38400 baud
9 - 57600 baud
10 - 76800 baud
11 - 115200 baud
Port parity:
1 - No parity
2 - Even parity
3 - Odd parity
4 - Mark parity
5 - Space parity
Bits per character:
1 - 8 data bits
2 - 7 data bits
Stop bits:
1 - 1 stop bit
2 - 2 stop bits
System Manual, 11/2009, A5E02486680-02
S7-1200 Programmable controller

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents

Save PDF