Sena Rhio10 Скачать руководство пользователя страница 84

84

SADCData sADCData[4];

//ADC Level Data

}SSetADC;

typedef struct _SetInput

//Input

Port Set Data

{

bool isEnable[12];

//Input port Enable

}SSetInput;

typedef struct _RHIOSetting

//All Port Set Data

{

SSetOutput sOutput;

//Setting Output port Data;

SSetADC sADC;

//Setting ADC port Data;

SSetInput sInput;

//Setting Input port Data;

char cGetSerial[18];

// Model name and Serial number

// received

char cGetFirmVer[9];

// Firmware Version received

}SRHIOSetting;

D.3 Function

RHIO_CommProcessCreate

Description :

It creates Process Class of

RHIO_Proc Dll

. In order to use Rhio Dll, be sure to

create the process using

RHIO_CommProcessCreate

.

Function Prototype :

extern "C" __declspec(dllexport) void RHIO_CommProcessCreate

(CWnd *pParentWnd);

Parameter :

CWnd *pParentWnd : Window Pointer to Parent window of Process Class

Return :

None

eg. :

RHIO_CommProcessCreate(this)

Содержание Rhio10

Страница 1: ...1 Rhio10 Remote I O Manager User Manual Version 1 4 3 2007 05 07...

Страница 2: ...rs When a system failure may cause serious consequences protecting life and property against such consequences with a backup system or safety device is essential The user agrees that protection agains...

Страница 3: ...ck Assignment of the Rhio10 is added V1 0 2 2005 11 02 D H Shin Typo errors corrected V1 0 3 2005 11 08 JS Kim Operating and storage temperature is updated V1 4 1 2006 11 15 JS Kim Added IP filtering...

Страница 4: ...ion and Administration 17 3 1 Network Configuration 17 3 1 1 Static IP 19 3 1 2 DHCP 20 3 1 3 PPPoE 21 3 1 4 IP Filtering 21 3 2 Host Mode Configuration 22 3 2 1 TCP Server Mode Operations 25 3 2 2 TC...

Страница 5: ...trating a sample program with Rhio library 45 5 2 1 Program UI Configuration and their related classes 45 5 2 2 Processing 46 5 3 Rhio Communication Protocol 49 5 3 1 Overview 49 5 3 2 ON OFF Control...

Страница 6: ...ix C Troubleshooting 79 C 1 Power LED Status Troubleshooting 79 C 2 Serial Console Troubleshooting 79 C 3 Remote Console Troubleshooting 80 C 4 IP Address Troubleshooting 80 C 5 DHCP Troubleshooting 8...

Страница 7: ...communication between host computers is done by event driven method which is triggered when the status is changed Users may probe configure test the Rhio10 system using Windows application Rhio Manage...

Страница 8: ...lation voltage coil and contact 4KV Reaction within 10ms Analog Input Number of channels 4 Effective resolution 10 bit Input type Voltage Direct Coupling Input range 0V Aref Analog reference voltage 2...

Страница 9: ...9 Physical properties 137 x 111 x 58 mm 5 4 x 4 4 x 2 3 in Weight 730g Certification FCC A CE MIC Warranty 5 year limited warranty...

Страница 10: ...nk and act for 10Base T Ethernet status There are 10 lamps for displaying digital output status 12 lamps for digital input status and lamps for 4 analog port status There is a DIP switch on the side o...

Страница 11: ...nput Port Setting 5V Out 4 It is AVCC output block User can input the power of devices Ground is no 5 7 9 and 11 blocks Analog Input AI1 AI4 5 6 7 8 9 10 11 12 Digital Input DI1 DI12 13 14 15 16 17 18...

Страница 12: ...up DIN Rail mount kit Users may use DIN rail mounting kit included in the package to install the Rhio10 on to the DIN rail Figure 2 2 Dimension of DIN Rail mount kit and applicable DIN Rails Figure 2...

Страница 13: ...Supply the proper power according to the power specification of the Rhio10 i e 9V 48VDC MAX 5W If the power is properly applied Power indicator will maintain RED Be sure not to use the cable longer t...

Страница 14: ...ets If any of the above does not happen the Rhio10 is not properly connected to the Ethernet network Figure 2 6 Connecting a network cable to the Rhio10 2 3 Rhio Manager Installation Rhio Manager is a...

Страница 15: ...ect to the Rhio10 from using Rhio Manager by specifying the destination IP address Once users click Quick Connect button then Rhio10 detected is shown on the Probe screen as a tree structure form If u...

