Programming FCs (Functions) and FBs for S7 Ethernet CPs

Parameter

Declara-

Type

Possible

 

Remarks

 

tion

 

Values

 

 

 

 

 

 

 

LEN

INPUT

INT

On ISO

Number of bytes to be sent from the data area

 

 

 

Transport and

with this job. The possible values range from 1

 

 

 

ISO-on-TCP /

to length specified for the SEND parameter.

 

 

 

TCP:

S Note the block type:

 

 

 

1,2, to 32767

S7-300

 

 

 

(or up to “length

 

 

 

 

With older versions of FC AG_SEND

 

 

 

specified for

 

 

 

 

 

(up to V3.0), the data area is always

 

 

 

SEND

 

 

 

 

 

restricted to a maximum of 240 bytes.

 

 

 

parameter”)

 

 

 

 

 

The current versions allow up to 8192

 

 

 

 

 

 

 

 

On UDP:

 

bytes (2048 bytes for UDP).

 

 

 

 

 

 

 

 

1,2,...2048 (or

S7-400

 

 

 

up to “length

 

 

 

specified for

 

With FC AG_SEND, the data area is

 

 

 

SEND

 

restricted to a maximum of 240 bytes.

 

 

 

parameter”)

S Note on the S7-400:

 

 

 

 

 

 

 

 

Data transfer may be restricted to

 

 

 

 

LEN<=240 bytes with older versions of the

 

 

 

 

CP firmware!

 

 

 

 

For further information, see /1/

 

 

 

 

S Improved performance with shorter data

 

 

 

 

records:

 

 

 

 

Transfer of data records up to 240 bytes

 

 

 

 

results in better performance regardless of

 

 

 

 

the block type used.

 

 

 

 

 

DONE

OUTPUT

BOOL

0: Job active

This parameter indicates whether or not the job

 

 

 

1: done

was completed without errors.

 

 

 

 

As long as DONE = 0, no further job can be

 

 

 

 

triggered. DONE is set to 0 by the CP when it

 

 

 

 

accepts a new job.

 

 

 

 

For the meaning of this parameter in

 

 

 

 

conjunction with the ERROR and STATUS

 

 

 

 

parameters, refer to the following table.

 

 

 

 

 

ERROR

OUTPUT

BOOL

0: –

For the meaning of this parameter in

 

 

 

1: error

conjunction with the DONE and STATUS

 

 

 

 

parameters, refer to the follow table.

 

 

 

 

 

 

STATUS

OUTPUT

WORD see following table

Status code

The following table shows the condition codes formed by the DONE and ERROR parameters.

Condition Codes

The following table shows the condition codes formed by the DONE, ERROR and STATUS parameters that must be evaluated by the user program.

SIMATIC NET NCM S7 for Industrial Ethernet

179

Release 6/2003

C79000–G8976–C129–07

Page 179
Image 179
Siemens NCM S7 appendix Condition Codes, On ISO, Transport, On UDP, 2048 or

NCM S7 specifications

Siemens NCM S7, which stands for Siemens Network Control Module for the S7 series, represents a significant advancement in industrial automation technology. This robust control system is designed to enhance productivity and efficiency in various manufacturing processes. Its primary purpose is to facilitate seamless communication between field devices and higher-level control systems, ensuring that processes run smoothly and effectively.

One of the main features of the Siemens NCM S7 is its exceptional connectivity. The module is equipped with integrated network capabilities that support various communication protocols such as Ethernet, Profibus, and Profinet. This versatility allows it to work with a wide variety of devices, enabling data exchange across different automation levels. The ability to connect to cloud services is another standout feature, allowing users to access real-time data remotely for monitoring and analytics.

The NCM S7 also boasts advanced data processing capabilities. With powerful processing units, it can execute complex control algorithms and manage large volumes of input and output data in real time. This is essential for industries that require precise control over their processes, such as automotive, food and beverage, and pharmaceuticals. The system’s high-speed memory and processing speed ensure that it can handle demanding tasks without lag.

In terms of technology, the Siemens NCM S7 leverages state-of-the-art cybersecurity features. As industrial control systems increasingly become targets for cyber threats, the NCM S7 incorporates advanced security protocols to safeguard sensitive data and ensure the integrity of the control processes. This includes features such as secure communication channels and user authentication.

Another key characteristic of the NCM S7 is its flexibility. The system can be easily scaled and adapted to meet the specific needs of various applications. Users can increase the number of input/output channels or integrate additional modules without significant downtime. This adaptability makes the NCM S7 an ideal choice for both small-scale operations and large industrial environments.

Moreover, the user-friendly interface simplifies configuration and programming tasks, allowing engineers and technicians to set up and troubleshoot the system with ease. Siemens has also invested in comprehensive support and training resources to help users maximize the system’s potential.

In conclusion, the Siemens NCM S7 stands out as a pivotal element in modern industrial automation. With its robust connectivity, advanced data processing capabilities, cybersecurity features, and flexibility, it empowers businesses to optimize their production processes and embrace the future of Industry 4.0.