访问 TimeSynchronize 对象

TIMESYNCHRONIZE 对象提供了符合 IEEE 1588 (IEC 61588) 标准(面向联网测量和控制系统的精密时钟同步协议)的通用工业协议 (CIP) 接口。可通过 GSV/SSV 指令访问 TIMESYNCHRONIZE 对象。
属性
数据类型
指令
说明
ClockType
INT
GSV
时钟类型。
Bit
Type of Clock
0
Ordinary Clock
1
Boundary Clock
2
Peer-to-peer transparent clock
3
End-to-end transparent clock
4
Management Node
All other bits are reserved.
CurrentTimeMicroseconds
DINT[2]
DT
LINT
GSV
当前系统时间值(单位为毫秒)。
CurrentTimeNanoseconds
LINT
LDT
GSV
当前系统时间值(单位为纳秒)。
DomainNumber
SINT
GSV
PTP 时钟域。该值范围为 0...255。默认值为 0。
CurrentTimeMicroseconds
LINT
DINT
GSV
当前系统时间值(单位为毫秒)。
CurrentTimeNanoseconds
LINT
LDT
GSV
当前系统时间值(单位为纳秒)。
DomainNumber
SINT
GSV
PTP 时钟域。该值范围为 0...255。默认值为 0。
GrandMasterClockInfo
Structure
GSV
关于主时钟的属性信息。
需要 24 字节存储空间。
Grandmaster Clock Information structure:
ClockIdentity
SINT[8]
ClockClass
INT
TimeAccuracy
INT
OffsetScaledLogVariance
INT
CurrentUtcOffset
INT
TimePropertyFlags
INT
TimeSource
INT
Priority1
INT
Priority2
INT
IsSynchronized
DINT
GSV
本地时钟与主时钟同步。
Value
Meaning
0
Not synchronized
1
Synchronized
LocalClockInfo
Structure
GSV
关于本地时钟的属性信息。
需要 20 字节存储空间。
Local Clock Information structure:
ClockIdentity
SINT[8]
ClockClass
INT
TimeAccuracy
INT
OffsetScaledLogVariance
INT
CurrentUtcOffset
INT
TimePropertyFlags
INT
TimeSource
INT
ManufactureIdentity
DINT
GSV
制造商的 IEEE OUI(企业唯一标识)。
MaxOffsetFromMaster
LINT
DINT
GSV / SSV
与主时钟的最大偏移(单位为纳秒)。
MeanPathDelayToMaster
LINT
DINT
GSV
主时钟到本地时钟的平均路径延时(单位为纳秒)。
NumberOfPorts
INT
GSV
此时钟的端口数。
OffsetFromMaster
LINT
DINT
GSV
基于最新的同步消息,计算得出的本地时钟与主时钟之间的时间差,单位为纳秒。
PTPEnable
DINT
GSV / SSV
设备上 CIP 同步/PTP/时间同步的使能状态。
Value
Meaning
0
Disable
1
Enable
ParentClockInfo
Structure
GSV
关于父时钟的属性信息。
需要 16 字节存储空间。
Parent Clock Information structure:
ClockIdentity
SINT[8]
PortNumber
INT
ObservedOffsetScaledLogVariance
INT
ObservedPhaseChangeRate
DINT
PortEnableInfo
Structure
GSV
设备上每个端口的端口使能配置。
大小 = 2 + (使能的端口数 x 4)
最大大小 = 42 字节
Port Enable status structure:
NumberOfPorts
INT
端口的最大数为 10。
Structure repeated for the number of ports:
PortNumber
INT
PortEnable
INT
PortLogAnnounceIntervalInfo
Structure
GSV
设备的每个 PTP 端口上主时钟连续发布的两条“通知”消息之间的间隔。
大小 = 2 + (使能的端口数 x 4)
最大大小 = 42 字节
Port Log Announce Interval structure:
NumberOfPorts
INT
端口的最大数为 10。
Structure repeated for the number of ports:
PortNumber
INT
PortLogAnnounceInterval
INT
PortLogSyncIntervalInfo
Structure
GSV
设备的每个 PTP 端口上主时钟连续发布的两条同步消息之间的间隔。
大小 = 2 + (使能的端口数 x 4)
最大大小 = 42 字节
Port Log Sync Interval structure:
NumberOfPorts
INT
端口的最大数为 10。
Structure repeated for the number of ports:
PortNumber
INT
PortLogAnnounceInterval
INT
PortPhysicalAddressInfo
Structure
GSV
设备各个端口的物理和协议地址。
大小 = 2 + (使能的端口数 x 36)
最大大小 = 362 字节
Port Physical Address structure:
NumberOfPorts
INT
端口的最大数为 10。
Structure repeated for the number of ports:
PortNumber
INT
Protocol
SINT[16]
SizeOfAddress
INT
Port Address
SINT[16]
PortProfileIdentityInfo
Structure
GSV
设备各个端口的配置文件。
大小 = 2 + (使能的端口数 x 10)
最大大小 = 102
Port Profile Identity structure:
NumberOfPorts
INT
端口的最大数为 10。
Structure repeated for the number of ports:
PortNumber
INT
ClockIdentity
SINT[8]
PortProtocolAddressInfo
Structure
GSV
设备各个端口的网络和协议地址。
大小 = 2 + (使能的端口数 x 22)
最大大小 = 222
Port Protocol Address structure:
NumberOfPorts
INT
端口的最大数为 10。
Structure repeated for the number of ports:
PortNumber
INT
NetworkProtocol
INT
SizeOfAddress
INT
PortAddress
SINT[16]
PortStateInfo
Structure
GSV
设备上各个 PTP 端口的当前状态。
大小 = 2 + (使能的端口数 x 4)
最大大小 = 42 字节
Port State structure:
NumberOfPorts
INT
端口的最大数为 10。
Structure repeated for the number of ports:
PortNumber
INT
PortState
INT
Priority1
SINT
GSV / SSV
本地时钟的 Priority1(主时钟超控)值。
小贴士: 值不带符号。
Priority2
SINT
GSV / SSV
本地时钟的 Priority2(连接断路器)值。
小贴士: 值不带符号。
ProductDescription
Structure
GSV
包含时钟的设备产品描述。
需要 68 字节存储空间。
Product Description structure:
Size
DINT
Description
SINT[64]
RevisionData
Structure
GSV
包含时钟的设备版本数据。
需要 36 字节存储空间。
Revision Data structure:
Size
DINT
Revision
SINT[32]
StepsRemoved
INT
GSV
本地时钟与主时钟之间的 CIP 同步区域数(即,边界时钟数 +1)
SystemTimeAndOffset
Structure
GSV
系统时间(单位为毫秒)以及与本地时钟值的偏移。
System Time and Offset structure:
SystemTime
LINT
DINT
SystemOffset
LINT
DINT
UserDescription
Structure
GSV
包含时钟的设备用户描述。
需要 132 字节存储空间。
User Description structure:
Size
DINT
Description
SINT[128]
提供反馈
对本文档有问题或反馈吗? 请在这里提交您的反馈
Normal