Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Function
When the value of Enable is TRUE, the NX_AryDOutTimeStamp instruction outputs the pulses set with
output pulses SetDOut from a Digital Output Unit that supports time stamp refreshing at the specified
times. When the value of Enable changes to FALSE, the NX_AryDOutTimeStamp instruction outputs
FALSE to the Digital Output Unit that supports time stamp refreshing.
The error between the specified time and the output time is ±1 μs max.
SyncOutTime (Time stamp of synchronous output) is based on the clock information in the EtherCAT
Coupler Unit or NX Unit connected to the NX bus on the CPU Unit under which the Digital Output Unit
that supports time stamp refreshing is connected. Specify the Time Stamp of Synchronous Output
device variable of the EtherCAT Coupler Unit or NX Unit connected to the NX bus on the CPU Unit
under which the Digital Output Unit is connected.
However, you must add 0x200A:02 (Time Stamp of Synchronous Output) to the I/O entries for the Eth-
erCAT Coupler Unit.
Set the DOut Unit output bit DOut to the Output Bit ** device variable that is assigned to the output bit of
the Digital Output Unit that supports time stamp refreshing.
Set time stamp TimeStamp to the Output Bit ** Time Stamp device variable that is assigned to the out-
put bit time stamp of the Digital Output Unit that supports time stamp refreshing.
Specifying the Output Time
Use the following procedure to specify the output time.
1
Get the device variable that is assigned to the clock information that is to serve as the reference
time for the Unit bit.
2
Calculate the difference between the obtained clock information and the time to turn ON the out-
put bit in nanoseconds and add it to the device variable from step 1.
3
Pass the results of adding the time difference to SetDOut.OnTime[] in the NX_AryDOutTime-
Stamp instruction.
4
In the same way as in step 2, calculate the difference between the obtained clock information
and the time to turn OFF the output bit in nanoseconds and add it to the device variable from
step 1.
5
Pass the results of adding the time difference to SetDOut.OffTime[] in the NX_AryDOutTime-
Stamp instruction.
Specifying the Output Pulses
The data type of output pulses SetDOut is structure _sOUTPUT_REF. The specifications are as fol-
lows:
Name
SetDOut

NY-series Instructions Reference Manual (W560)

Meaning
Description
Output pulses Output pulses
2 Instruction Descriptions
Data type
Valid range
_sOUTPUT
---
_REF
2
Unit
Default
---
---
2-1347

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents