DIO#.INV

Description

Sets or gets the polarity of a bi-directional IO when configured as a digital input (see DIO#.DIR).

Value Description
0 - Active high The digital input state is 1 when voltage is applied to the IO pin
1 - Active low The digital input state is 1 when voltage is removed from the IO pin

Examples

Usage

When DIO#.DIR = 0 (input) then the corresponding DIO#.INV can be set to change the polarity of the input signal.

Code

--> DIO1.DIR 0

With 24V on DIO1:

--> DIO1.INV 0 //Active high
--> DIO1.STATE
1
--> DIO1.INV 1 //Active low
--> DIO1.STATE
0

With 0V on DIO1:

--> DIO1.INV 0 //Active high
--> DIO1.STATE
0
--> DIO1.INV 1 //Active low
--> DIO1.STATE
1

Context

For more information see Digital Inputs and Outputs.

Versions

Action Version Notes
Implemented 02-00-00-000

General Information

Type Read/Write
Units N/A
Range 0 to 1
Default Value 0
Data Type Integer
See Also  

Stored in Non Volatile Memory

Yes

Variants Supported

All variants are supported

Fieldbus Information

Fieldbus Parameter Index Sub-Index Data Type Float Scale Units Access PDO Mappable
EtherCAT COE and CANopen DIO1.INV 0x368A 0x2 USINT - - RW False
DIO2.INV 0x368B 0x2 USINT - - RW False
DIO3.INV 0x368C 0x2 USINT - - RW False
DIO4.INV 0x368D 0x2 USINT - - RW False
DIO5.INV 0x368E 0x2 USINT - - RW False
DIO6.INV 0x368F 0x2 USINT - - RW False