CMP#.WIDTHVAL

Description

CMP#.WIDTHVAL sets the value count duration of the output pulse generated by the setpoint. It is used when CMP#.WIDTHTYPE for the setpoint is set to 0. Its scaling depends on CMP#.SOURCE.

It takes two command line arguments: the first specifies the setpoint, and the second specifies the value count duration.

Examples

The following diagram illustrates CMP#.WIDTHVAL.

Code

The following commands set the value count widths of channel 1 setpoint 8 to 5 deg and channel 2 setpoint 6 to 4000000 (slightly less than one thousandth of a revolution).

--> CMP1.SOURCE 11
--> AXIS1.UNIT.PROTARY 2
--> CMP1.WIDTHTYPE 8 0
--> CMP2.WIDTHVAL 8 5
--> CMP2.SOURCE 2
--> CMP2.WIDTHTYPE 6 0
--> CMP2.WIDTHVAL 6 4000000

Context

For more information please refer to Compare.

Versions

Action Version Notes
Implemented 02-06-00-000  

General Information

Type

Read/Write

Units

Depends upon CMP#.SOURCE

Range

Full position range

Default Value

0

Data Type

Float

See Also

CMP#.WIDTHTYPE

Stored in Non-Volatile Memory

Yes

Variants Supported

All variants are supported.

Fieldbus Information

EtherNet/IP

Name

ID

Hex

Data Type

Access

Units

CMP1.WIDTHVAL

31500

7B0C

Signed32[8]

Read/Write

Position

CMP2.WIDTHVAL

31501

7B0D

Signed32[8]

Read/Write

Position

PROFINET

Parameter

PNU

Data Type

Access

Units

CMP1.WIDTHVAL

31500

Signed32[8]

Read/Write

Position

CMP2.WIDTHVAL

31501

Signed32[8]

Read/Write

Position