Страница 16: ...n the Get Set screen Set After users complete the configuration they have to click Set button to reflect the changes Once it is done the changes will be stored on to the flash memory and the system wi...

Страница 17: ...ess must be unique within the network Otherwise the Rhio10 will not have a valid connection to the network Users can choose the desired IP mode out of the three IP operating modes i e Static IP DHCP a...

Страница 18: ...lay the IP address as 0 0 0 0 In this case users have to change the IP mode as Static IP mode and then enter the proper IP address for their environment After the Rhio10 is displayed on the Probe scre...

Страница 19: ...addresses of the Rhio10 valid subnet mask and the default gateway IP address IP address is an identification number assigned to a computer as a permanent address on the network Computers use IP addres...

Страница 20: ...part of the network a new IP address must be entered Meanwhile all the parameters including the IP address subnet mask gateway DNS servers will be automatically configured when the IP address is assi...

Страница 21: ...nection It is required to set up the user name and password of the PPPoE account If the IP mode is set to PPPoE The Rhio10 negotiates the PPPoE connection with PPPoE server whenever it boots up During...

Страница 22: ...host modes A factory default host mode is TCP Server Note In order to use Rhio Manager users have to set Host Mode as TCP Server mode Table 3 3 The Rhio10 TCP IP session modes Mode Description TCP Se...

Страница 23: ...ient If the connection is not established it will accept all incoming connection and connect to the remote host if there are any I O status data Otherwise it will send data back and forth In summary t...

Страница 24: ...Sync Received if any remote host sends connection request If the Rhio10 accepts the request the state will be changed into Established This state is not valid in TCP client mode Sync Sent If the Rhio...

Страница 25: ...pened For a while data will be transferred between the hosts This is the Data state The session will be disconnected due to the request of one of them which is Closed state And then the state is autom...

Страница 26: ...es not restrict the number to a specific range but it is strongly recommended not to use the well known ports for certain application See Appendix D Well known Port Numbers To change the port number s...

Страница 27: ...which means the connection request is being sent If the remote host accepts the request the state will be changed into Established which means a session has been opened For a while I O state data will...

Страница 28: ...and to the Rhio10 whenever it is connected to the remote host This option is useful when users need to gather the device information periodically even if the status of the I O device is not changed Fi...

Страница 29: ...applications since it will transfer the data either from serial port or from TCP port The default TCP state is Listen which is the same as that of TCP server mode 1 Typical State Transition Listen Sy...

Страница 30: ...st I O status change Sync Recvd Reject Accept Closed Data Figure 3 8 State Transition Diagram of TCP server client mode 3 3 System Administration Users may change the ID Password and Device Name withi...

Страница 31: ...harp pin into the hole and press it for around 1 sec to reset the Rhio10 Rhio10 will be rebooted after the operation The following is the factory default value of the parameters IP Mode DHCP Host Mode...

Страница 32: ...invoked Rhio Manager begins to monitor the I O state by connecting to a local port of Rhio10 via a TCP socket To allow this process the Rhio10 should be set to TCP server mode 4 1 1 LED ON Red Icon O...

Страница 33: ...OFF state of input In Level mode ADC Input Port converts the analog value retrieved to a digital value in 1 024 steps and displays the converted value 0000 1023 In Switch mode ADC Input Port compares...

Страница 34: ...e Setting window 4 2 1 Setting Enable Disable Figure 4 3 Setting digital input Digital input setting has two options Enable and Disable After selecting either of the options press the Setting button t...

Страница 35: ...rotocols Place your mouse cursor over the Digital Output Port LED on the I O Port Control screen and right click it to display the Setting Output Port window Figure 4 4 Setting digital output port win...

Страница 36: ...direct access Operation condition expressions can be specified as follows 1 Port No Logic Expression Port No 2 Logic Expression Port No 3 Port No Logic Expression Logic Expression Port No Logical ope...

Страница 37: ...set for an output port using the Setting power stoppage rehabitation pane in the Setting window If it is enabled Rhio10 retains its output port states prior to power out when power goes out and back...

Страница 38: ...ference voltage 2 56V as a reference voltage Use Outside Specify voltage issued to Aref as a reference voltage 4 4 2 Setting ADC Input Port Analog Input Port has two modes Level mode and Switch mode L...

Страница 39: ...nt is set to ON An electric load can be connected as shown below by using OUTA1 and OUTB1 as driving switches Figure 4 6 Connection of Digital Output Port 4 5 2 Digital Input Port A digital input syst...

Страница 40: ...versely input is set to OFF and the LED turns off when the input voltage is lower than the threshold The ADC status LED operates only when it is set as Switch mode 1 Connecting reference voltage AREF...

Страница 41: ...at analog Input voltage does not exceed AREF voltage Figure 4 9 Circuit connection when a Potentiometer is used 3 Connecting when a voltage higher than AVCC voltage is used For voltage input the circu...

Страница 42: ...s an MFC library that allows you to implement a communication protocol between Rhio and PC in a Windows environment Since the Rhio library contains CSocket Class it should be linked to a Microsoft Win...

Страница 43: ...via a serial port RHIO_Close Disconnect from RHIO RHIO_SndCmd_SetOnOff Send a command that controls ON OFF RHIO_SndCmd_GetOnOff Send a command that checks ON OFF setting RHIO_SndCmd_SetSettingMode Sen...

Страница 44: ...l input ports RHIO_SndCmd_SetFactoryReset Send Rhio Factory Reset command RHIO_SndCmd_SetSerial Send a command that sets Rhio serial number RHIO_SndCmd_GetSerial Send a command that checks Rhio serial...

Страница 45: ...with Microsoft Visual Studio NET linked to Rhio library RHIO_Proc dll RHIO_Process h 5 2 1 Program UI Configuration and their related classes 1 2 2 3 Figure 5 1 Main Window of a Sample Program No Clas...

Страница 46: ...ngDlg cpp 5 2 2 Processing 5 2 2 1 Initializing Main window 1 Link the library and get the address of a required library function CWEB_IO_TESTDlg RHIODllLoad 2 Initialize dialog items in Main window C...

Страница 47: ...clicked on CWEB_IO_TESTDlg OnBnClickedButtonClose The Set Button is clicked on CWEB_IO_TESTDlg OnBnClickedButtonSetting The State View button is clicked on CWEB_IO_TESTDlg OnBnClickedButtonStateView...

Страница 48: ...button is clicked on CSettingDlg OnBnClickedButtonSetInput The Check Delay Pulse State button is clicked on CSettingDlg OnBnClickedButtonMonitorOutput2 The Set Delay Pulse button is clicked on CSetti...

Страница 49: ...ommand Block START FLAG LENGTH FUNCTION DATA LRC BCC END FLAG Byte Size 1 2 2 N 2 2 Start of the Command Block 0x3A The length from FUNCTION field to DATA field Command Response Data XOR from START FL...

Страница 50: ...e to write a code so that it will have to wait at least 5 sec if there is no response from Rhio after sending the command An Example of the LRC calculation is as follows XOR from Start Flag field to t...

Страница 51: ...t Send NAK Response BCC Error or Timer out or Length calculation error Users have to write code to send the command again or display NAK status if the program receives NAK Response NOTE In the followi...

Страница 52: ...r 12 13 14 15 16 17 18 19 20 21 Port O1 O2 O3 O4 O5 O6 O7 O8 O9 O10 5 3 2 2 Response for ON OFF Control Response Data Remark Byte Size 2 52 02 0x30 0x32 input output overall state ON OFF state data fo...

Страница 53: ...x30 OFF 0x31 ON 40 Field Separator 0x2C 41 44 O1 O4 0x30 OFF 0x31 ON 0x32 Wait for a conditional execution 0x33 Wait for Delay ON 0x34 Wait for Delay OFF 0x35 Run PULSE 45 Field Separator 0x2C 46 49 O...

Страница 54: ...d 0x31 in Setting mode 5 3 4 Set Run 5 3 4 1 Set Run Command Command Data Remark Byte Size 2 1 04 0x30 0x34 Set Run 0x30 Set 0x31 Run Switch between Set and Run Modes Rhio10 returns a state response o...

Страница 55: ...Data Max 106 bytes Set the attribute of each output port When cleared the setting data is 0x30 in 1 byte A setting can be done only in Setting mode Users can set repeated run condition pulse or delay...

Страница 56: ...uded in run condition Eg When setting O1 it should not be included in its run condition expression 2 Set Delay Pulse It specifies the output to toggle between ON OFF at a given time or repeatedly Dela...

Страница 57: ...tion 0x32 Clear Delay Pulse 0x33 Set Delay Pulse 0x39 Clear all settings Setting Data Return the setting of an output port Setting Flag 0x30 Set OK 0x39 Set NG 0x31 Not in Setting mode when in Run mod...

Страница 58: ...ange of 8 8 are recognized as an input change based on the threshold level It is determined as ON when an input voltage is more than the threshold level by 8 or more and OFF when an input voltage is l...

Страница 59: ...se for Check ADC Input Port Setting command Same as 5 3 6 2 Response for Set Port command The setting field is always OK 0x30 The factory default value in Level Input mode is set to 0000 5 3 7 Port En...

Страница 60: ...Separator 0x2C 28 31 O5 O8 0x31 Enable 0x32 Disable 32 Field Separator 0x2C Output State 33 34 O9 O10 0x31 Enable 0x32 Disable All I O ports are initially set to Enable including Factory Reset All AD...

Страница 61: ...O1 O4 0x31 Enable 0x32 Disable 28 Field Separator 0x2C 29 32 O5 O8 0x31 Enable 0x32 Disable 33 Field Separator 0x2C Output State 34 35 O9 O10 0x31 Enable 0x32 Disable 5 3 7 3 Check Port Enable Setting...

Страница 62: ...ntent 1 4 O1 O4 0x31 Enable 0x32 Disable 5 Field Separator 0x2C 6 9 O5 O8 0x31 Enable 0x32 Disable 10 Field Separator 0x2C Output State 11 12 O9 O10 0x31 Enable 0x32 Disable 5 3 8 2 Response for Set P...

Страница 63: ...mand Command Data Remark Byte Size 2 1 16 0x31 0x36 Check the Power out Recovery setting 0x30 Fixed to a dummy value Check the Power out Recovery setting for all ports 5 3 8 4 Response for Check Port...

Страница 64: ...cription Color 1 Tx White with orange 2 Tx Orange 3 Rx White with green 4 NC Blue 5 NC White with blue 6 Rx Green 7 NC White with brown 8 NC Brown A 2 Console Port Pin Outs The pin assignment of the R...

Страница 65: ...Pin Description 1 RTS 2 DTR 3 TxD 4 GND 5 6 RxD 7 DSR 8 CTS Table A 2 Pin assignment of the RJ45 connector A 3 Ethernet Wiring Diagram Figure A 3 Ethernet direct connection using crossover ethernet ca...

Страница 66: ...66 Figure A 4 Ethernet connection using straight through ethernet cable A 4 Serial Console Wiring Diagram Figure A 5 RS232 wiring diagram...

Страница 67: ...ll as the data port To use the serial port as the console port slide Data Console switch to the Console side Note When connecting console port to host user should use the other end of CAT5 cable using...

Страница 68: ...f the user logged into the RHIO10 successfully command prompt screen will appear on the computer as shown in Figure B 3 login admin password Type help to get command usages help set group par1 par2 CR...

Страница 69: ...ust be known before users can access the remote console port The port number for the remote console is 23 which is a TCP port number assigned for Telnet Only one user can log into the remote console o...

Страница 70: ...ummarizes command set which RHIO10 supports Table B 1 RHIO10 command set summary Command Description Result set group par1 par2 CR Set configuration parameters group ip host serial or admin par1 confi...

Страница 71: ...rial or admin par1 par2 configuration parameters Use to keep a parameter s value The group is the category where the parameters should be entered For example if users want to set parameters related to...

Страница 72: ...set command usage for the IP configuration as shown in Figure B 7 help ip set ip ipmode par1 par2 ipmode static Static IP dhcp DHCP pppoe PPPoE parameters if ipmode static par1 IP address par2 subnet...

Страница 73: ...erial_no Rhio10 0207_test MAC_address 00 01 95 77 88 99 F W_REV V1 2 0 Current_IP 192 168 0 125 Figure B 9 Getting status screen If group is omitted get command will show all of the parameter values a...

Страница 74: ...ws settings of the group If group is omitted shows settings of all groups help group CR If group is omitted shows this screen If group is specified shows set command usage of the group factorydefault...

Страница 75: ...ed parameters are not applied until the RHIO10 is manually rebooted Command usage of exit command is as follows exit CR B 2 6 reboot Command With reboot command the RHIO10 will be rebooted immediately...

Страница 76: ...RHIO10 subnet_mask Subnet mask default_gateway Default gateway IP address To apply changes users have to invoke save and reboot command after changing configuration set ip static 192 168 1 10 255 255...

Страница 77: ...or unlimited timeout To configure the RHIO10 to work as a TCP server use set command as follows set host tcps listening_TCP_port inactivity_timeout CR where listening_TCP_port Listening TCP port Inact...

Страница 78: ...c connection interval in minutes inactivity_timeout inactivity timeout in seconds The parameter of the TCP Server Client mode is same as the ones of the TCP server mode and client mode set host tcpsc...

