DA-IRIGB-4DIO-PCI104-EMC4 Module
User’s Manual
Edition 2.0, February 2017
www.moxa.com/product
© 2017 Moxa Inc. All rights reserved.
Страница 1: ...DA IRIGB 4DIO PCI104 EMC4 Module User s Manual Edition 2 0 February 2017 www moxa com product 2017 Moxa Inc All rights reserved ...
Страница 2: ... changes to this manual or to the products and or the programs described in this manual at any time Information provided in this manual is intended to be accurate and reliable However Moxa assumes no responsibility for its use or for any infringements on the rights of third parties that may result from its use This product might include unintentional technical or typographical errors Changes are p...
Страница 3: ...rity Mode 3 17 Configuring Time Synchronization Settings in Windows 7 3 18 Selecting a Time Input Source 3 18 Synchronizing with System Time 3 18 Configuring Digital Output and Input Status 3 19 Using the mxIrigUtil Command 3 20 4 API Reference 4 1 Get IRIG B Board Hardware ID 4 2 Open IRIG B Device 4 2 Close IRIG B Device 4 2 Get Digital Input Signal 4 2 Get Digital Output Signal 4 3 Get IRIG B P...
Страница 4: ......
Страница 5: ... that support the PCI 104 interface The DA IRIGB 4DIO PCI104 EMC4 module features 3 digital inputs and 4 digital outputs and provides precision timing information using IRIG B input signals The following topics are covered in this chapter Overview Package Checklist Product Features Product Specifications ...
Страница 6: ...by the edges only since your body s static charge can damage the integrated circuits When the module is not in use keep it in the anti static package provided You may also use this package to return the module if it requires repair The DA IRIGB 4DIO PCI104 EMC4 module is shipped with the following items DA IRIGB 4DIO PCI104 EMC4 module 2 DB9 connectors 4 15 mm M F M3x6 M3x7 spacers 4 4 8 mm M F 4 ...
Страница 7: ...gital Output Output Channels 4 sink type Output Current Max 200 mA per channel On state Voltage 24 VDC nominal open collector to 30 V Isolation 3 kV optical isolation Connector Type DB9 Operating Systems Windows Windows 7E Linux Debian 7 Physical Characteristics Dimensions 90 x 96 mm 3 54 x 3 78 in Environmental Limits Operating Temperature 10 to 60 C 14 to 140 F Storage Temperature 40 to 85 C 40 ...
Страница 8: ...ter explains how to install the DA IRIGB 4DIO PCI104 EMC4 module The following topics are covered in this chapter Block Diagram Pin Assignments IRIB B Signal Input Digital Input and Digital Output Installing the DA IRIGB 4DIO PCI104 EMC4 ...
Страница 9: ...assignment for the male DB9 connectors to connect to an IRIG B signal source or a digital input DI or digital output DO device IRIB B Signal Input Pin Differential TTL 1 2 3 Data TTL 4 Data GND 5 6 7 8 9 Digital Input and Digital Output Pin 3DIs 4DOs 1 DO 0 2 DO 1 3 DO 2 4 DO 3 5 DO COM 6 DI 0 7 DI 1 8 DI 2 9 DI Source ...
Страница 10: ...amage to your system or the main board make sure that you turn off the embedded computer before installing the DA IRIGB 4DIO PCI104 EMC4 module 1 Turn off the embedded computer 2 Connect the cables Complete the following actions a Connect the 2 wire IRIG B input signal cable b Connect the 4 wire IRIG B output signal cable ...
Страница 11: ...DA IRIGB 4DIO PCI104 EMC4 Module Hardware Installation 4 4 c Connect the 10 wire DIO signal cable 3 Install the four 15 mm spacers on the embedded computer ...
Страница 12: ...DA IRIGB 4DIO PCI104 EMC4 Module Hardware Installation 4 5 4 Insert the module firmly into an available PCI 104 slot 5 Install the four screws to secure the module in place ...
Страница 13: ... 4DIO PCI104 EMC4 Module Hardware Installation 4 6 6 Secure the DB9 connectors on the rear panel of the embedded computer 7 Turn on the embedded computer The BIOS will automatically set the IRQ and I O address ...
Страница 14: ...nstallation Off line Installation Using the timesync Daemon in Linux Examples Configuring the timesync Daemon Using the IRIG B Utility in Linux Examples Installing the IRIG B Driver in Windows 7 Installing the IRIG B Utility in Windows 7 Using the IRIG B Utility in Windows 7 Configuring IRIG B Parameters Input Signal Type IRIG B Parity Mode Configuring Time Synchronization Settings in Windows 7 Se...
Страница 15: ... Moxa s public key file on the embedded computer for example DA 682A root Moxa sudo unzip MOXA SYS DEBIAN KEY root Moxa cd MOXA SYS DEBIAN KEY root Moxa sudo apt key add NEW MOXA SYS DEBIAN KEY 5 In the etc apt sources list file insert one of the following lines to add the Moxa APT server deb http 220 135 161 42 debian wheezy main deb http debian moxa com debian wheezy main The following figure sh...
Страница 16: ...nc daemon 1 2 6 Verify that the driver is loaded and the time sync daemon is running a Use the lsmod command to check whether the IRIG B module is loaded root Moxa lsmod grep irig moxa_irigb 12683 1 b Verify that the timesync daemon is running with the default configuration root Moxa root Moxa ps aux grep ServiceSyncTime root 3078 0 0 0 1 16136 1140 S 10 43 0 00 usr sbin ServiceSyncTime t 1 i 10 B...
Страница 17: ...16136 1140 S 10 43 0 00 usr sbin ServiceSyncTime t 1 i 10 B Using the timesync Daemon in Linux The following figure shows the help information of the timesync daemon root Moxa ServiceSyncTime h Found the IRIG B module Hardware ID 1 IRIG B time sync daemon Usage ServiceSyncTime t signal type I d i Time sync interval p Parity check mode B t signal type 0 TTL 1 DIFF default value is 1 I inverse the i...
Страница 18: ... the timesync daemon The script also includes the default settings for MX_IRIGB_OPTS root Moxa sudo vi etc init d mx_irigb sh MX_IRIGB_SERVICESYNCTIME_OPTS t 1 i 10 B After you change the settings in the etc init d mx_irigb sh file restart the daemon root Moxa sudo service mx_irigb sh restart Using the IRIG B Utility in Linux The mxIrigUtil command is available in the destination folder that you s...
Страница 19: ...ode p Mode 0 1 0 Even 1 Odd default value is 0 10 Get Pulse per second width ms 11 Set Pulse per second width ms p 0 999 width 0 999 ms default value is 0 12 Get input signal type p 0 1 0 Fiber 1 Port 1 port 0 1 default value is 1 13 Set input signal type p 0 1 0 1 0 1 port 0 1 0 Fiber 1 Port 1 signal type 0 1 0 TTL 1 DIFF inverse 0 1 0 No inverse 1 Inverse default value is 1 1 0 14 Get output sig...
Страница 20: ...lay IRIG B signal status Possible status are 0 Normal 1 Off Line 2 Frame Error 3 Parity Error Source 2 Where 2 is port 1 input 6 Display IRIG B input parity check mode Possible modes are 0 Even 1 Odd 2 None Source 2 Where 2 is port 1 input 7 Set IRIG B input parity check mode Source Mode Where Source 2 port 1 input Mode 0 Even 1 Odd 2 None 10 Display pulse per second width ms N A 11 Set pulse per ...
Страница 21: ...IrigUtil f 2 p 2014 11 19 11 19 50 Set IRIGB RTC 2014 11 19 11 19 50 The following command example displays the IRIG B module time sync source setting In this example the time source is IRIG B Port 1 root Moxa mxIrigUtil f 3 Get Sync Source 2 Port 1 In The following command example sets the IRIG B module time sync source root Moxa mxIrigUtil f 4 p 1 Set Sync Source 1 The following command displays...
Страница 22: ...til f 17 p 1 1 Set DO 1 1 root Moxa mxIrigUtil f 17 p 2 0 Set DO 2 0 root Moxa mxIrigUtil f 17 p 2 1 Set DO 2 1 root Moxa mxIrigUtil f 17 p 3 0 Set DO 3 0 root Moxa mxIrigUtil f 17 p 3 1 Set DO 3 1 The following command example displays the digital input interface root Moxa mxIrigUtil f 18 p 0 Get DI 0 0 root Moxa mxIrigUtil f 18 p 1 Get DI 1 0 root Moxa mxIrigUtil f 18 p 2 Get DI 2 0 You can edit...
Страница 23: ...in mxIrigUtil MX_IRIGB_UTIL_OPTS dev null 2 1 Installing the IRIG B Driver in Windows 7 1 Log into the embedded computer as an administrator 2 Download the installation files from the Moxa web site at http www moxa com 3 Copy the driver and utility files to the embedded computer 4 Double click the IRIG B driver installation file 5 When the welcome screen appears click Next ...
Страница 24: ...ll for anyone using this computer and click Next NOTE Before you select Install just for me make sure that you understand how this option might affect the operation for other users on the embedded computer 7 Accept the default destination folder or click Browse to select one then click Install ...
Страница 25: ...nal type for the DA IRIGB 4DIO PCI104 module NOTE Before you install the utility in 64 bit Windows 7 make sure that Microsoft Visual C 2010 SP1 Redistributable Package and Microsoft Visual C 2010 SP1 Redistributable Package x64 are already installed 1 Log into the embedded computer as an administrator 2 Obtain the utility installation file from the Moxa web site at http www moxa com 3 On the embed...
Страница 26: ...on 4 13 4 When the welcome screen appears click Next 5 Select install for anyone using this computer and click Next NOTE Before you select Install just for me make sure that you understand how this option might affect the operation for other users on the embedded computer ...
Страница 27: ...IO PCI104 EMC4 Module Software Installation and Configuration 4 14 6 Accept the default destination folder or click Browse to select one then click Install 7 When the installation process is complete click Finish ...
Страница 28: ...ration 4 15 Using the IRIG B Utility in Windows 7 After you install the IRIG B utility on your embedded computer running Windows 7 you start the IRIG B utility from the start menu click Moxa DA IRIG B Utility mxIrigbCardConf to configure the DA IRIGB 4DIO PCI104 EMC4 ...
Страница 29: ...arameters You can use the IRIG B utility to configure the IRIG B parameters that the DA IRIGB 4DIO PCI104 EMC4 module supports Input Signal Type In the Moxa IRIG B Card Configure Utility screen select Differential or TTL from the Signal Type drop down list Click Apply to make the changes take effect ...
Страница 30: ...tware Installation and Configuration 4 17 IRIG B Parity Mode Depending on your country you may need to configure the parity mode From the IRIG B Parity Mode drop down list box select an option For example in China select Odd charity mode ...
Страница 31: ...ime input sources External IRIG B signal Internal independent 25 MHz reference clock Selecting a Time Input Source From the Sync to internal RTC Source drop down list select a time input source that you want to use Synchronizing with System Time You can synchronize the RTC time with the system time In the IRIG B utility select the Sync internal RTC to system time check box and enter the number of ...
Страница 32: ...y configure the digital output and digital input status To control a digital output select or clear the associated check box The following table shows the signal and logic state for the check box Check box Signal Logic Selected High 1 Not selected Low 0 To read status from a digital input select or clear the associated check box The following table shows the signal and logic state Check box Signal...
Страница 33: ... function IDs Function ID Function description Parameters 0 Display the hardware device ID For example Hardware ID 1 DA_IRIGB_4DIO_PCI104 N A 1 Display current internal RTC time N A 2 Set internal RTC time yyyy MM dd hh mm ss Where yyyy is the year 2000 2099 MM is the month 1 12 dd is the day of the month 1 31 hh is the hour of the day 0 23 mm is the minute 0 59 ss is the second 0 59 3 Display the...
Страница 34: ...inverse 16 Display digital output port where 0 is DO0 1 is DO1 2 is DO2 and 3 is DO3 17 Set digital output port level Where port 0 is DO0 1 is DO1 2 is DO2 and 3 is DO3 level 0 is low and 1 is high 18 Display digital input port Where 0 is DI0 1 is DI1 and 2 is DI2 NOTE Function IDs 8 9 14 and 15 are not available for the DA IRGB 4DIO PCI 104 EMC4 module which does not support the fiber input port ...
Страница 35: ...utput Signal Get IRIG B Parity Check Mode Get Input Interface Get IRIG B Output Parity Check Mode Get Output Interface Get Pule Per Second Output Width Get IRIG B Signal Status GET RTC Synchronization Source Get RTC from IRIG B Device Set Digital Output Signal Set IRIG B Input Parity Check Mode Set Input Interface Set IRIG B Output Parity Check Mode Set Output Interface Set Pulse Per Second Output...
Страница 36: ... use GetLastError Open IRIG B Device MXIRIG_API HANDLE mxIrigbOpen int index Parameters in index The device number starting from 0 Returns Returns the pointer to the device handle A return value is of 1 indicates a failure Close IRIG B Device MXIRIG_API void mxIrigbClose HANDLE hDev Parameters in hDev A valid handle value returned from the mxIrigbOpen function Returns None Get Digital Input Signal...
Страница 37: ...Mode MXIRIG_API BOOL mxIrigbGetInputParityCheckMode HANDLE hDev DWORD dwSource PDWORD pdwMode Parameters in hDev A valid handle value returned from the mxIrigbOpen function in dwSource The value is one of RTC_SYNC_SOURCE but cannot be TIMESRC_FREERUN out pdwMode A pointer to get output parity check mode The value is one of PARITY_CHECK_MODE Returns If the operation completes successfully the retur...
Страница 38: ...mxIrigbGetOutputSignalType HANDLE hDev DWORD dwPort PDWORD pdwType PDWORD pdwMode PBOOL pbInvert Parameters in hDev A valid handle value returned from the mxIrigbOpen function in dwPort Signal source The value is one of PORT_LIST out pdwType A pointer to get the signal type The value is one of SIGNAL_TYPE out pdwMode A pointer to get the signal output mode The value is one of OUTPUT_MODE out pbInv...
Страница 39: ... error information use GetLastError GET RTC Synchronization Source MXIRIG_API BOOL mxIrigbGetSyncTimeSrc HANDLE hDev PDWORD pdwSource Parameters in hDev A valid handle value returned from the mxIrigbOpen function out pdwSource A pointer to get internal RTC synchronization source The value is one of RTC_SYNC_SOURCE Returns If the operation completes successfully the return value is nonzero If the o...
Страница 40: ...IrigbOpen function in dwSource The value is one of RTC_SYNC_SOURCE but cannot be TIMESRC_FREERUN in dwMode PARITY_CHECK_MODE to set parity check mode Returns If the operation completes successfully the return value is nonzero If the operation fails or is pending the return value is zero To display detailed error information use GetLastError Set Input Interface MXIRIG_API BOOL mxIrigbSetInputSignal...
Страница 41: ...ource The value is one of PORT_LIST in dwType SIGNAL_TYPE to set the input interface mode in dwMode OUTPUT_MODE to set the output interface mode in invert If the value is not zero invert the input signal Returns If the operation completes successfully the return value is nonzero If the operation fails or is pending the return value is zero To display detailed error information use GetLastError Set...
Страница 42: ...rns If the operation completes successfully the return value is nonzero If the operation fails or is pending the return value is zero To display detailed error information use GetLastError Synchronize System Local Time with IRIG RTC MXIRIG_API BOOL mxIrigbSyncTime HANDLE hDev BOOL bToFrom Parameters in hDev A valid handle value returned from the mxIrigbOpen function in pRtbToFrom 0 Sets IRIG RTC t...
Страница 43: ...ype if mxIrigbSetInputInterface irigbCardHandle time_source_interface signal_type inverse fprintf stderr mxIrigbSetInputInterface fail n mxIrigbClose irigbCardHandle return 0 3 3 Reference the IRIG B API to control the IRIG B module EX Set Sync Time Source if mxIrigbSetSyncTimeSrc irigbCardHandle time_source fprintf stderr mxIrigbSetSyncTimeSrc time_source d fail n time_source mxIrigbClose irigbCa...
Страница 44: ...DA IRIGB 4DIO PCI104 EMC4 Module API Reference 4 10 ...