1Rhio10Remote I/O ManagerUser ManualVersion 1.4.42011-12-26
102. Getting StartedThis chapter describes how to set up and configure the Rhio10 in the first place.- 2.1 Panel Layout explains the panel layout and
11Figure 2-1. The panel layout of theRhio10Table 2-2. Terminal Block Assignment of the Rhio10AI1 AI2 AI3 AI4 DI1 DI2 DI3 DI4 DI5 DI6 DI7 DI8 DI9 DI10
122.2 Connecting the Hardware2.2.1 Setting up DIN Rail mount kitUsers may use DIN rail mounting kit included in the package to install the Rhio10 on t
13Figure 2-4. Setting up the Rhio10 to DIN Rail2.2.2 Connecting the PowerSupply the proper power according to the power specification of the Rhio10, i
142.2.3 Connecting to the NetworkConnect the one end of the Ethernet cable to the Rhio10 10Base-T port and the other to theEthernet network. If the ca
15Figure 2.7 Rhio Manager screen layout2.3.2 Basic configuration using Rhio ManagerSelect InterfaceIt specifies the communication method between Rhio1
16ProbeUsers may probe the Rhio10 on the network. If users perform [Probe] command, then theRhio10 detected will be shown on the Probe screen. If user
173. System Configuration and Administration3.1 Network ConfigurationA valid IP address of the Rhio10 needs to be assigned before it starts to work in
18The factory default configuration of IP mode is DHCP mode. In order to detect the Rhio10 forthe first time, users have to perform [Probe] function b
19Users will have to click [Set] button in order to reflect the parameter changes. Once [Set]operation is done, Rhio10 automatically store the changes
2Guide for the Rhio10Version 1.4.4Firmware version 1.4.xPrinted in KoreaCopyrightCopyright 2005~2012, Sena Technologies, Inc. All rights reserved.Sena
20with the help of the subnet mask. If the address is proven to be on the same network segmentas the Rhio10, the connection is established directly fr
21Rhio10 in such environments, its IP address should be reserved on the DHCP server side. Inorder to reserve the IP address in the DHCP network, the a
22give 255.255.255.255 for the subnet. To allow any hosts to the Rhio10, give 0.0.0.0 for both ofthe IP address and subnet. Please refer to Table 3-2
23TCP session is established between them, the Rhio10 will send data to the server.If there’s any data from the server during the session, it will als
24For easier understanding of TCP modes, a simplified State Transition Diagram is often used.And too help users understand the diagram, the TCP state
253.2.1 TCP Server Mode OperationsThe Rhio10 works as a TCP server, and the default TCP state is [Listen] in this mode. TheRhio10 supports only one TC
26ClosedEstablishedListenDataIncoming TCP connection requestInactivity time-outIncoming TCPdisconnection requestIncoming I/O status dataIncoming dataf
27there’s no connection close request. Although inactivity timeout is disabled, the Rhio10 willcheck the connection status between the Rhio10 and the
28Cyclic ConnectionIt Cyclic Connection function is enabled, the Rhio10 will make an attempt to connect to the user-defined remote host at certain int
29Destination IP address and destination TCP Port are the information on the remote host towhich the Rhio10 will try to connect in TCP client mode. Th
3Revision HistoryRevision Date Name DescriptionV1.0.0 2005-05-21 D.H. Shin Initial ReleaseV1.0.1 2005-08-08 D.H. Shin “Table 2-2. Terminal Block Assig
30EstablishedInactivity time-outTCP connection request rejectedOr internal TCP time-outTCP connection request acceptedSync-SentI/O status changeIncomi
31Figure 3-9 System Administration Configuration3.4 Restoring Factory DefaultUsers may restore the Rhio10 parameters into factory default value by pre
324. I/O Setting and Application4.1 I/O Monitoring and ControlYou can monitor, control and set I/O states by pressing the [I/O PORT CONTROL] button.On
334.1.2 Specifying monitoring intervalYou can continue to monitor the I/O state of Rhio10 at a specified time interval by setting[Setting Monitor Inte
34- After output control is completed, Rhio10 returns the states of all ports to the hostcomputer.4.2 Digital Input SettingRhio10 has 12 digital input
354.3 Digital Output Port SettingRhio10 has 10 digital output ports. You can set each of these digital output ports with RhioManager or by issuing the
364.3.2 Setting run conditionWhen the [Macro] check box is selected, you can enter a conditional expression and then use itto control operation of an
374.3.3 Delay & Pulse OperationIf the [Use Delay/Pulse] check box is selected, the output port executes Delay and Pulseoperation. The setting valu
38Figure 4-5 Setting ADC Input Port4.4.1 Setting ReferenceSpecify a reference voltage for analog input data. Rhio represents voltage from 0 V to arefe
394.5 I/O Port ConnectionThis section describes how to make a required connection with the digital output, digital inputand ADC input port of Rhio10 f
4Table of Contents1. Introduction ...
40Figure 4-7 Connection of Digital Input Port4.5.3 ADC Input PortAn ADC input port is a non-insulated input port. If possible, a circuit should be mad
412) When using an Analog Input PotentiometerAn analog input operates in reference to input voltage and has an impedance of 100㏀. Whenusing a Potentio
425. Software Development & ApplicationYou can use the Rhio library to develop application software that is used to communicate withRhio10.The Rhi
432) Structure (See Appendix D.2)Structure DescriptionSADCDataON/OFF state of each portSOnOffStateDataON/OFF state of all portsSSetOutputOutput port c
44RHIO_SndCmd_SetPortEnableSend a command that enables/disables allports.RHIO_SndCmd_GetPortEnableSend a command that checks enable/disablestate of al
455.2 Creating and demonstrating a sample program with RhiolibraryThe sample program (RHIO_TEST) is a dialog box based application that has been creat
461Figure 5-2 Setting Window of a Sample ProgramNo. Class Related Files1CSettingDlg SettingDlg.h SettingDlg.cpp5.2.2 Processing5.2.2.1 Initializing Ma
47CWEB_IO_TESTDlg::InitSample(CPoint pntStart, int iWidth,int iHeight, int iTerm)CWEB_IO_TESTDlg::InitSelComm();3) Create Process Class.m_rhCreate(CWn
48⑥ The Monitor Power Stop button is clicked on.CSettingDlg::OnBnClickedButtonMonitorPwrStop()⑦ The Set Power Stop button is clicked on.CSettingDlg::O
495.3 Rhio Communication ProtocolIn this chapter, it covers how to send/receive the command/reply to/from Rhio device by usingthe Rhio communication p
54.3.1 Setting Enable/Disable...354.3.2 Setting ru
50- LRC (BCC)Checks for any Errors in the command block.Bytewise XORed value from START FLAG field to DATA field(refer to example below)- END FLAGCR+L
51- NAK ResponseSTARTFLAGLENGTH FUNCTION DATALRC(BCC)ENDFLAGByteSize1 2 2 3 2 2Start of theCommandBlock, 0x3A( “:” )The length fromFUNCTION fieldto DA
52- DataMASK Data Data Separator ON/OFF DataData Order 1 - 10 11 12-21Port No. 1 - 10 - 1-10Data ContentControl: 0x31Non-control: 0x300x2C ( “,” )sepa
538-12 A20x30: OFF,0x31: ON (Switch Input),0x39: Level Mode“0000”-”1023”:Level13 - Field Separator 0x2C ( “,” )14-18 A30x30: OFF,0x31: ON (Switch Inpu
545.3.3 Input/Output State5.3.3.1 I/O State Request CommandCommand Data RemarkByte Size 2 1“03”( 0x30, 0x33 )State Request0x30: Fixed to adummy value5
555.3.4.2 Response for Set/Run command- Same as "5.3.2.2 Response for ON/OFF control".- In Setting mode, Rhio10 returns a response once and
56- A conditional expression only takes the form of a single expression with AND,OR, NOT.Eg. AND operation of Input #1 and Input #2 : I1 & I2OR op
57“00000” “50000”OFF after 5,000 sec delay“00001” “00001”Repeat 100 ms ON and 100 ms OFF.“00020” “00020”Repeat 2 sec ON and 2 sec OFF.“50000” “50000”R
585.3.5.4 Response for Check Output Port Setting command- Same as "5.3.5.2 Response for Set Output Port command".5.3.6 ADC Input Port Settin
59- Setting Flag0x30: Set OK0x31: Not in Setting mode (in Run mode)0x39: Set NG5.3.6.3 Check ADC Input Port Setting CommandCommand Data RemarkByte Siz
6B.2 Command Usage...70B.2.1 &a
605 -Field Separator 0x2C ( “,” )6 -0x30: AVcc ( Vcc 5V ) -> default0x31: Internal ( 2.56V )0x32: External ( 2-4.5V )ADC ReferenceSetting7 - Field
612 A13 A24 A35 A40x30: Avcc ( Vcc 5V ) -> default0x31: Internal ( 2.56V )0x32: External ( 2V-4.5V )ADC Port6 - Field Separator 0x2C ( “,” )ADC Ref
625.3.8 Port Power-out Post Recovery Setting5.3.8.1 Set Port Power-out Post Recovery commandCommand Data RemarkByte Size 2 12“14”( 0x31, 0x34 )Set Pow
632-5 O1-O40x31: Enable, 0x32: Disable6 - Field Separator 0x2C ( “,” )7-10 O5-O8 0x31: Enable, 0x32: Disable11 - Field Separator 0x2C ( “,” )Output St
64Appendix A. ConnectionA.1 Ethernet Pin OutsThe RHIO10 uses standard Ethernet connector, which is a shielded connector compliant withAT&T258 spec
65Pin Description1 RTS2 DTR3 TxD4 GND5 -6 RxD7 DSR8 CTSTable A-2. Pin assignment of the RJ45 connectorA.3 Ethernet Wiring DiagramFigure A-3. Ethernet
66Figure A-4. Ethernet connection using straight through ethernet cableA.4 Serial Console Wiring DiagramFigure A-5. RS232 wiring diagram
67Appendix B. Accessing Console Port and Command UsageB.1 Accessing Console PortThere are two ways to access console port of the RHIO10 depending on w
68Connect the other end of the cable to the serial port of user’s computer.Slide Data/Console switch to Console side.Figure B-2. Data/Console switch o
69- Save changesexit + <CR>- Exit without rebooting the devicereboot + <CR>- Exit and reboot the device>Figure B-3. The RHIO10 console
71. Introduction1.1 OverviewRhio10 is a remote I/O manager which enables users to control/monitor various I/O devicessuch as sensors and actuators thr
702) The user has to log into the RHIO10. Type the user name and password. A factory defaultsetting of the user name and password are both admin.3) If
71- if option='-ip', all parameters except IPsettings are set with factory default values.“ERROR” + <CR> +<LF>save + <CR>
72If users want to change only one of the parameters of the group, users can omit trailingparameters and/or can use ‘*’ to keep a parameter value. The
73The group means the category where parameters belong to as like ‘set’ command. For example,if users want to view parameter values related to IP conf
74B.2.3 'help' CommandWith ‘help’ command, users can find command usage help in the console screen. Basiccommand usage is as follows:help [g
75B.2.4 'save' CommandWith ‘save’ command, current parameter changes are saved to non-volatile memory. Commandusage of ‘save’ command is as
76if ipmode = static,par1 = IP address, par2 = subnet mask, par3 = gatewayif ipmode = dhcp,no parameters requiredif ipmode = pppoe,par1 = PPPoE userna
77par2 = inactivity timeout (sec)if hostmode = TCP client (tcpc),par1 = destination IP address,par2 = destination TCP port,par3 = cyclic connection in
78To configure the RHIO10 to work as a TCP server/client mode, use ‘set’ command as follows:set host tcpsc listening_port dest_ip dest_port cyclic_con
79Appendix C. TroubleshootingC.1 Power/LED Status TroubleshootingProblem Cause ActionPower LED does notlight upPower cable is notconnectedCheck power
81.3 Product Specification10 Base-T Ethernet with RJ45 Ethernet connectorNetwork InterfaceSupports static and dynamic IP addressDigital Input-Number o
80C.3 Remote Console TroubleshootingC.4 IP Address TroubleshootingProblem Cause ActionUse serial console to find IP addressCannot find IP addressof th
81Appendix D. Rhio LinraryD.1 Enumeration TypeEOnOffFlagFlag for ON, OFF, Operation conditionenum EOnOffFlag{EOF_ON, //ON statusEOF_ON_ADC_LEVEL, //AD
82ESF_SET_FACTROT_RESET, //Factory Reset Command transfer statusESF_SET_SERIAL, //Serial number Set Command transfer statusESF_MON_MACRO, //Macro chec
83D.2 StructureON/OFF status DataStructure which contains Port ON/OFF statustypedef struct _ADCData //ADC Data{EOnOffFlag eADC; //ADC On/OFF Flagchar
84SADCData sADCData[4]; //ADC Level Data}SSetADC;typedef struct _SetInput //Input Port Set Data{bool isEnable[12]; //Input port Enable}SSetInput;typed
85RHIO_SockConnectDescription : Used when users want to connect to RHIO using TCP Socket connection.Function Prototype :extern "C" __declspe
86RHIO_CloseDescription : Used when users want to disconnect the current connection with the Rhio in bothserial and TCP connection. In order to reconn
87RHIO_SndCmd_GetOnOffDescription : Used to send the command to get ON/OFF status of all the portsFunction Prototype :extern "C" __declspec(
88RHIO_SndCmd_SetMACRODescription : Used to send the command to set/clear the MACRO of an input portFunction Prototype :extern "C" __declspe
89RHIO_SndCmd_GetMACRODescription : Used to send the command to check whether it is possible to get the MACRO ofan input portFunction Prototype :exter
9Physical properties137 x 111 x 58 (mm), 5.4 x 4.4 x 2.3 (in.)Weight: 730gCertificationFCC (A), CE, MICWarranty5-year limited warranty
90Parameter when reaction event is received :WPARAM : Command transfer status flag (ESF_SET_DELAY_PULSE)LPARAM : Control status flag of the command (F
91RHIO_SndCmd_SetADCDescription : Used to send the command to set the Level of all the ADC ports from 1 to 4.Function Prototype :extern "C"
92(0x30:Normal operation, 0x39:Abnormal operation, 0x31:Not the Set Mode)※ When reaction event is received, get data using RHIO_GetSettingData functio
93RHIO_SndCmd_GetPortEnableDescription : Used to send the command to check whether it is possible to get theEnable/Disable Port data of all the portsF
94RHIO_SndCmd_GetPwrStopEnableDescription : Used to send the command to check whether it is possible to get theEnable/Disable Power Failure Recovery o
95CString strSerial : Serial number string limited to 12 bytesReturn : TRUE if successful, False if failed.Parameter when reaction event is received :
96RHIO_GetSettingDataDescription : Used to send the command to get the setting data corresponding to thecommand transfer status flagFunction Prototype
97Appendix E. WarrantyE.1 GENERAL WARRANTY POLICYSena Technologies, Inc. (hereinafter referred to as SENA) warrants that the Product shallconform to a
98THE PRICE PAID FOR THE PRODUCT.E.3 HARDWARE PRODUCT WARRANTY DETAILSWARRANTY PERIOD: SENA warranties embedded hardware Product for a period of one (
99E.4 SOFTWARE PRODUCT WARRANTY DETAILSWARRANTY PERIOD: SENA warranties software Product for a period of one (1) year.WARRANTY COVERAGE: SENA warranty
Komentarze do niniejszej Instrukcji