DIO#.SOURCE

Description

DIO#.SOURCE sets the digital output source when the digital I/O pin is configured as an output through DIO#.DIR.

Value Description
0 - User User controls the output value using DIO#.STATEU
1 - Action Table Action table controls the output value
2 - Fieldbus Fieldbus controls the output value
4 - Compare Compare channel controls the output value
5 - MechaWare MechaWare model controls the output value
6 - PWM Generator PWM generator controls the output value

Examples

Usage

0: User controlled. DIO#.STATE is set by DIO#.STATEU.

1: Action table controlled. DIO#.STATE is set by the assigned action, if any.

2: Fieldbus controlled. DIO#.STATE is set by the fieldbus output control 3681h Digital output control sub 1.

4: Compare channel controlled. DIO#.STATE is set by the compare channel output. The specific channel is selected by DIO#.SOURCEID

5: MechaWare controlled: DIO#STATE is set by a MechaWare model.

6: PWM generator controlled: DIO# is used to output a PWM signal configured by PWM#.DUTYCYCLE and PWM#.PERIOD. If multiple PWM generators are available, DIO#.SOURCEID selects the PWM generator to be used.

Code

Changing output state with STATEU and then changing SOURCE to be action table with no action configured:

--> DIO1.DIR 1
--> DIO1.SOURCE 0
--> DIO1.STATE 0
--> DIO1.STATEU 1
--> DIO1.STATE 1
--> DIO2.DIR 1
--> DIO2.SOURCE 1
--> DIO2.STATE 0

Context

For more information see Digital Inputs and Outputs.

Versions

Action Version Notes
Implemented 02-00-00-000  
Added Compare source 02-06-00-000  

General Information

Type Read/Write
Units N/A
Range 0, 1, 2, 4, 5, 6
Default Value 0
Data Type Integer
See Also  

Stored in Non-Volatile Memory

Yes

Variants Supported

All variants are supported

Industrial Ethernet Information

(missing or bad snippet)