Страница 79: ...ot blink Invalid IP configuration Check IP configuration parameters C 2 Serial Console Troubleshooting Problem Cause Action Invalid serial cable Be sure to use a serial console cable null modem cable...

Страница 80: ...HIO10 is changed DHCP server does not extend lease time Check if DHCP server is working correctly Problem Cause Action The RHIO10 is not assigned valid IP address Use serial console to assign valid IP...

Страница 81: ...endStatusFlag Transfer status flag for indicating which command is sent to Rhio10 enum SendStatusFlag ESF_ONOFF ON OFF control command transfer status ESF_SET ESF_SET_MODE Set mode switch command tran...

Страница 82: ...ENABLE Enable Disable check Command transfer status ESF_MON_PWR_STOP Power out Post Recovery check Command transfer status ESF_MON_SERIAL Serial number check Command transfer status ESF_MON_FIRMWARE F...

Страница 83: ...ta sADC 4 ADC Port 1 4 SOnOffStatusData Set status Data Structure for the Set status typedef struct _SetOutput Output Port Set Data ESetOutputFlag eMacro MACRO Flag ESOF_CLEAR ESOF_SETTING char cMacro...

Страница 84: ...char cGetSerial 18 Model name and Serial number received char cGetFirmVer 9 Firmware Version received SRHIOSetting D 3 Function RHIO_CommProcessCreate Description It creates Process Class of RHIO_Pro...

Страница 85: ...ess int iPort Port number Return TRUE if successful False if failed eg if RHIO_SockConnect 192 168 100 2 6001 AfxMessageBox Connection Successful else AfxMessageBox Connection Failure RHIO_CommConnect...

Страница 86: ...SetOnOff Description Used to send the command to turn ON OFF an ouput port Function Prototype extern C __declspec dllexport bool RHIO_SndCmd_SetOnOff int iOutputNum EOnOffFlag eOnOff Parameter int iOu...

Страница 87: ...n event is received WPARAM Command transfer status Flag ESF_SET_MODE LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x31 Not the Run Mode 0x32 Abnormal operati...

Страница 88: ...Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Command transfer status Flag ESF_SET_MACRO LPARAM Control status flag of the command False if Time Out Error...

Страница 89: ...t the Set Mode 0x32 Not set When reaction event is received get data using RHIO_GetSettingData function and check the MACRO on setting eg RHIO_SndCmd_GetMACRO 1 RHIO_SndCmd_SetDelayPulse Description U...

Страница 90: ...layPulse ESOF_CLEAR RHIO_SndCmd_SetDelayPulse sSetData 1 RHIO_SndCmd_GetDelayPulse Description Used to send the command to check whether it is possible to get the Delay Pulse of an input port Function...

Страница 91: ...e if Time Out Error 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode eg SRHIOSetting sSetData for int index 0 index 4 index memset sSetData sADC sADCData index cADC 0 sizeof sSetDat...

Страница 92: ...eference 0x30 Avcc 0x31 Internal 0x32 External SRHIOSetting sInput isEnable 12 Input Enable Disable Enable true Disable false SRHIOSetting sOutput isEnable 10 Outnput Enable Disable Enable true Disabl...

Страница 93: ...RHIO_SndCmd_GetPortEnable RHIO_SndCmd_SetPwrStopEnable Description Used to send the command to enable disable the Power Failure Recovery of all the input ports Function Prototype extern C __declspec d...

Страница 94: ...Data function and check the Enable Disable Power Failure Recovery on setting eg RHIO_SndCmd_GetPortEnable RHIO_SndCmd_SetFactoryReset Description Used to send the command to request RHIO FactoryReset...

Страница 95: ...WPARAM Command transfer status flag ESF_MON_SERIAL LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode When reaction...

Страница 96: ...essful False if failed eg SRHIOSetting sSetData RHIO_GetSettingData sSetData Setting data stored to sSetData RHIO_GetOnOffData Description Used to send the command to get the ON OFF status of all the...

Страница 97: ...or to the international distributor it was purchased through and providing proof of purchase or receipt date Customer agrees to insure the Product or assume the risk of loss or damage in transit to p...

Страница 98: ...Product at no charge in or out of warranty WARRANTY EXCLUSIONS Damages caused by Accidents falls objects striking the SENA product Operating the Product in environments that exceed SENA s temperature...

Страница 99: ...Y COVERAGE SENA warranty will be limited to providing a software bug fix or a software patch at a reasonable time after the user notifies SENA of software non conformance E 5 THIRD PARTY SOFTWARE PROD...

Отзывы: