Digital Input Module Din; Instancing - Festo CMXR-C1 Programming Instructions Manual

Hide thumbs Also See for CMXR-C1:
Table of Contents

Advertisement

17. Modules
17.4

Digital input module DIN

The DIN module is used to sense and manage a digital input.

17.4.1 Instancing

The hardware reference to the digital input is required for instancing the digital input
module. This is specified via the <input> parameter during instancing.
Other parameters can be specified, in order to be able to select pre-settings, for example.
This is, however, not necessary for instancing and can take place in the program.
Example:
A sensor is created as a module instance:
Instancing in the data file:
Sensor : DIN := (-1, FALSE, MAPX("_system.Input1"))
Instancing with the FTL Editor
Instancing takes place in the dialogue for creating variables by selecting <Type:> (DIN) and
entry of the <Identifier:> (Sensor). The real reference to a configured digital input is pro-
duced in the <MAPTO DINPORT> line.
Festo GDCP-CMXR-SW-EN en 0805NH
Syntax
<Instance name> .DIN(<Timeout> : DINT,
<RisingEdge> : BOOL,
MAPX("< input>"))
137

Advertisement

Table of Contents
loading

Table of Contents