Do-more Technical Training

Slides:



Advertisements
Similar presentations
What Time Is It? Martin Phillips Ladybridge Systems.
Advertisements

Software setup with PL7 and Sycon V2.8
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
KX-NS1000 Initial Set Up For step by step : 16 May,
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir CCNP-SWITCHING Mohamed Samir YouTube channel Double.
11 ASSIGNING IP ADDRESSES Chapter 2. Chapter 2: ASSIGNING IP ADDRESSES2 CHAPTER OVERVIEW  Describe the structure of IP addresses and subnet masks. 
Basis Data Terapan Yoannita. SQL Server Data Types Character strings: Data typeDescriptionStorage char(n)Fixed-length character string. Maximum 8,000.
SNTP Simple Network Time Protocol. Simple Network Time Protocol (SNTP) Get accurate date and time from SNTP server –i.e Make Standard Time.
Said Salomon Unitrin Direct Insurance T-SQL Date and Time Functions Said Salomon.
CS3502: Data and Computer Networks Local Area Networks - 4 Bridges / LAN internetworks.
Specview 32 Release 2.5 Enhancements
TCP/IP Protocol Suite 1 Chapter 16 Upon completion you will be able to: Host Configuration: BOOTP and DHCP Know the types of information required by a.
DHCP Meha Modi. “Dynamic Host Configuration Protocol” Automatically assigns IP addresses to devices (I.e. hosts) on your network. -Prevents to enter data.
SERVER I SLIDE: 5. Objectie 4.2 The DHCP IP address assignment process.
State Data Center Daylight Saving Time 2007 Overview February 15, 2007.
Client-Server Model of Interaction Chapter 20. We have looked at the details of TCP/IP Protocols Protocols Router architecture Router architecture Now.
TCP/IP (Transmission Control Protocol / Internet Protocol)
Do-more Technical Training The Do-more Way. Do-more Architecture Hardware or System Resource Device MemoryInstruction Server Do-more PLCs are “device-centric”
Do-more Technical Training Communications (Modbus TCP)
Do-more Technical Training Memory Types. (1) Physical I/O (2) System Memory (3) User Memory.
Do-more Technical Training System Configuration (CPU Configuration)
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
NTP in UBuntu. The Network Time Protocol (NTP) is a protocol for synchronizing the clocks of computer systems over packet-switched, variable- latency.
Do-more Technical Training
Topic: Binary Encoding – Part 2
MECH 373 Instrumentation and Measurements
Internet Control Message Protocol (ICMP)
Do-more Technical Training
BRX Technical Training
BRX Technical Training
Do-more Technical Training
Do-more Technical Training
OSI Model IP address.
Do-more Technical Training
Do-more Technical Training
Internet Control Message Protocol (ICMP)
Do-more Technical Training
SNMP.
State Data Center Daylight Saving Time 2007 Overview February 15, 2007
BRX Technical Training
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
BRX Technical Training
Do-more Technical Training
KX-NS1000 Initial Set Up Rev Oct.,
Do-more Technical Training
NUUO Tools Welcome to NUUO general education service. This session allows users to have the overview of NUUO tools for system design. (Click)
Bootstrap And Autoconfiguration (BOOTP, DHCP)
Internet Control Message Protocol (ICMP)
Host Configuration: BOOTP and DHCP
Do-more Technical Training
Infrastructure II NTP.
TFTP Trivial File Transfer Protocol
Clear your desk except for paper/pencil Copy the DATE and TOPIC
Do-more Technical Training
Welcome! Thank you for joining us. We’ll get started in a few minutes.
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Do-more Technical Training
Host Configuration: BOOTP and DHCP
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
What Time Is It? Martin Phillips Ladybridge Systems.
Binary “There are 10 types of people in the world: Those who understand binary, and those who don't.”
Do-more Technical Training
Events (start and stop and duration)
ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS
The Web Wizard’s Guide To JavaScript
Presentation transcript:

Do-more Technical Training Onboard Clock

Onboard Clock Accuracy: 1.53 minutes/month Stored as UTC (Coordinated Universal Time) Stored in $UTC (DST21) Uses 1970 Epoch: number of seconds since 00:00:00, 01-January-1970 Adjusted by time zone $TimeZone (DST384) – number of minutes Adjusted by Daylight Savings Time $SummerTime (ST768) – ON +1 hour Adjusted time stored $LocalTime (DST22) – UTC adjusted seconds NOTE: These values are not very useful Seconds 1970 Epoch

Onboard Clock $LocalTime (DST22) is also stored as Date/Time structure: $Now (SDT0) structure members: Year – unsigned word Month – unsigned byte Day – unsigned byte DayOfWeek – unsigned byte 0 = Sunday, 1 = Monday, etc. Hour – unsigned byte Minute – unsigned byte Second – unsigned byte Date – signed Dword YYYYMMDD (use “Date Field” to see) Time – signed Dword DDHHMMSS (use “Time Field” so see) NOTE: Date & Time structure members are not very useful except for some HMI displays $SysShutdown (SDT1) – date/time of last power OFF $SysStartup (SDT2) – date/time of last power ON

