I/O Access; Synchronizing Inputs And Outputs; I/O Access Via Address - Reading - Siemens Simatic S7-1500 Function Manual

Hide thumbs Also See for Simatic S7-1500:
Table of Contents

Advertisement

User interfaces (API)
7.6 API IInstances
7.6.5

I/O access

7.6.5.1

Synchronizing inputs and outputs

Description
In PLCSIM Advanced the complete scope of the input and output area is used (see
GetAreaSize/AreaSize (Page 158)). This is also possible when no IO module is configured.
Inputs and outputs that are defined via configured IO modules are synchronized to the
defined update of the process image partition (PIP).
Inputs and outputs that are not assigned to an IO module are synchronized in the cycle
control point.
Note the following when synchronizing these inputs and outputs:
● Inputs can only be used as inputs.
You can write the values via the API, but values which are written via the user program
(TIA Portal) are not visible in the API.
● Outputs can be used as output and as input.
You can write the values via the API and via the CPU / the user program (TIA Portal). If
API and user program write to the same area, the values from the API will overwrite the
vales from the user program.
7.6.5.2

I/O access via address - Reading

InputArea { get; }, MarkerArea { get; }, OutputArea { get; }
Returns an interface that you use to call the .NET functions in this section.
Table 7- 143 InputArea { get; } MarkerArea { get; } OutputArea { get; } - .NET (C#)
Syntax
Parameters
Return values
158
IIOArea InputArea { get; }
IIOArea MarkerArea { get; }
IIOArea OutputArea { get; }
None
The interface is used to call the "I/O access via address" functions.
IIOArea:
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents