F165_HighSpeedCounter_Cam_8_Values_DUT

If you require a DUT having more than eight different target values, you cannot use this predefined DUT. You must create a new DUT. A maximum of 31 target values are possible.

This DUT can be used with the following instruction(s): F165_HighSpeedCounter_Cam

Elements of the DUT (identifiers):

dwCamControlCode: Control code [hex constant]

Specify the control code using a hexadecimal constant. Example: 16#1025. 1, 0, 2, and 5 are the values corresponding to digits 3, 2, 1, and 0 of the hexadecimal constant. Digit 0 is the digit on the far right.Additional digits specific for the selected control method are set automatically by the compiler shortly before the instruction is called.

Digit

Value

Setting

1

Maximum target value control

Resets the elapsed value to 0 when the maximum target value (incremental counting) or -1 (decremental counting) has been reached. To perform maximum target value control, positive integer numbers must be specified for all target values.

0

Enabled

1

Disabled

0

Fixed
diAddressOffsetInWR: Word address for outputs [constant]

Set to 0.

Apply an overlapping DUT to the output dutBitOutputs. Select the size (16 or 32 bits) according to the number set with diNumberOfTargetValuesAndOutputRelays. The address information of this overlapping DUT will be written to diAddressOffsetInWR.

Output area:

  •  (1) WRn

    If the number of target values is in the range of 1–16, one word is used.

  •  (2) WRn+1

    If the number of target values is in the range of 17–32, two words are used.

  1.  (1) Output 0 turns to TRUE when F165_HighSpeedCounter_Cam is executed. The current value must be smaller than target value 1.
  2.  (2) Output 1 turns to TRUE when the elapsed value matches target value 1.
  3.  (3) Output 15 turns to TRUE when the elapsed value matches target value 15.
  4.  (4) Output 17 turns to TRUE when the elapsed value matches target value 17.
diNumberOfTargetValuesAndOutputRelays: Number of target values [constant]

1–31

Specify the number so that the total number does not exceed the maximum area of the internal flags.

diTargetValue_1–diTargetValue_8: Target value [counts]

-2147483648–2147483647

Arrange the target values in ascending order.

Do not specify the same value more than once.

To perform maximum target value control, positive integer numbers must be specified for all target values.

diMaximumTargetValue: Maximum target value [counts]

-2147483648–2147483647

Modified on: 2019-12-10Feedback on this pagePanasonic hotline