Onboard Clock (The Basics) $UTC (DST21) 1,427,208,203 seconds 1970 Epoch $TimeZone (DST284) -300 minutes Minutes -18,000 seconds = 1,427,190,203 $SummerTime (ST768) ON = +1 hour Bit +3600 seconds = 1,427,193,803 $LocalTime (DST22) 1,427,193,803 seconds 1970 Epoch Date/Time Structure $Now (SDT0) $Now.Year (2015) $Now.Month (3) $Now.Day (24) $Now.DayOfWeek (2) $Now.Hour (10) $Now.Minute (43) $Now.Second (23)

Onboard Clock Setting the system clock: Manually: Auomatically: Set PLC Clock dialog Auomatically: (1) TimeSync function (2) NETTIME “SNTP Client” instruction (3) SETTIME “Set PLC Date/Time” instruction

Onboard Clock Manual Setting: PLC  Set PLC Clock…

Onboard Clock Automatic Setting: (1) TimeSync function: CPU Configuration  TimeSync Configuration Client: Listens for server’s time-sync packet If heard  $TimeSynced (ST23) = ON Sets onboard clock  $UTC (DST21) Keeps listening (times down from Update Interval) If Update Interval times out  $TimeSynced (ST23) = OFF Server: transmits 3 time-sync packets (5 second intervals) every Update Interval) Alternate: Normally a Client If Update Interval times out + 15 seconds  Becomes the new Server Update Interval: 0 – 32,767 minutes (22 days)

Onboard Clock Automatic Setting: (2) NETTIME “SNTP Client” instruction Retrieves date/time from an SNTP (Simple Network Time Protocol) Server & stored in $UTC (DST21) Parameters: Device – onboard Ethernet port SNTP Server IP Address Fixed IP Address – IP address of SNTP Server Variable IP Address – (32-bit word) variable IP address of SNTP Server commonly obtained by DNSLOOKUP “Name to IP Address” instruction UDP Port Number – SNTP Protocol default is 123 Network Timeout – 1 to 65.535 seconds On Success, On Error – Action to take Instruction is leading-edge triggered NOTE: NTP protocol is not supported * Program NETTIME using Richard’s SNTP server IP address

Onboard Clock Automatic Setting: (3) SETTIME “Set PLC Date/Time” instruction Writes date/time to system clock Writes $UTC (DST21) directly, or… Writes $LocalTime (DST22) then… …back-adjusts $UTC (DST21) based on: $TimeZone (DST284) value $SummerTime (ST768) bit Parameters: Source Date/Time – structure containing setting Source Type: Local Time – Source Date/Time represents local time UTC Time – Source Date/Time represents UTC time Instruction is leading-edge triggered $UTC (DST21) $TimeZone (DST284) $SummerTime (ST768) $LocalTime (DST22) $Now (SDT0)

Onboard Clock Programmatic use: Assignment: Conversion: MEMCOPY “Copy Memory Range” MOVE “Move Value” Conversion: DT2EPOCH “Convert Date/Time to 1970 Epoch” EPOCH2DT “Convert Epoch to Date/Time” MATH  NOW() function – Get Date/Time as a 32-bit integer (1970 Epoch) Math-style operations: DTCMP “Compare Date/Time” DTDIFF “Difference between two Date/Times” DTOFFSET “Add Offset to Date/Time”

Onboard Clock Programmatic use: Assignment: MEMCOPY “Copy Memory Range” Use it to copy complete Date/Time structures

Onboard Clock Programmatic use: Assignment: MOVE “Move Value” Use it to copy single Date/Time structure members

Onboard Clock Programmatic use: Conversion: DT2EPOCH “Convert Date/Time to 1970 Epoch” Converts a Date/Time structure to 1970 Epoch value Parameters: Date/Time – structure to convert 1970 Epoch – location of converted value

Onboard Clock Programmatic use: Conversion: EPOCH2DT “Convert Epoch to Date/Time” Converts a 1970 Epoch value to Date/Time structure Parameters: 1970 Epoch – seconds to convert Date/Time – structure of converted value

Onboard Clock Programmatic use: Conversion: MATH “Calculate Express” NOW() function Converts the Date/Time structure $Now (SDT0) to 1970 Epoch value

Onboard Clock Programmatic use: Math-style operations: DTCMP “Compare Date/Time” Compares two Date/Time structures Parameters: First Date/Time – 1st structure to be compared Second Date/Time – 2nd structure to be compared Compare: Compare Date and Time Compare Date Only Compare Time Only Set if First Equals Second Set if First is Before Second Set if First is After Second

Onboard Clock Programmatic use: Math-style operations: DTDIFF “Difference Between Two Date/Times” Calculates the number of seconds of time between two Date/Time structures Parameters: Date/Time A Date/Time B Difference DTA-DTB in seconds

Onboard Clock Programmatic use: Math-style operations: DTOFFSET “Add Offset to Date/Time” Adds time to a Date/Time structure Parameters: Starting Date/Time Offset Constant – will be normalized Negative Variable – in seconds Ending Date/Time