1Rhio232Serial I/O ManagerUser ManualVersion 1.0.52011-12-26
10Figure 2-1. The panel layout of the Rhio232Table 2-2. Terminal Block Assignment of the Rhio232AI1 AI2 AI3 AI4 DI1 DI2 DI3 DI4 DI5 DI6 DI7 DI8 DI9 DI
112.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 Rhio232 on
12Figure 2-4. Setting up the Rhio232 to DIN Rail2.2.2 Connecting the PowerSupply the proper power according to the power specification of the Rhio232,
132.2.3 Connecting to the serial deviceConnect the one end of the CAT5 cable to RS232 port of the Rhio232 and the other to host ordevice server. If co
14Figure 2.7 Rhio Manager screen layout2.3.2 Basic configuration using Rhio ManagerSelect InterfaceIt specifies the communication method between the R
15Figure 2.8 Quick connect dialog box2.4 Restoring Factory DefaultUsers may restore the Rhio232 parameters into factory default value by pressing fact
163. I/O Setting and Application3.1 I/O Monitoring and ControlYou can monitor, control and set I/O states by pressing the [I/O PORT CONTROL] button.On
173.1.2 Specifying monitoring intervalYou can continue to monitor the I/O state of the Rhio232 at a specified time interval by setting[Setting Monitor
18- When the operation condition is specified, the port is set to ON if it is met, and it is setto OFF and displayed as a standby state if not.- After
193.3 Digital Output Port SettingThe Rhio232 has 10 digital output ports. You can set each of these digital output ports with RhioManager or by issuin
2Guide for the Rhio232Version 1.0.5Printed in KoreaCopyrightCopyright 2005~2012, Sena Technologies, Inc. All rights reserved.Sena Technologies reserve
203.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
213.3.3 Delay & Pulse OperationIf the [Use Delay/Pulse] check box is selected, the output port executes Delay and Pulseoperation. The setting valu
22Figure 3-5 Setting ADC Input Port3.4.1 Setting ReferenceSpecify a reference voltage for analog input data. Rhio represents voltage from 0 V to arefe
233.5 I/O Port ConnectionThis section describes how to make a required connection with the digital output, digital inputand ADC input port of the Rhio
24Figure 3-7 Connection of Digital Input Port3.5.3 ADC Input PortAn ADC input port is a non-insulated input port. If possible, a circuit should be mad
252) When using an Analog Input PotentiometerAn analog input operates in reference to input voltage and has an impedance of 100㏀. Whenusing a Potentio
264. Software Development & ApplicationYou can use the Rhio library to develop application software that is used to communicate withthe Rhio232.Th
272) Structure (See Appendix C.2)Structure DescriptionSADCDataON/OFF state of each portSOnOffStateDataON/OFF state of all portsSSetOutputOutput port c
28RHIO_SndCmd_GetPortEnableSend a command that checks enable/disablestate of all ports.RHIO_SndCmd_SetPwrStopEnableSend a command that enables/disable
294.2 Creating and demonstrating a sample program with RhiolibraryThe sample program (RHIO_TEST) is a dialog box based application that has been creat
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
301Figure 4-2 Setting Window of a Sample ProgramNo. Class Related Files1CSettingDlg SettingDlg.h SettingDlg.cpp4.2.2 Processing4.2.2.1 Initializing Ma
31CWEB_IO_TESTDlg::InitSample(CPoint pntStart, int iWidth,int iHeight, int iTerm)CWEB_IO_TESTDlg::InitSelComm();3) Create Process Class.m_rhCreate(CWn
32⑥ The Monitor Power Stop button is clicked on.CSettingDlg::OnBnClickedButtonMonitorPwrStop()⑦ The Set Power Stop button is clicked on.CSettingDlg::O
334.3 Rhio Communication ProtocolIn this chapter, it covers how to send/receive the command/reply to/from Rhio device by usingthe Rhio communication p
34- LRC (BCC)It checks the Error of the command block.The value by 1 byte XOR from LENGTH field to DATA field- END FLAGCR+LF ( 0x0D+0x0A )-. The data
35- NAK ResponseSTARTFLAGLENGTH FUNCTION DATALRC(BCC)ENDFLAGByteSize1 2 2 3 2 2Start of theCommandBlock, 0x3A( “:” )The length fromFUNCTION fieldto DA
36- DataMASK Data Data Separator ON/OFF DataData Order 1 - 10 11 12-21Port No. 1 - 10 - 1-10Data ContentControl: 0x31Non-control: 0x300x2C ( “,” )sepa
378-12 A20x30: OFF,0x31: ON (Switch Input),0x39: Level Mode“0000”-”1023”:Level13 - Field Separator 0x2C ( “,” )14-18 A30x30: OFF,0x31: ON (Switch Inpu
384.3.3 Input/Output State4.3.3.1 I/O State Request CommandCommand Data RemarkByte Size 2 1“03”( 0x30, 0x33 )State Request0x30: Fixed to adummy value4
39- When a run command is received, it returns a state response once and continues withthe operation paused.4.3.4.2 Response for Set/Run command- Same
4Table of Contents1. Introduction ...
40- A conditional operator + Input/Output port state (NOT)- AND => &, OR => |, NOT => !- A conditional expression only takes the form of
41“00000” “00020”OFF after 2 sec delay“00000” “50000”OFF after 5,000 sec delay“00001” “00001”Repeat 100 ms ON and 100 ms OFF.“00020” “00020”Repeat 2 s
424.3.5.4 Response for Check Output Port Setting command- Same as "4.3.5.2 Response for Set Output Port command".4.3.6 ADC Input Port Settin
43- Setting Flag0x30: Set OK0x31: Not in Setting mode (in Run mode)0x39: Set NG4.3.6.3 Check ADC Input Port Setting CommandCommand Data RemarkByte Siz
445 -Field Separator 0x2C ( “,” )6 -0x30: AVcc ( Vcc 5V ) -> default0x31: Internal ( 2.56V )0x32: External ( 2-4.5V )ADC ReferenceSetting7 - Field
452 A13 A24 A35 A40x30: Avcc ( Vcc 5V ) -> default0x31: Internal ( 2.56V )0x32: External ( 2V-4.5V )ADC Port6 - Field Separator 0x2C ( “,” )ADC Ref
464.3.8 Port Power-out Post Recovery Setting4.3.8.1 Set Port Power-out Post Recovery commandCommand Data RemarkByte Size 2 12“14”( 0x31, 0x34 )Set Pow
472-5 O1-O40x31: Enable, 0x32: Disable6 - Field Separator 0x2C ( “,” )7-10 O5-O8 0x31: Enable, 0x32: Disable11 - Field Separator 0x2C ( “,” )Output St
485. How to use the Rhio232 with Device ServersThe Rhio232 is a serial I/O manager that enables device servers to monitor and control I/Odevices. It i
49Table 5-1. Connections with the Sena device servers and the Rhio232Sena device servers Connection Rhio232DB9:eg.LS100, LS100W,PS100/200/400/110/410/
54. Software Development & Application ...264.1 The Rhio Library...
50Rhio232 and SS800Serial/IP COM Port Redirector softwareRhio Manager softwareTwo CAT5 straight cable (One for the network connection of the SS800 and
51Step 1. Connect the Rhio232 to the port #1 of the SS800 using CAT5 cable.Step 2. Serial/IP Configuration Double click the Serial/IP Tray applicatio
52 Click the [Configuration Wizard] button on the Serial/IP Control Panel. Complete COM port setting by clicking [Start] button on the Configuration
53The configuration makes the system work as follows.- The data stream from users’ application is transferred to the virtual port COM10.- The data str
54 Click the [I/O CONTROL] button and then it will open Rhio Manager I/O management panel.Users can remotely control and monitor the I/O devices conn
55Appendix A. ConnectionA.1 Serial Port Pin OutsThe pin assignment of the RHIO232 RJ45 connector is summarized in Table A-1. Each pin hasa function ac
56A.2 Serial Port Wiring DiagramFigure A-5. RS232 serial port wiring diagram
57Appendix B TroubleshootingB.1 Power/LED Status TroubleshootingProblem Cause ActionPower LED does notlight upPower cable is notconnectedCheck power c
58Appendix C. Rhio LinraryC.1 Enumeration TypeEOnOffFlagFlag for ON, OFF, Operation conditionenum EOnOffFlag{EOF_ON, //ON statusEOF_ON_ADC_LEVEL, //AD
59ESF_SET_FACTROT_RESET, //Factory Reset Command transfer statusESF_SET_SERIAL, //Serial number Set Command transfer statusESF_MON_MACRO, //Macro chec
61. Introduction1.1 OverviewThe Rhio232 is a Serial I/O Manager that enables Sena Device Servers to control and monitorI/O devices. It is designed to
60C.2 StructureON/OFF status DataStructure which contains Port ON/OFF statustypedef struct _ADCData //ADC Data{EOnOffFlag eADC; //ADC On/OFF Flagchar
61SADCData sADCData[4]; //ADC Level Data}SSetADC;typedef struct _SetInput //Input Port Set Data{bool isEnable[12]; //Input port Enable}SSetInput;typed
62RHIO_SockConnectDescription : Used when users want to connect to RHIO using TCP Socket connection.Function Prototype :extern "C" __declspe
63RHIO_CloseDescription : Used when users want to disconnect the current connection with the Rhio in bothserial and TCP connection. In order to reconn
64RHIO_SndCmd_GetOnOffDescription : Used to send the command to get ON/OFF status of all the portsFunction Prototype :extern "C" __declspec(
65RHIO_SndCmd_SetMACRODescription : Used to send the command to set/clear the MACRO of an input portFunction Prototype :extern "C" __declspe
66RHIO_SndCmd_GetMACRODescription : Used to send the command to check whether it is possible to get the MACRO ofan input portFunction Prototype :exter
67Parameter when reaction event is received :WPARAM : Command transfer status flag (ESF_SET_DELAY_PULSE)LPARAM : Control status flag of the command (F
68RHIO_SndCmd_SetADCDescription : Used to send the command to set the Level of all the ADC ports from 1 to 4.Function Prototype :extern "C"
69(0x30:Normal operation, 0x39:Abnormal operation, 0x31:Not the Set Mode)※ When reaction event is received, get data using RHIO_GetSettingData functio
71.3 Product SpecificationSerial InterfaceSupports RS232 serial port, RJ45 connectorBaud rate: 9,600/Flow control: None/Data: 8 bit/Stop: 1 bitDigital
70RHIO_SndCmd_GetPortEnableDescription : Used to send the command to check whether it is possible to get theEnable/Disable Port data of all the portsF
71RHIO_SndCmd_GetPwrStopEnableDescription : Used to send the command to check whether it is possible to get theEnable/Disable Power Failure Recovery o
72CString strSerial : Serial number string limited to 12 bytesReturn : TRUE if successful, False if failed.Parameter when reaction event is received :
73RHIO_GetSettingDataDescription : Used to send the command to get the setting data corresponding to thecommand transfer status flagFunction Prototype
74Appendix D. WarrantyD.1 GENERAL WARRANTY POLICYSena Technologies, Inc. (hereinafter referred to as SENA) warrants that the Product shallconform to a
75THE PRICE PAID FOR THE PRODUCT.D.3 HARDWARE PRODUCT WARRANTY DETAILSWARRANTY PERIOD: SENA warranties embedded hardware Product for a period of one (
76D.4 SOFTWARE PRODUCT WARRANTY DETAILSWARRANTY PERIOD: SENA warranties software Product for a period of one (1) year.WARRANTY COVERAGE: SENA warranty
8Physical properties137 x 111 x 58 (mm), 5.4 x 4.4 x 2.3 (in.)Weight: 730gCertificationFCC (A), CE, MICWarranty5-year limited warranty
92. Getting StartedThis chapter describes how to set up and configure the Rhio232 in the first place.- 2.1 Panel Layout explains the panel layout and
Komentarze do niniejszej Instrukcji