Home

User Manual

image

Contents

1. TxD Gnd Gnd DTR 1 DCD I DSR DSR DTR RTS CTS CTS RTS Remote Host O A Oi W Figure A 5 RS232 serial port wiring diagram 56 Appendix B Troubleshooting B 1 Power LED Status Troubleshooting Power LED does not Power cable is not Check power connection The Rhio232 s power light up connected specification is DC 9V 48V Serial Rx LED does Serial cable is not Check serial cable connection not light up connected Invalid serial cable is Must use serial cable or CAT5 Straight Cable used DB9F Straight adaptor Serial Tx LED does Serial cable is not Check serial cable connection not light up connected Invalid serial cable is Must use serial cable or CAT5 Straight Cable DB9F Straight adaptor B 2 Serial Console Troubleshooting The Rhio232 is not Serial cable is not Check serial cable connection communicated connected Invalid serial cable is use serial cable or CAT5 Straight Cable used DB9F Straight adaptor Serial Baud rate is Check serial port configuration of host or device incorrect server 9600 bps 8 Data bits No parity 1 stop bit Hardware flow control 57 Appendix C Rhio Linrary C 1 Enumeration Type EOnOffFlag Flag for ON OFF Operation condition enum EOnOffFlag EOF ON EOF ON ADC LEVEL EOF OFF EOF NOT EOF ON DELAY EOF OFF DELAY
2. It is run only when an output port is ON and will set the port as OFF when it is configured as such Input Output port state a conditional operator Input Output port state AND OR 39 2 A conditional operator Input Output port state NOT AND gt 8 OR gt NOT gt A conditional expression only takes the form of a single expression with AND OR NOT Eg AND operation of Input 1 and Input 2 1 812 OR operation of Output 3 and Input 1 03 11 AND operation of the inversed Input 10 and Output 10 1110 amp O10 Inverse operation of Input 1 The number of points that can be specified for run condition per 1 output point in setting data must be less than 21 points Eg 11812813 14 115 168178188198110 111 112 O2 03 04 05 06 07 08 09 010 An output port to be set should not be included in run condition Eg When setting O1 it should not be included in its run condition expression Set Delay Pulse It specifies the output to toggle between ON OFF at a given time or repeatedly Delay ON and Pulse are enabled with ON control command and disabled with OFF control Delay OFF is enabled with OFF control Setting Data Setting Data time ON Time OFF Time Byte Size 5 5 Run Setting 00000 50000 00000 50000 Asetting can be specified in 100 ms and allowed up to 500 sec Eg ON Time OFF Time Remark 00000 00000 No D
3. Parameter None Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Command transfer status flag ESF MON FIRMWARE LPARAM Control status flag False if Time Out 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode When reaction event is received get data using RHIO GetSettingData function eg RHIO SndCmd GetFirmware 72 RHIO GetSettingData Description Used to send the command to get the setting data corresponding to the command transfer status flag Function Prototype extern C declspec dllexport bool RHIO GetSettingData SRHIOSetting amp sSetData Parameter SRHIOSetting amp sSetData Data to get Return TRUE if successful 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 ports Function Prototype extern C declspec dllexport bool RHIO GetOnOffData SOnOffStatusData amp sOnOffData Parameter SOnOffStatusData amp sOnOffData Data to get Return TRUE if successful False if failed eg SOnOffStatusData sOnOffData RHIO GetOnOffData sOnOffData ON OFF status stored to sOnOffData 73 Appendix D Warranty D 1 GENERAL WARRANTY POLICY Sena Technologies Inc hereinafter referred to as SENA warrants that the Product shall conform to and pe
4. bReference ADC Set Data ADC port Mode ADC Reference 60 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 C 3 Function RHIO CommProcessCreate Description It creates Process Class of RHIO Proc D11 In order to use Rhio DII 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 61 RHIO SockConnect Description Used when users want to connect to RHIO using TCP Socket connection Function Prototype extern C declspec dllexport bool RHIO SockConnect BYTE bAddr1 BYTE bAddr2 BYTE bAddr3 BYTE bAddr4 int iPort Parameter BYTE bAddrl lst byte of the IP Address BYTE bAddr2 2nd byte of the IP Address BYTE bAddr3 3rd byte of the IP Address BYTE bAddr4 4th byte of the IP Address int iPort Port n
5. 9 Ifan classes Setting Serial Properties Properties Port 10 Baudrate Parity hoe zl Data Bit a Sot y Ok Cancel 53 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 connected to the Rhio232 through the COM10 port of the PC RHIO Communication normality X Digital Output DO1 Serial I O Manager POWER RS232 Analog Input Digital Input Al4 011 012 014 015 016 DI Setting Monitor Interval Confirming Serial Firmware Close Users can remotely manage the I O devices by using such components as Serial IP SS800 and Rhio232 For the real world applications users may write their own code to communicate with the Rhio232 by using Rhio Library and may integrate them with the overall system management code they have 54 Appendix A Connection A 1 Serial Port Pin Outs The pin assignment of the RHIO232 RJ45 connector is summarized in Table A 1 Each pin has a function according to the serial communication type configuration Note When connecting serial port to host users should use the other end of CAT5 cable using RJ45 to DB9 Female connector included package 1 8 Figure A 1 Pin layout of the RJ45 serial connector Table A 1 Pin assignment of the RJ45 serial connector 55 A 2 Serial Port Wiring Rhio232 N A O Oo Diagram TxD RxD RXD
6. Setting Flag 0x30 Set OK 0x31 Not in Setting mode in Run mode 0x39 Set NG 4 3 6 3 Check ADC Input Port Setting Command Command Data Remark Byte Size 2 1 10 Check the 0x31 0x30 0x30 Fixed to a dummy threshold level Check the ADC value value of an input setting ADC port 4 3 6 4 Response for Check ADC Input Port Setting command Same as 4 3 6 2 Hesponse for Set Port command The setting field is always OK 0x30 The factory default value in Level Input mode is set to 0000 4 3 7 Port Enable Setting 4 3 7 1 Set Port Enable command Command Data Remark Byte Size 2 34 11 0x31 0x31 Port Enable Disable setting data Kana a Co M Ead Enable Disable Data Field Data Order Port Data Content 1 A1 ABER 2 A2 0x31 Level Input mode 3 A3 0x32 Switch Input mode 4 A4 43 5 Field Separator 0x2C 0x30 AVcc Vcc 5V s default ADC Reference 6 0x31 Internal 2 56V Setting 0x32 External 2 4 5V 7 Field Separator 0x2C 8 11 11 14 0x31 Enable 0x32 Disable 12 Field Separator 0x2C 13 16 15 18 0x31 Enable 0x32 Disable TATE 17 Field Separator 0x2C 18 21 I9 112 0x31 Enable 0x32 Disable 22 Field Separator 0x2C 23 26 O1 O4 0x31 Enable 0x32 Disable 27 Field Separator 0x2C Output State 28 31 O5 O8 0
7. Users may probe configure test the Rhio232 system using Windows application Rhio Manager and create their own Windows based application program by using MFC DLL library The Rhio232 which can be used directly or with device servers is designed to meet the requirements of various applications such as remote data acquisition system distributed O system industrial automation control monitoring metering Please note that this manual assumes user knowledge of Internetworking protocols and serial communications 1 2 Package Check List Rhio232 external box CAT5 cable RJ45 to DB9 Female cable connector DIN rail mount kit Quick Start Guide 1 3 Product Specification Serial Interface Supports RS232 serial port RJ45 connector Baud rate 9 600 Flow control None Data 8 bit Stop 1 bit Digital Input Number of channels 12 Input type Voltage Input circuitry Optically isolated photo coupler Input range OV 24V OFF OV 1 2V ON 3 3V 24V Sampling rate 20ms Isolation voltage 5KV Digital Output Number of channels 10 Output type Relay Rated load 3A 240VAC Insulation resistance 1000M2 Min DC500V Isolation voltage coil and contact 4KV Reaction within 10ms Number of channels 4 Effective resolution 10 bit Analog Input Input type Voltage Direct Coupling Input range OV Aref Analog reference voltage 2 5V Sampling rate 100
8. voltage is higher than the specified threshold value Conversely 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 in analog input AREF can be set as either internal 2 56 V internal AVCC or external AREF point Internal input can be set using command The external input can be set by splitting the AVCC voltage into R1 and R2 as shown below The ideal resistance of split resistors R1 and R2 should be within the range of 1k2 Note AREF voltage cannot be set to the value less than 2 V Figure 3 8 Connecting Aref 24 2 When using an Analog Input Potentiometer An analog input operates in reference to input voltage and has an impedance of 100k When using a Potentiometer as shown in Figure 3 9 an impedance in the range of 1k amp 5k is ideal When using an external signal source lower impedance ensures stable operation against various noises Note Make sure that analog Input voltage does not exceed AREF voltage Figure 3 9 Circuit connection when a Potentiometer is used 3 Connecting when a voltage higher than AVCC voltage is used For voltage input the circuit should be split as shown in Figure 3 10 In case that the input wire is long or there is a strong noise nearby it is recommended to have additional clamp diode in order to minimize the effect to other ADC channels
9. 1 0 PORT CONTROL i fis Up input output ADE 1 0 Control Button Quick Connect Select Interface Figure 2 7 Rhio Manager screen layout 2 3 2 Basic configuration using Rhio Manager Select Interface It specifies the communication method between the Rhio232 and Rhio Manager Be sure to set it up as Serial mode Quick Connect By using Quick Connect user can select the RS232 serial port that is connected to the Rhio232 1 0 PORT CONTROL Users may monitor control and configure the Rhio232 s I O ports by clicking I O PORT CONTROL button 14 Setting Serial Properties Properties Port ho Baudrate s Parity oe Data Bit Stop Bit hn j Cancel Figure 2 8 Quick connect dialog box 2 4 Restoring Factory Default Users may restore the Rhio232 parameters into factory default value by pressing factory reset switch on the hole of the Rhio232 side panel They will have to put the sharp pin into the hole and press it for around 1 sec to reset the Rhio232 The Rhio232 will be rebooted after the operation The following is the factory default value of the parameters Port status Enable ADC Operation mode Level Mode Power out Post Recovery Enable ADC Threshold value 512 Output Port operation condition None Run Stop status Run 15 3 l O Setting and Application 3 1 Monitoring and Control You can monitor control and set I O states by pressing the I O
10. 1 to 4 Function Prototype extern C declspec dllexport bool RHIO SndCmd SetADC SRHIOSetting sSetData Parameter SRHIOSetting sSetData Data to set SRHIOSetting sADC sADCData index cADC ADC Level string in 4 bytes between 0000 and 1023 Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Commnad transfer status flag ESF SET ADC LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode eg SRHIOSetting sSetData for int index 0 index lt 4 indext memset sSetData sADC sADCData index cADC 0 sizeof sSetData sADC sADCData index cADC memcpy sSetData sADC sADCData index cADC 0512 4 RHIO SndCmd SetADC sSetData RHIO SndCmd GetADC Description Used to send the command to check whether it is possible to get the Level of all the ADC ports Function Prototype extern C declspec dllexport bool RHIO SndCmd GetADC Parameter None Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Commnad transfer status flag ESF MON ADC LPARAM Control status flag of the command False if Time Out Error 68 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode Xx When reaction event is received get data using RHIO GetSettingData function and check the Level on setting
11. EOF ONOFF MACRO EOF ONOFF PULSE SendStatusFlag ON status ADC Level ON status OFF status Status uncertain status Delay ON waiting status Delay OFF waiting status Macro condition waiting status Pulse status Transfer status flag for indicating which command is sent to Rhio10 enum SendStatusFlag ESF_ONOFF ESF SET ESF SET MODE ESF RUN MODE ESF SET MACRO ESF SET DELAY PULSE ESF SET ADC ESF SET ENABLE ESF SET PWR STOP ON OFF control command transfer status Set mode switch command transfer status operation mode change command transfer status Macro Set Command transfer status Delay Pulse Set Command transfer status ADC Set Command transfer status Port Enable Disable Set command transfer status Power out Post Recovery Enable Disable Set Command transfer status 58 ESF SET FACTROT RESET Factory Reset Command transfer status ESF SET SERIAL Serial number Set Command transfer status ESF MON MACRO Macro check Command transfer status ESF MON DELAY PULSE Delay Pulse check Command transfer status ESF MON ADC ADC check Command transfer status ESF MON ENABLE Enable Disable check Command transfer status ESF MON PWR STOP Power out Post Recovery check Co
12. I O Port Connection This section describes how to make a required connection with the digital output digital input and ADC input port of the Rhio232 for the users devices The length of cables used for I O port connection should be less than 3 meters to ensure normal operation 3 5 1 Digital Output Port All digital output ports are equipped with a status LED which illuminates when a relay point is set to ON An electric load can be connected as shown below by using OUTA1 and OUTB1 as driving switches SVRAT1D07A OUTB1 Figure 3 6 Connection of Digital Output Port 3 5 2 Digital Input Port A digital input system operates regardless of the polarity of the voltage and is insulated from the internal circuits in the system It can be configured as shown in Figure 3 7 and has a status LED for each input which illuminates when input voltage is issued Note Whilst it may operate in a voltage other than that specified ON gt 3 2V OFF lt 1 3V be sure to use the specified voltage to ensure the stable operation 23 VCC R62 15K INA1 4 1 PC1 4 R39 INB1 1 Figure 3 7 Connection of Digital Input Port 3010 3 5 3 ADC Input Port An ADC input port is a non insulated input port If possible a circuit should be made using AVCC 5V voltage supplied from internal circuits When operating in Switch mode a threshold voltage should be specified Input is set to ON and the ADC status LED is ON if the input
13. PARTICULAR PURPOSE NEITHER SENA NOR ITS DEALER SHALL BE LIABLE FOR ANY OTHER DAMAGES INCLUDING BUT NOT LIMITED TO DIRECT INDIRECT INCIDENTAL SPECIAL OR CONSEQUENTIAL DAMAGES WHETHER IN AN ACTION IN CONTRACT OR TORT INCLUDING NEGLIGENCE AND STRICT LIABILITY SUCH AS BUT NOT LIMITED TO LOSS OF ANTICIPATED PROFITS OR BENEFITS RESULTING FROM OR ARISING OUT OF OR IN CONNECTION WITH THE USE OF FURNISHING OF EQUIPMENT PARTS OR SERVICES HEREUNDER OR THE PERFORMANCE USE OR INABILITY TO USE THE SAME EVEN IF SENA OR ITS DEALER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES IN NO EVENT WILL SENA OR ITS DEALERS TOTAL LIABILITY EXCEED 74 THE PRICE PAID FOR THE PRODUCT D 3 HARDWARE PRODUCT WARRANTY DETAILS WARRANTY PERIOD SENA warranties embedded hardware Product for a period of one 1 year and external hardware Product for a period of three 3 or five 5 years according to the Product type WARRANTY PROCEDURE Upon return of the hardware Product SENA will at its option repair or replace Product at no additional charge freight prepaid except as set forth below Repair parts and replacement Product will be furnished on an exchange basis and will be either reconditioned or new All replaced Product and parts become the property of SENA If SENA determines that the Product is not under warranty it will at the Customers option repair the Product using current SENA standard rates for parts and labor and return the Product at no ch
14. PORT CONTROL button Once I O PORT CONTROL is invoked Rhio Manager begins to monitor the I O state by connecting to a serial port of the Rhio232 via a RS232 serial interface 3 1 1 LED ON Red Icon OFF Blue Icon Disable Grey Icon Condition ON OFF Green Icon Macro M Delay ON Red D Delay OFF Blue D Pulse P Level Mode ADC Port Green RHIO Communication normality Digital Output Do ag Serial I O Manager POWER RS232 Serial RX Serial TX Analog Input Sample Icon Setting Monitor Interval Confirming Serial Firmware Figure 3 1 The I O port Control screen 16 3 1 2 Specifying monitoring interval You can continue to monitor the state of the Rhio232 at a specified time interval by setting Setting Monitor Interval The valid value for monitoring intervals is any number between 2 and 10 seconds In the specified time interval Rhio Manager sends a state request command and receives a response from the Rhio232 and displays it on the screen Setting Monitor Interval Time sec Select Time sec Time 2 vi sec 3 Cancel Figure 3 2 Setting Monitoring Interval 3 1 3 Monitoring I O port Upon receiving a state request command from Rhio Manager the Rhio232 returns information on the overall states of the digital input analog input and digital output ports Digital Input Port shows the ON OFF state of input In Level mode ADC Input Port co
15. User can input the power of devices Ground is no 5 7 9 and 11 blocks Analog Input A11 Al4 5 6 7 8 9 10 11 12 Digital Input DI1 DI12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 Note 1 Each Input is composed of one pair of upper and lower blocks 2 Except for the no 3 and 4 input blocks users can connect the wire to the blocks without considering the polarity Each Output is composed of one pair of A and B blocks as follows Digital Output DO1 0010 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 10 2 2 Connecting the Hardware 2 2 1 Setting up DIN Rail mount kit Users may use DIN rail mounting kit included in the package to install the Rhio232 on to the DIN rail Mounting Rails Mounting Rails Mounting Rails NS 35 7 5 NS 35 15 NS 32 Figure 2 2 Dimension of DIN Rail mount kit and applicable DIN Rails Figure 2 3 Installing DIN Rail mount kit into DIN Rail 11 Figure 2 4 Setting up the Rhio232 to DIN Rail 2 2 2 Connecting the Power Supply the proper power according to the power specification of the Rhio232 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 than 3m for normal operation Figure 2 5 Connecting the power to the Hhio232 12 2 2 3 Connecting to the serial d
16. address of a required library function CWEB IO TESTD1g RHIODllLoad 2 Initialize dialog items in Main window CWEB IO TESTD1g InitOutPutButton CWEB IO TESTDlg InitInput CPoint pntStart int iWidth int iHeight int iTerm 30 3 CW CW EB IO TESTDlg InitSample CPoint pntStart int iWidth int iHeight int iTerm EB IO TESTDlg InitSelComm Create Process Class m rhCreate CWnd pParentWnd 4 2 2 2 Event Handling procedure 1 When an event occurs in the main window of the program The Connect button is clicked on CWEB IO Tl Connection m_rhs ockConnect B BYT Y Serial Connection m rhC ommConnect i ESTDl1g OnBnClickedButtonConnect YTE bAddrl BYTE bAddr2 BYTE bAddr3 E bAddr4 int iPort nt iPort The Disconnect button is clicked on CWEB IO TESTD1g OnBnClickedButtonClose The Set Bu CWEB IO TESTDl1g OnBnClickedBu The State View button is clicked on CWEB IO TESTDl1g OnBnClickedBu tton is clicked on ct tonSetting tonStateView The Output Port button is clicked on COutputBu tton OnBnClicked When an event occurs in the Setting window of the program The Factory Reset button is clicked on CSetting Dlg OnBnClickedButtonFactoryReset The Set Mode button is clicked on OnBnClic kedButtonSe
17. although there is an internal clamp diode available AVCC N ADC IN R1 Z2 AGND Figure 3 10 Circuit connection when a voltage higher than Avcc is used 25 4 Software Development amp Application You can use the Rhio library to develop application software that is used to communicate with the Rhio232 The Rhio Library Files RHIO Proc dll RHIO Process h You must link these two files in order to develop software using the Rhio library Test Program A sample test program that has been developed using the Rhio library is provided to you in the form of source and setup files RHIO TEST Setup exe The test program shows developers how to utilize the Rhio library more easily 4 1 The Rhio Library 4 1 1 Overview of the Rhio Library The Rhio library is 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 Winsock component during program development The RHIO CommProcessCreate function must also be used to create Process Class for use of the library 4 1 2 Reference For definition of enumeration s structure s and function s refer to RHIO Process h 1 Enumeration See Appendix C 1 Type Description EOnOffFlag ON OFF a flag indicating run state SendStaterlag A flag indicating transmission state of a command sent to Rhio ESetOutp
18. and demonstrating a sample program with Rhio 29 4 2 1 Program UI Configuration and their related 5 29 42 2 Processing e Hr eerte de iie e fe TO ive Ec eic d epe cee Mm 30 4 3 Rhio Communication Protocol esssessseeesseeeeneeneeee nennen nenne nennen rennen nennen nennen 33 4 3 1 OV6tVIew ek btt ee EE d gb eO b d e ce c ERU 33 4 3 2 ON OFF Control a Naam Na Ha nan D addet ple 35 4 3 3 Inp t Output State an a e e ie b te t ee aee 38 4 9 4 SeURUFI enun ANDA Mananahi Ba bana 38 4 3 5 Output Port Setting naa E TELE Pee ELLE di 39 4 3 6 ADC Input Port Setting eet cte ene IRR c Enti cd RR oen 42 4 3 7 Port Enable Setting pee p ote m ce en DRA e e E 43 4 3 8 Port Power out Post Recovery Setting 46 5 How to use the Rhio232 with Device Servers eese 48 5 1 Gontiecti ns nitate qe tete e p per ee o cro een Gee ee 48 5 2 ApplICallOna eet e M sa nels Magee edd ne ote 49 Appendix A Connection 55 A Serial Port 2 1 d e E ede d dece eee 55 A 2 Serial Port Wiring Diagram ssssssssessseseseeeeneeeneen 56 Appendix B Troubleshooting 11 eene eene nnmnnn nnmnnn inne nnns 57 B 1 Power LED
19. eg RHIO SndCmd GetADC RHIO SndCmd SetPortEnable Description Used to send the command to enable disable all the ports Function Prototype extern C declspec dllexport bool RHIO SndCmd SetPortEnable SRHIOSetting sSetData Parameter SRHIOSetting sSetData Data to set SRHIOSetting sADC eModeADC 4 Value of the Level Switch Mode EAM LEVEL EAM SWITCH SRHIOSetting sADC bReference gt Value of the ADC Reference 0x30 Avcc Ox3l Internal 0x32 External SRHIOSetting sInput isEnable 12 Input Enable Disable Enable true Disable false SRHIOSetting sOutput isEnable 10 Outnput Enable Disable Enable true Disable false Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Command transfer status flag ESF SET ENABLE LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode eg SRHIOSetting sSetData for int index 0 index lt 4 index t SetData sADC eModeADC index EAM SWITCH sSetData sADC bReference 0x30 for int index 0 index lt 12 SetData sInput isEnable index true for int index 0 index 10 index t sSetData sOutput isEnable index true RHIO SndCmd SetPortEnable sSetData 69 RHIO SndCmd GetPortEnable Descri
20. failed Parameter when reaction event is received WPARAM Command transfer status flag ESF ONOFF LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x31 Not the Run Mode 0x32 Abnormal operation eg RHIO SndCmd SetOnOff 1 EOF ON 63 RHIO SndCmd GetOnOff Description Used to send the command to get ON OFF status of all the ports Function Prototype extern C declspec dllexport bool RHIO SndCmd GetOnOff Parameter None Return TRUE if successful False if failed eg RHIO SndCmd GetOnOff RHIO SndCmd SetSettingMod Description Used to send the command to switch to the Set Mode Function Prototype extern C declspec dllexport bool RHIO SndCmd_SetSettingMode Parameter None Return TRUE if successful False if failed Parameter when reaction 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 operation eg RHIO SndCmd SetSettingMode RHIO SndCmd SetRunMode Description Used to send the command to switch to the Run Mode Function Prototype extern C declspec dllexport bool RHIO SndCmd SetRunMode Parameter None Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Command transfer status Flag ESF RUN MOD
21. goes into standby state A por goes into the ON state if its operation condition is met and into OFF and standby states if not f a port is directly set to OFF it does not operate even if the operation condition is satisfied 20 3 3 3 Delay amp Pulse Operation If the Use Delay Pulse check box is selected the output port executes Delay and Pulse operation The setting value for Delay and Pulse can be entered in 100 ms When Delay ON is selected you can send the Output Port ON command to set an output port to ON after a specified delay time has passed When Delay OFF is selected you can send the Output Port OFF command to set an output port to OFF after a specified delay time has passed When Pulse is selected the port continues to toggle between ON and OFF according to the specified ON OFF time 3 3 4 Setting Power out Post Recovery Power out Post Recovery can be set for an output port using the Setting power stoppage rehabitation pane in the Setting window If itis enabled the Rhio232 retains its output port states prior to power out when power goes out and back on f Power out Post Recovery is enabled for an output port that has been set with an operation condition the port becomes ON when power is restored if the operation condition is satisfied If itis disabled the output port state becomes OFF when power goes out and back on 3 4 ADC Input Port Setting The Rhio232 has 4 ADC input por
22. int index 0 index lt 10 index t sSetData sOutput sEnablePowerStop index true RHIO SndCmd SetPortEnable sSetData 70 RHIO SndCmd GetPwrStopEnable Description Used to send the command to check whether it is possible to get the Enable Disable Power Failure Recovery of all the input ports Function Prototype extern C declspec dllexport bool RHIO SndCmd GetPwrStopEnable Parameter None Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Command transfer status flag ESF MON PWR STOP 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 event is received get data using RHIO GetSettingData 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 Function Prototype extern C declspec dllexport bool RHIO SndCmd SetFactoryReset Parameter None Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Command transfer status flag ESF SET FACTROT RESET LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x39 Abnormal operation eg RHIO SndCmd SetFactoryReset RHIO SndCmd SetSerial Desc
23. 0 samples sec ARP IP ICMP TCP Protocol telnet DHCP client PPPoE Management Rhio Manager Windows Utility Serial Console or Telnet Windows MFC DLL library Software Support configuration I O status monitoring control Diagnostic LED Power Link Act Digital Output 1 10 Digital Input 1 12 Analog Input 1 4 Power 9V 48VDC 5W Environmental Operating temperature O C to 50 C Storage temperature 20 C to 66 C 90 Non condensing 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 2 Getting Started This chapter describes how to set up and configure the Rhio232 in the first place 2 1 Panel Layout explains the panel layout and LED indicators 2 2 Connecting the Hardware describes how to set up DIN rail mount kit and how to connect the power and the serial device to the Rhio232 Following items are required to get started DIN rail mount kit included in the package CAT5 cable for configuration or connecting device server included in the package RJ45 to DB9 Female connector for configuration or connecting device server included in the package 2 1 Panel Layout The Rhio232 has LED indicator lamps for status display The lamps in the left hand side indicate the system power on status Serial Rx and Serial Tx for RS23
24. 1 08 J S Kim Operating and storage temperature is updated V1 0 4 2007 05 07 H R Zo Warranty added V1 0 5 2011 12 26 H R Zo Package does not contain CD ROM V1 0 6 2015 09 11 KT Lee Change the contact information Table of Contents T Introduction ooi e 6 UN Ko c Ausra vein es Abra ei ie eerie ae lg dn eee ey 6 1 2 Package Check Lista aa i te ee mee c ee e n ede rb reset hamak 6 1 9 Product SpecifiCatiOn omen nth ttf eer Hide teda qa ad 7 2 LT 9 2 1 Panel Eayout ai eit ena Lana ede e 9 2 2 Connecting the Hardware 11 2 2 1 Setting up DIN Rail mount Kit sess nennen 11 2 2 2 Connecting the POWer aNG a ANAN ANA BANANA 12 2 2 3 Connecting to the serial device esee nnne nennen 13 2 3 Rhio Manager Installation AA nnne nennen nre 13 2 39 31 RiBio Manager Installation ANA ce a recte cede 13 2 3 2 Basic configuration using Rhio Manager eem enn 14 2 4 Restoring Factory Default kinenan 15 3 VO Setting and Application seen ANAKAN nennen nnn nnnm nennt nnns 16 SAO Monitoring and Control a e tret reet pe pectore ive De bte Tp pie ea 16 deese niu toon UII UM LL IU E 16 3 1 2 Specifying monitoring interval
25. 2 communication status There are 10 lamps for displaying digital output status 12 lamps for digital input status and lamps for 4 analog port status Table 2 1 shows the description of the indicator lamps of the Rhio232 Table 2 1 LED indicator lamps T Turned on to Green if connected to 10 Base T Ethernet In network 10Base T Blink whenever there is any activities such as incoming or outgoing packets through the Rhio10 Ethernet port Staus Turned on to RED if power is supplied Digitalinput Turned on to GREEN if input status Turned on to GREEN if output status In Level Input mode it is turned on to GREEN if the Analog Input value is larger than 512 In Switch Input mode it is turned on to GREEN if it is larger than threshold value Input Blocks assignment Output Blocks assignment Indicators for Power RS232 Terminal Block for Digital Outputs RS232 Interface Indicator Lamps for I O Power Input Terminal Block for Analog Digital Inputs Figure 2 1 The panel layout of the Rhio232 Table 2 2 Terminal Block Assignment of the Hhio232 Power Input PWR A PWR B 1 2 Analog reference voltage Ref 3 It is analog reference voltage input block Rhio represents voltage from 0 V to a reference voltage in 1 024 steps A reference voltage may not exceed 5 V For details refer to section 3 4 ADC Input Port Setting 5V Out 4 It is AVCC output block
26. E LPARAM Control status Flag of the command False if Time Out Error 0x30 Normal operation 0x31 Not the Run Mode 0x32 Abnormal operation eg RHIO SndCmd SetRunMode 64 RHIO SndCmd SetMACRO Description Used to send the command to set clear the MACRO of an input port Function Prototype extern C declspec dllexport bool RHIO SndCmd SetMACRO SRHIOSetting sSetData int iPortNum Parameter SRHIOSetting sSetData Data to set SRHIOSetting sInput eMacro Flag to determine to set or clear ESOF CLEAR ESOF SETTING SRHIOSetting sInput cMacro MACRO string int iPortNum Input port number to set 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 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode 0x32 Not set eg In case of Set command SRHIOSetting sSetData sSetData sInput eMacro ESOF SETTING memset sSetData sInput cMacro 0 sizeof sSetData sInput cMacro memcpy sSetData sInput cMacro O2 amp 04 I1 8 RHIO SndCmd SetMACRO sSetData 1 In case of Set Clear command SRHIOSetting sSetData sSetData sInput eMacro ESOF CLEAR RHIO SndCmd SetMACRO sSetData 1 65 RHIO SndCmd GetMACRO Description Used
27. FUNCTION field 00 Data LENGTH LF 0x0A Block 0x3A to DATA field 0x30 0x30 NAK field to DATA Ox4E field 0x41 0 4 HOST RHIO Command Send 4 Send Response if it receives the correct command set 4 Response 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 following descriptions each port is indicated as below Input Port 11 112 ADC Input A1 A4 Level Input and Switch Input modes Output Port O1 O10 4 3 2 ON OFF Control 4 3 2 1 ON OFF Control Command Command Data Remark Byte Size 2 01 10 point output masking and Send output points to set 0x30 0x31 ON OFF control data ON OFF in a batch ON OFF control 35 Data MASK Data Data Separator ON OFF Data Data Order 1 10 11 12 21 Port No 1 10 1 10 Ox2C Control 0x31 ON 0x31 Data Content separates MASK Non control 0x30 OFF 0x30 from ON OFF MASK and ON OFF Data correspond to one port per byte for each port in sequence Port location by Data Order Data 1 2 3 4 5 6 7 8 9 10 Order 12 13 14 15 16 17 18 19 20 21 Port O1 O2 O3 O4 O5 O6 O7 O8 O9 O10 4 3 2 2 Response for ON OFF Control Response Data Remark Byt
28. Hhio232 Serial I O Manager User Manual Version 1 0 6 2015 09 11 Guide for the Rhio232 Version 1 0 6 Printed in Korea Copyright Copyright 2005 2015 Sena Technologies Inc All rights reserved Sena Technologies reserves the right to make changes and improvements to its product without providing notice Trademark Rhio is a trademark of Sena Technologies Inc Windows is a registered trademark of Microsoft Corporation Ethernet is a registered trademark of XEROX Corporation Notice to Users When 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 against consequences resulting from system failure is the user s responsibility This device is not approved for life support or medical systems Changes or modifications to this device not explicitly approved by Sena Technologies will void the user s authority to operate this device Technical Support Tel 482 2 576 7362 Fax 82 2 573 7710 E Mail support senaindustrial com Website http www senaindustrial com Revision History Revision Date Name Description V1 0 0 2005 05 21 D H Shin Initial Release V1 0 1 2005 08 08 D H Shin Table 2 2 Terminal Block Assignment of the Rhio10 is added V1 0 2 2005 11 02 D H Shin Typo errors corrected V1 0 3 2005 1
29. P Tray application and then select COM10 as a virtual serial port after clicking Select Ports on the panel Select Ports Please select the COM ports you would like to redirect to Serial IP COMI10 OK Q Enter the IP Address and Port number so that it may be same as the one of the SS800 Serial IP Control Panel 4 3 2 Contiguration o IP Address Port Number iv Connect to server 192 168 222 21 7001 Accept Connections Configuration Wizard User Credentials Use Credentials From v Connection Protocol Telnet Telnet with CR Padding Raw TCP Connection COM Port Options DSR Emulation DCD Emulation CIS Emulation Port Monitor is modem escape 7 7 Restore Failed Connections Licensing 5 _ticensing _ Security Advanced Use SSL TLS Encryption with SSL wc Close 51 Click the Configuration Wizard button on the Serial IP Control Panel Serial IP Control Panel 4 3 2 Configuration of COM10 IP Address Port Number jw Connect to server 1192 168 222 21 7001 A User Credentials Use Credentials From 7 Connection Protocol Telnet Telnet with CR Padding Raw TCP Connection COM Port Options DSR Emulation DCD Emulation CTS Emulation Port Monitor i
30. State WPARAM wParam LPARAM lParam SOnOffStateData amp sOnOffData Events other than a port ON OFF occur CSettingDlg OnReceive WPARAM wParam LPARAM lParam 32 4 3 Rhio Communication Protocol In this chapter it covers how to send receive the command reply to from Rhio device by using the Rhio communication protocol 4 3 1 Overview You can use the Rhio communication protocol to set control and monitor RHIO 4 3 1 1 Command Block START LRC END LENGTH FUNCTION DATA FLAG BCC FLAG Byte 1 2 2 N 2 2 Size Start of the The length from Command Data XOR from CR 0x0D Command FUNCTION field Response LENGTH LF 0x0A Block 0x3A to DATA field field to DATA 4 7 field START FLAG Start of the command block Ox3A LENGTH The length of the FUNCTION and DATA Fields FUCTION Control Set Check Status Command and Response Code DATA Control Set Check Status data Length calculation LRC calculation 33 gt LRC BCC It checks the Error of the command block The value by 1 byte XOR from LENGTH field to DATA field END FLAG CR LF 0x0D 0x0A The data of LENGTH and LRC is expressed as follows Each 4 bit nibble upper 4 bit nibble and lower 4 bit nibble is expressed as 1 Byte data The 1 byte conversion of the 4 bit data is as follows 0 0 0x9 0x30 0x39 OxA OxF 0x41 0x46 If the Rhio receives the dat
31. Status Troubleshooting 57 B 2 Serial Console Troubleshooting ennemis 57 Appendix C Rhio Linrary 11 58 Cit Enumeration Type ot cen a ee epe et ate ih Ob Duc Hx cde ceca 58 4 2 SUUCTURG Ss nits pee ese usu ober atl HB ER ce nd 60 C3 Functions o ea E EHE be eee a Uc Hee Cd 61 Appendix D Warranty 74 D 1 GENERAL WARRANTY POLICY sse enne 74 2 01 RR ERREUR 74 D 3 HARDWARE PRODUCT WARRANTY 75 D 4 SOFTWARE PRODUCT WARRANTY DETAILS 76 D 5 THIRD PARTY SOFTWARE PRODUCT WARRANTY DETAILS 76 1 Introduction 1 1 Overview The Rhio232 is a Serial I O Manager that enables Sena Device Servers to control and monitor O devices It is designed to connect to a Sena Device Server through the RS232 interface The Rhio232 supports 10 Digital Relay Output ports and has basic logic function capability such as AND OR NOT and Delay Pulse along with the status of the input ports The Rhio232 supports 12 optically isolated digital inputs for monitoring of the digital sensors The Rhio232 s Analog ports support both level mode for data acquisition and switch mode for threshold detection The data communication between host computers is done by event driven method which is triggered when the status is changed
32. a converted then it converts it to original by inverse The timeout from the start of the frame to the time when it receives LF is 5 sec Rhio will discard the command if there is any error in the command received BCC Error or Time Out and will wait for the next command Users have 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 the Data Field use the following as an example 30 33 30 33 30 30 41 OD 0A Do the following 8A xor 30 xor 33 xor 30 xor 33 xor 30 OA gets translated as 0 and A the byte conversion which is as follows 0x0 0x9 gets converted as 0 and A the byte conversion which is as follows 0x0 0x9 gets converted to 0x30 0x39 OxA OxF gets converted to 0x41 0x46 In the case of above 0 230 and A 41 thus the LRC is 30 41 as shown above 4 3 1 2 NAK Response NAK Response condition When there is Data BCC Error when receiving the command When the command data is not completed within 1 sec after it is started Time out When the length of the Data frame is not same as the one in the command Frame Length error 34 NAK Response START LRC END LENGTH FUNCTION DATA FLAG BCC FLAG Byte 1 2 2 3 2 2 Size Start of the The length from Response NAK XOR from CR 0 00 Command
33. arge 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 and humidity specifications Power fluctuations high voltage discharges Improper grounding incorrect cabling Misuse negligence by the customer or any other third party Failure to install or operate the product s in accordance to their SENA User Manual Failure caused by improper or inadequate maintenance by the customer or any other third party Floods lightning earthquakes Water spills Replacement of parts due to normal wear and tear Hardware has been altered in any way Product that has been exposed to repair attempts by a third party without SENA s written consent Hardware hosting modified SENA Software or non SENA Software unless modifications have been approved by SENA Battery component capacity degradation due to usage aging and with some chemistry lack of maintenance 75 D 4 SOFTWARE PRODUCT WARRANTY DETAILS WARRANTY PERIOD SENA warranties software Product for a period of one 1 year WARRANTY 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 D 5 THIRD PARTY SOFTWARE PRODUCT WARRANTY DETAILS The warranty policy of the third party software is conformed to the p
34. crosoft Visual Studio NET linked to Rhio library RHIO Proc dll RHIO Process h 4 2 1 Program UI Configuration and their related classes BHIO TEST 1 0 2 Output Communication T OFF Unknown Act Status Input 1 2 IJ 9 10 ADC Input ADC No 1 0000 Checking status ADC No 2 0000 Disconnect Setting 25 ac 1 O TE 2 QJ ac 2 O ADC No 3 0000 Ig ADC No 4 10000 Figure 4 1 Main Window of a Sample Program acs O aoc 4 O No Class Related Files 1 CWEB IO TESTDIg WEB IO TESTDlg h WEB IO TESTDlg cpp 2 CStateWnd StateWnd h StateWnd cpp 3 COutputButton OutputButton h OutputButton cpp 29 Setting Setting the output port Port number Macro Data 01 use MACRO Juse Delay Pulse On Time Off Time Setting the ADC 1 2 1023 1023 Setting the port enable Output Port M v 2 v 3 v 4 v 5 v 6 v v 8 v 9 v 10 Input Port Mi v2 Mea Ms Me M7 Me Mo Mio Mu v 12 ADC Port ADC Reference Acc 1 Level v 2 Level v 3 Level v 4 Level Setting a power failure recovery Mi Me Me Ms Me M Me Mo Mio Serial number RHIO Set Mode Figure 4 2 Setting Window of a Sample Program No Class Related Files 1 CSettingDlg SettingDlg h SettingDlg cpp 4 2 2 Processing 4 2 2 1 Initializing Main window 1 Link the library and get the
35. e 4 3 7 3 Check Port Enable Setting command Command Data Remark Byte Size 2 1 1 3 Check all port Enable Disable setting 0x31 0x33 0x30 Fixed to a dummy Check the Enable value setting 4 3 7 4 Response for Check Port Enable Setting command Same as 4 3 7 2 Hesponse for Set Port Enable command The setting field returns Normal 0x30 when it returns The initial value is set to Enable for all ports at the time of shipment ADC is set to Level Input mode 45 4 3 8 Port Power out Post Recovery Setting 4 3 8 1 Set Port Power out Post Recovery command Command Data Remark Byte Size 2 12 14 Set Power out 0x31 0x34 The Port Power out Post Post Recovery to Set Power out Post Recovery setting data Enable Disable Recovery to for an output port Enable Disable Data Field Data Order Port Data Content 1 4 O1 O4 0x31 Enable 0x32 Disable 5 Field Separator Ox2C Output State 6 9 05 08 0x31 Enable 0x32 Disable 10 Field Separator 0x2C 11 12 O9 O10 0x31 Enable 0x32 Disable 4 3 8 2 Response for Set Port Power out Post Recovery command Response Data Remark Byte Size 2 13 15 Return the 0x31 0x35 Power out Post The Port Power out Post Return the Power out Recovery setting Recovery setting data Post Recovery for an output
36. e Size 2 52 02 ON OFF state data for Send state of input output 0x30 0x32 ADC Level 4 points in a batch input output Input 12 Point and overall state Output 10 Point Data Field Pad id Data Content Order Control 0x30 Normal Control 0x31 No Run Mode State 0x39 Abnormal Control 0x30 OFF a ADC Input 2 6 At 0x31 ON Switch Input UT MESS LEVEL 0x39 Level Mode add 7 Field Separator 0 2 36 0x30 OFF 0000 1023 8 12 A2 0x31 ON Switch Input Level 0x39 Level Mode 13 Field Separator 0 2 0x30 OFF 0000 1023 14 18 0x31 ON Switch Input Level 0x39 Level Mode 19 Field Separator 0 2 0x30 OFF 0000 1023 20 24 A4 0x31 ON Switch Input Level 0x39 Level Mode 25 Field Separator Ox2C 26 29 11 14 0x30 OFF 0x31 ON 30 Field Separator 0 2 Input 31 34 15 18 0x30 OFF 0x31 ON State 35 Field Separator 0 2 36 39 19 112 0x30 OFF 0x31 ON 40 Field Separator Ox2C 0x30 OFF 0x31 ON 0x32 Wait for a conditional execution 41 44 01 04 0x33 Wait for Delay ON 0x34 Wait for Delay OFF 0x35 Run PULSE 45 Field Separator Ox2C 0x30 OFF 0x31 ON 0x32 Wait for a conditional Output execution 46 49 05 08 State 0x33 Wait for Delay ON 0x34 Wait
37. elay Pulse 00001 00000 ON after 100 ms delay 00020 00000 ON after 2 sec delay 50000 00000 ON after 5 000 sec delay 00000 00001 OFF after 100 ms delay 40 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 sec ON and 2 sec OFF anaes 06007 Repeat 5 000 sec ON and 5 000 sec OFF 00010 00030 Repeat 1 sec ON and 3 sec OFF 00300 00150 Repeat 30 sec ON and 15 sec OFF 4 3 5 2 Response for Set Output Port command Response Data Remark Byte 2 1 2 1 Size 06 Port 0x30 Clear run condition 0x30 No 0x31 Set run condition Setting Setting Return the setting 0x36 01 0x32 Clear Delay Pulse Flag Data of an output port Return 0x33 Set Delay Pulse setting 10 0x39 Clear all settings Setting Flag 0x30 Set OK 0x39 Set NG 0x31 Not in Setting mode when in Run mode 0x32 Unspecified If the user attempts to clear in unspecified state it will return 0x32 When it is in unspecified state the setting data is 0x30 in 1 byte When setting is cleared the setting data is 0x30 in 1 byte 4 3 5 3 Check Output Port Setting Command Command Data Remark Byte Size 2 2 1 Ox31 Check the run 07 0x30 0x37 Check set
38. evice Connect the one end of the CAT5 cable to RS232 port of the Rhio232 and the other to host or device server If connector type of host or device server is DB9 connect the other end using RJ45 to DB9 Female adaptor If the cable is properly hooked up the Rhio232 will have a valid connection to the device server or host by indicating Serial Rx Serial Tx green lamps continuously blink to indicate the incoming outgoing data stream through serial port of the Rhio232 If any of the above does not happen the Rhio232 is not properly connected to the RS232 communication Note User must configure serial parameters a host or device server in such a way that it should be same with the Rhio232 s serial parameters Serial parameters of the Rhio232 are as follows 9600 Baud rate Data bits 8 Parity None Stop bits 1 No flow control Device Server Figure 2 6 Connecting host or device server to the Hhio232 2 3 Rhio Manager Installation Rhio Manager is a Windows Utility program for system configuration and I O test of the Rhio232 2 3 1 Rhio Manager Installation Users may install the Rhio Manager software by downloading at Sena web site http www sena com support downloads If it is installed normally then it will be placed on to the menu of Start gt Program gt SENA gt RHIO Manager The screen layout is shown in Figure 2 7 13 RHIO Manager File Device View Help Serial FX Qe Bw j cia
39. for Delay OFF 0x35 Run PULSE 50 Field Separator 0 2 0x30 OFF 0x31 ON 0x32 Wait for a conditional O9 execution 51 52 010 0x33 Wait for Delay ON 0x34 Wait for Delay OFF 0x35 Run PULSE Indication that the system is standby when conditional execution for output port pulse delay operations are active with ON command 37 4 3 3 Input Output State 4 3 3 1 I O State Request Command Command Data Remark Byte Size 2 1 03 0x30 Fixed to a Ox30 0x33 dummy value State Request 4 3 3 2 Response for I O State Request Command Identical with ON OFF control response Sent even if the state of input port or ADC in Switch Input mode has been changed based on a threshold voltage A change of input state is recognized when the input value changed is maintained for 15 ms In case of state response the control state field returns 0x30 in Run mode and 0x31 in Setting mode 4 3 4 Set Run 4 3 4 1 Set Run Command Command Data Remark Byte Size 2 1 04 0x30 Set Switch between Set 0x30 0x34 0x31 Run and Run Modes Set Run The Rhio232 returns a state response once after set command is received It does not return any state response until it receives run command even if it is switched to Setting mode When setting output port ADC input port Port Enable Port Power out Recovery or serial number send set command first to switch i
40. g Close Figure 3 4 Setting digital output port window 3 3 1 Setting Enable Disable Set a specified port to Enable Disable by selecting the Port Enable and Port Disable check boxes If it is set to Disable the digital output port becomes fixed to OFF 19 3 3 2 Setting run condition When the Macro check box is selected you can enter a conditional expression and then use it to control operation of an output port Enter the desired conditional expression in the Macro box Specify an operation condition for each output port An output port that has not been set is regarded as a port available for direct control The final value obtained from a logical operation on the listed expression becomes the state of an output port f the operation condition expression is cleared a port becomes available for direct access Operation condition expressions can be specified as follows 1 Port No Logic Expression amp Port No 2 Logic Expression Port No 3 Port No Logic Expression amp Logic Expression Port No Logical operator can only be effective before the relevant port no Oil Input 1 AND Input 2 11812 Input 1 OR Output 2 1102 The Inverse of Input 1 111 Output 2 AND Output 3 AND the inverse of Output 4 2 amp amp 4 Asingle logical expression can contain up to 21 ports f a port is directly set to ON when its operation condition is not met it
41. he command False if Time Out Error 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode 0x32 Not set eg In case of Set command SRHIOSetting sSetData sSetData sInput eDelayPulse ESOF SETTING memset sSetData sInput cDelayPulse 0 sizeof sSetData sInput cDelayPulse memcpy sSetData sInput cDelayPulse 0050000000 10 RHIO SndCmd SetDelayPulse sSetData 1 In case of Set Clear command SRHIOSetting sSetData sSetData sInput eDelayPulse 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 Prototype extern C declspec dllexport bool RHIO SndCmd GetDelayPulse int iPortNum Parameter int iPortNum Input port number to check Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Command transfer status flag ESF MON DELAY PULSE LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode 0x32 Not set Xx When reaction event is received get data using RHIO GetSettingData function and check the Delay Pulse on setting eg RHIO SndCmd GetDelayPulse 1 67 RHIO SndCmd SetADC Description Used to send the command to set the Level of all the ADC ports from
42. layPulse setting for input port Send a command that sets the level of all ADC RHIO SndCmd SetADC ports 1 4 Send a command that checks the level of all RHIO SndCmd GetADC ADC ports 1 4 Send a command that enables disables all RHIO SndCmd SetPortEnable ports 27 RHIO SndCmd GetPortEnable Send a command that checks enable disable state of all ports RHIO SndCmd SetPwrStop Enable Send a command that enables disables power out recovery for all ports RHIO SndCmd GetPwrStop Enable Send a command that checks enable disable state of power out recovery for all input ports RHIO SndCmd SetFactory Reset 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 number RHIO SndCmd GetFirmware Send a command that checks Rhio Firmware version RHIO GetSettingData Retrieve corresponding data when an event occurs such that a response on a check for setting is received from each port RHIO GetOnOffData Retrieve corresponding data when an event occurs such that responses from a change in and control of ON OFF setting are received 28 4 2 Creating and demonstrating a sample program with Rhio library The sample program RHIO TEST is a dialog box based application that has been created with Mi
43. mmand transfer status ESF MON SERIAL Serial number check Command transfer status ESF MON FIRMWARE Firmware Version check transfer status ESF NONE EsetOutputFlag Output Port Maco Delay Pulse Set Clear Flag enum ESetOutputFlag ESOF CLEAR Port Set Clear ESOF SETTING Port Set EADCMode Flag specifies whether the current ADC mode is Level or Switch mode enum EADCMode EAM LEVEL EAM SWITCH 59 C 2 Structure ON OFF status Data Structure which contains Port ON OFF status typedef f struct ADCData EOnOffFlag eADC char cADC 5 SADCData typedef struct oOnOffStatusData EOnOffFlag eOutput 10 EOnOffFlag eInput 12 SADCData sADC 4 JSOnOffStatusData Set status Data Structure for the Set status typedef struct SetOutput f ADC Data ADC On OFF Flag ADC Level storage 11 Port ON OFF Data Output Port 1 10 Input Port 1 12 ADC Port 1 4 Output Port Set Data ESetOutputFlag eMacro MACRO Flag ESOF CLEAR ESOF SETTING char cMacro 106 MACRO Data ESetOutputFlag eDelayPulse DelayPulse Flag ESOF CLEAR ESOF SETTING char cDelayPulse 11 DelayPulse Data bool isEnable 10 Output port Enable bool isEnablePowerStop 10 Output port power stoppage SSetOutput typedef struct SetADC EADCMode eModeADC 4 BYTE
44. nennen 17 34 3 Monitoring VO porn e aee tme ee pei a Ah p iR ie Eres 17 3 1 4 Controlling digital output port enemies 17 3 2 Digital Input Setting ERECTO ER RC 18 3 2 1 Setting Enable Disable seen nennen nennen nnne nnns 18 3 3 Digital Output Port Setting kd ang a NG nd nG ie Ms 19 3 3 1 Setting Enable Disable esses 19 3 3 2 8ETtiNGitUN TONdILON i e te DRE RENDERE RERO RE RES 20 3 3 3 Delay amp Pulse Operation 1 certare eter eode dte red retenta rue d e dg eee 21 3 3 4 Setting Power out Post Recovery 21 3 4 ADC Input Port Setting oic ne Beet a c m aee cf meten d a e Eee 21 3 4 1 Setting Reference uia eU Roe DECR EON ERG 22 3 4 2 Setting ADC Input Port ea iaer i 22 9 5 O Port Corinection ie RARI iet P et 23 3 5 1 Digital Output POLE co ci oi rt oo e D e tn debt e deron dt 23 3 5 2 Digital anG BLG NARRA ERU 23 3 5 3 ADG Input tah Ee de FE HELD Ede Le HE DURER Es 24 4 Software Development amp Application 26 4 1 The Bhio Eibraty eiii tte De p ei Dr e xoc ER E RE Dee ERR 26 4 1 1 Overview of the Rhio Library nennen nennen rennen nnne 26 41 2 Reference ee Deme CDD E E ER 26 4 2 Creating
45. nverts the analog value retrieved to a digital value in 1 024 steps and displays the converted value 0000 1023 n Switch mode ADC Input Port compares the input value to a specified threshold value and displays ON if it is higher and OFF if not Digital Output Port displays the ON OFF state operation condition for an output port and standby state 3 1 4 Controlling digital output port You can place your mouse over the Digital Output Port LED of Rhio Manager and left click it to control ON OFF state When the operation condition for a digital output port is not specified the ON OFF state for the port is toggled each time you left click your mouse 17 When the operation condition is specified the port is set to ON if it is met and it is set to OFF and displayed as a standby state if not After output control is completed the Rhio232 returns the states of all ports to the host computer 3 2 Digital Input Setting The Rhio232 has 12 digital input ports You can enable disable each of these digital input ports with Rhio Manager or by issuing the commands specified in Ch 4 O Port Related Protocols When setting the digital input with Rhio Manager place your mouse cursor over the Digital Input LED on the I O Port Control screen and right click it to display the Setting window 3 2 1 Setting Enable Disable Setting Input port Port No 1 Input Port Enable Disable C Disable Setting Close Figu
46. olicy of the corresponding vendor 76
47. ption Used to send the command to check whether it is possible to get the Enable Disable Port data of all the ports Function Prototype extern C declspec dllexport bool RHIO SndCmd GetPortEnable Parameter None Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Command transfer status flag ESF MON ENABLE 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 event is received get data using RHIO GetSettingData function and check the Enable Disable Port on setting eg 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 dllexport bool RHIO SndCmd SetPwrStopEnable SRHIOSetting sSetData Parameter SRHIOSetting sSetData Data to set SRHIOSetting sOutput sEnablePowerStop 10 Enable Disable Power Failure Recovery of the input port Enable true Disable false Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Commnad transfer status flag ESF SET PWR STOP LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode eg SRHIOSetting sSetData for
48. re 3 3 Setting digital input Digital input setting has two options Enable and Disable After selecting either of the options press the Setting button to apply it in the system A port cannot be set while it is operating in Run mode Therefore Rhio Manager sends a command that switches its mode to Setting mode first and then issues the set command when its operation is stopped When set to Enable Rhio Manger receives the ON OFF state from the device connected to a digital input port and then displays it When set to Disable it displays Disable regardless of the ON OFF state of the device connected to the input port 18 3 3 Digital Output Port Setting The Rhio232 has 10 digital output ports You can set each of these digital output ports with Rhio Manager or by issuing the commands specified in Ch 4 I O Port Related Protocols 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 Setting Output port Port No 1 PortEnable Port Disable Delay Pulse Use Delay Pulse Delay On Input delay on time Limit 075000 C 100msec On time Delay Off Input delay off time Limit 075000 Off time 100msec Input delay on off time Limit 075000 On time 100msec Off time 100msec Setting power stoppage rehabilitation Enable power stoppage rehabilitation Disable power stoppage rehabilitation Settin
49. rform in accordance with published technical specifications and the accompanying written materials and shall be free of defects in materials and workmanship for the period of time herein indicated such warranty period commencing upon receipt of the Product This warranty is limited to the repair and or replacement at SENA s discretion of defective or non conforming Product and SENA shall not be responsible for the failure of the Product to perform specified functions or any other non conformance caused by or attributable to a any misapplication or misuse of the Product b failure of Customer to adhere to any of SENA s specifications or instructions c neglect of abuse of or accident to the Product or d any associated or complementary equipment or software not furnished by SENA Limited warranty service may be obtained by delivering the Product to SENA 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 prepay shipping charges to SENA and to use the original shipping container or equivalent D 2 LIMITATION OF LIABILITY EXCEPT AS EXPRESSLY PROVIDED HEREIN SENA MAKES NO WARRANTY OF ANY KIND EXPRESSED OR IMPLIED WITH RESPECT TO ANY EQUIPMENT PARTS OR SERVICES PROVIDED PURSUANT TO THIS AGREEMENT INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
50. ription Used to send command to set the RHIO serial number Function Prototype extern C declspec dllexport bool RHIO SndCmd SetSerial CString strSerial Parameter SRHIOSetting sSetData Data to set 71 CString strSerial Serial number string limited to 12 bytes Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Commnad transfer status flag ESF SET SERIAL LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x39 Abnormal operation 0x31 Not the Set Mode eg RHIO SndCmd SetSerial 0000003 RHIO SndCmd GetSerial Description Used to send the command to check whether it is possible to get the RHIO Serial number Function Prototype extern C declspec dllexport bool RHIO SndCmd GetSerial Parameter None Return TRUE if successful False if failed Parameter when reaction event is received 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 event is received get data using RHIO GetSettingData function eg RHIO SndCmd GetSerial RHIO SndCmd GetFirmware Description Used to send the command to check whether it is possible to get the RHIO Firmware Version Function Prototype extern C declspec dllexport bool RHIO SndCmd GetFirmware
51. s modem escape 7 7 Restore Failed Connections Li icensing esc Adyanced Use SSL TLS Encryption with SSL v3 or TLS v Close Help Complete COM port setting by clicking Start button on the Configuration Wizard panel Close the window by clicking Use Setting button after the communication test Configuration Wizard COM10 IP Address of Server Port Number 192 168 222 21 7001 sername Password i pa gj Security Enable Encryption Test for presence of a modem connected to the server Status Connected to Server Raw TCP Connection Detected Session Completed Hecommendations Protocol Raw COM Port Option DTA Emulation disabled Security Disabled Use Settings Copy Cancel 52 The configuration makes the system work as follows The data stream from users application is transferred to the virtual port COM10 The data stream from COM10 is transferred to the IP address TCP port of the SS800 192 168 222 21 TCP port 7001 Step 3 I O test using Rhio Manager Run the Rhio Manager and then select Serial for communication type RHIO Manager File Device View Help Pp 2 s lala att classes class Q Configure COM port after clicking Probe button the toolbar Users can now connect to the Rhio232 which is connected to the SS800 by way of the SS800 RHIO Manager File Device View Help Serial eld
52. setting port Data Data Field Port Data Content Order 0x30 Set OK Setting 1 0x31 Not in Setting mode 0x39 Set NG 46 2 5 1 4 0x31 Enable 0x32 Disable 6 Field Separator 0x2C Output State 7 10 O5 O8 0x31 Enable 0x32 Disable 11 Field Separator 0 2 12 13 O9 O10 0x31 Enable 0x32 Disable 4 3 8 3 Check Port Power out Post Recovery Setting command Command Data Remark Byte Size 2 1 1 6 0x31 0x36 Check the Power 0x30 Fixed to a dummy Check the Power out Recovery value out Recovery setting for all ports setting 4 3 8 4 Response for Check Port Power out Recovery Setting command Same as 4 3 8 2 Response for Set Port Power out Recovery command The setting field returns Normal 0x30 when it returns The initial value is set to Enable for all ports at the time of shipment 47 5 How to use the Rhio232 with Device Servers The Rhio232 is a serial I O manager that enables device servers to monitor and control I O devices It is designed to connect to a device server through the RS232 interface The following is the typical way to use the Rhio232 with Sena device servers for remote I O management application Connection by TCP socket program using Rhio Library Sena device server Rhio232 Connection by Serial program COM port using Rhio Library Serial IP COM Por
53. t Redirector Sena device server Rhio232 Please refer to the tips serial ip with sena ds v1 0 0 pdf Serial IP User Manual for detailed information on the Serial IP software Users may get the corresponding material from http www sena com support downloads This chapter covers how to connect the Rhio232 with the device server and the application configuration 5 1 Connections The Rhio232 is connected to the serial device server through RS232 serial port and its connector type is RJ45 Users should use RJ45 DB9 female straight adapter in the package in order to connect the Rhio232 to the Sena device servers that has DB9 serial port i e LS100 PS100 Users may directly use CAT5 straight cable to connect it to the Super series or STS series models that have RJ45 serial port Table 5 1 shows the summary of the connections between Sena device servers and the Rhio232 48 Table 5 1 Connections with the Sena device servers and the Rhio232 Sena device servers Connection Rhio232 DB9 RJ45 DB9 female straight RJ45 12345 adapter 0000 1 8 6 7 8 9 Pin Description 1 2 Rx TX 4 DTR Pin Description 5 GND 1 CTS B DSR T 2 DSR us 5 straight cable 3 RxD x gt 4 GND H 5 DCD B TxD eg 7 DTR RTS LS100 LS100W PS100 200 400 110 410 810 SS100 Em RJ45 CAT5 straight cable 1 8 Pin Description 1 CTS 2 DSR 3 RxD pi Description 4 GND 1 CTS 5 DCD 2 DSR NG 3 R
54. t to Setting mode Check command is working in both Setting and Run mode Once each setting is completed send run command to switch it to Run mode 38 When a run command is received it returns a state response once and continues with the operation paused 4 3 4 2 Response for Set Run command Same as 4 3 2 2 Response for ON OFF control In Setting mode the Rhio232 returns a response once and it does not respond until run command is received control state field of the state response the Rhio232 returns 0x31 in Setting mode and 0x30 in Run mode 4 3 5 Output Port Setting 4 3 5 1 Set Output Port Command Command Data Remark 2 2 1 05 Port 0x30 Clear run condition Setting Set the attribute of 0x30 No 0x31 Set run condition Data each output port 0x35 01 0x32 Clear Delay or Pulse Max When cleared the Set output 0x33 Set Delay Pulse 106 setting data is 0x30 port 10 0x39 Clear all settings bytes in 1 byte Asetting can be done only in Setting mode Users can set repeated run condition pulse or delay When a port is set for repeated actions run condition set up has a priority which means it is executed first A setting can be cleared by mode or the entire setting can be cleared as well When cleared data setting becomes 0x30 in 1 byte 1 Setrun condition It sets the run condition for the output port specified
55. ting Port No condition setting Check the attribute 01 10 0x33 Check the of each output port Delay Pulse setting 41 4 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 Setting 4 3 6 1 Set ADC Input Port Command Command Data Remark Byte Size 2 16 m Set the threshold level value for an Set it to a 10 bit ADC 0x30 0x38 input ADC port level value Set ADC 0000 1023 X4 Athreshold value is set for all ADC inputs in Switch Input mode When an input change is measured only changes beyond the range 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 less than the threshold level by 8 or more When the threshold level is above 1015 a change between 1015 1023 is determined as ON When it is set to less than 8 a change between 8 0 is determined as OFF ADC Input No 1 2 3 4 Settings 0000 1023 0000 1023 0000 1023 0000 1023 4 3 6 2 Response for Set ADC Input Port command Response Data Remark Byte Size 2 17 09 The threshold level 0x30 0x39 Setting for input ADC port Return the FLAG NEUE TROU INS ADC setting 42
56. tmode The Run Mode button is clicked on CSetting The Monito OnBnClic The Set Se Dlg OnBnClic kedButtonMoni CSettingDlg OnBnClic kedButtonRunMode r Serial button is clicked on torSerial rial button is clicked on kedButtonSetSerial 31 The Monitor Power Stop button is clicked on tonMonitorPwrStop on tonSetPwrStop button is clicked on tonMonitorEnable tonSetEnable CSettingDlg OnBnClickedBut The Set Power Stop button is clicked CSettingDlg OnBnClickedBut The Monitor Enable State of the Port CSettingDlg OnBnClickedBut The Enable Port button is clicked on CSettingDlg OnBnClickedBut The Monitor ADC Input button is clicked on CSettingDlg OnBnClickedBut The Set ADC Input button is clicked on The Set Delay Pulse button is click CSetting The Check CSetting CSetting The Check CSetting The Set Macro button is clicked on CSet ting Dlg OnBnClic Dlg OnBnClic Dlg OnBnClic Dlg OnBnClic Dlg OnBnClic Delay Pulse State button Macro Setting button is cl kedBut kedBut kedBut kedBut kedBut When an event occurs in a Rhio device CW D Aport ON OFF event occurs m rhGetOnOffData ed on tonMonitorInput tonSetInput is clicked on tonMonitorOutput2 tonSetOutput2 icked on tonMonitorOutput tonSetOutput EB IO TESTD1g OnUpdate
57. to send the command to check whether it is possible to get the MACRO of an input port Function Prototype extern C declspec dllexport bool RHIO SndCmd GetMACRO int iPortNum Parameter int iPortNum Input port number to check Return TRUE if successful False if failed Parameter when reaction event is received WPARAM Command transfer status Flag ESF MON MACRO LPARAM Control status flag of the command False if Time Out Error 0x30 Normal operation 0x39 Abnormal operation 0x31 Not 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 Used to send the command to set the Delay Pulse of an input port Function Prototype extern C declspec dllexport bool RHIO SndCmd SetDelayPulse SRHIOSetting sSetData int iPortNum Parameter SRHIOSetting sSetData Data to set SRHIOSetting sInput eDelayPulse Flag to determine to set or clear ESOF CLEAR ESOF SETTING SRHIOSetting sInput cDelayPulse Time string in 10 bytes Operation Set 00000 50000 00000 50000 int iPortNum Input port number to set Return TRUE if successful False if failed 66 Parameter when reaction event is received WPARAM Command transfer status flag ESF SET DELAY PULSE LPARAM Control status flag of t
58. ts You can set an ADC input port with Rhio Manager or by issuing commands via an I O port protocol refer to Ch 4 Port Related Protocols When using Rhio Manager place the mouse cursor over the ADC Port LED on the I O Port Control screen and right click it to display the Setting ADC port windows as shown below 21 Setting ADC port Port No 1 Reference ADC Port Level Switch Level C Switch Input ADC port level Limit 071023 Level Setting Close Figure 3 5 Setting ADC Input Port 3 4 1 Setting Reference Specify a reference voltage for analog input data Rhio represents voltage from 0 V to a reference voltage in 1 024 steps A reference voltage may not exceed 5 V Specify a reference voltage in the Reference list box Use Avcc Specify Avcc 5V as a reference voltage Use inside Specify the internal reference voltage 2 56V as a reference voltage Use Outside Specify voltage issued to Aref as a reference voltage 3 4 2 Setting ADC Input Port Analog Input Port has two modes Level mode and Switch mode Level mode Display voltage from 0 V to a reference voltage in 1 024 steps 0000 1023 Switch mode Compare input voltage level to threshold level setting and send a state change response when the input level is higher or lower than the threshold An ADC input recognizes it is changed only when it is changed larger than 8 steps from the pre configured threshold 22 3 5
59. umber 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 Description Used when users want to connect to RHIO using RS232 serial connection Parameter fixed as Baudrate 9600 bps Parity none Data bit 8 Stop bit 1 Function Prototype extern C declspec dllexport bool RHIO CommConnect int iPort Parameter None Return TRUE if successful False if failed eg if RHIO CommConnect 1 AfxMessageBox Connection Successful Else AfxMessageBox Connection Failure 62 RHIO Close Description Used when users want to disconnect the current connection with the Rhio in both serial and TCP connection In order to reconnect to the Rhio be sure to use Rhio Close function before connection attempt Function Prototype extern C declspec dllexport bool RHIO Close Parameter None Return TRUE if successful False if failed eg RHIO Close RHIO SndCmd 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 iOutputNum Output port number 1 10 EOnOffFlag eOnOff Control flag EOF ON EOF OFF Return TRUE if successful False if
60. utFlag flag related to enable disable state when setting output port macro delay pulse EADCMode A flag specifying whether ADC is in Level mode or in Switch mode 26 2 Structure See Appendix C 2 Structure Description SADCData ON OFF state of each port SOnOffStateData ON OFF state of all ports SSetOutput Output port configuration information SSetADC ADC configuration information SSetInput Input port configuration information SRHIOSetting All ports configuration information 3 Function See Appendix C 3 Function Description RHIO CommProcessCreate A function that creates Process Class that must be created for use of the library RHIO SockConnect Connect to RHIO via a socket TCP IP RHIO CommConnect Connect to RHIO 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 Send a command that sets setting mode RHIO SndCmd SetRunMode Send a command that sets run mode Send a command that sets macro for input RHIO SndCmd SetMACRO port Send a command that checks macro setting RHIO SndCmd GetMACRO for input port Send a command that sets delay pulse for RHIO SndCmd SetDelayPulse input port Send a command that checks delay pulse RHIO SndCmd GetDe
61. x31 Enable 0x32 Disable 32 Field Separator 0x2C 33 34 O9 O10 0x31 Enable 0x32 Disable All I O ports are initially set to Enable including Factory Reset All ADC ports are initially set to Level Input mode including Factory Reset 4 3 7 2 Response for Set Port Enable command Response Data Remark Byte Size 2 35 1 2 Return all port 0x31 0x32 Port Enable Disable Enable Disable Return the Enable setting data settings setting Data Data Field Port Data Content Order 0x30 Normal Enable Setting 1 0x31 Not in Setting mode 0x39 Abnormal Enable 2 A1 0x30 Avcc Vcc 5V gt default 3 A2 0x31 Internal 2 56V ADC Port 4 0x32 External 2V 4 5V 5 A4 6 Field Separator 0 2 0x30 Avcc Vcc 5V gt default ADC Reference 7 0x31 Internal 2 56V Setting 0x32 External 2V 4 5V 9 12 11 14 0x31 Enable 0x32 Disable 13 Field Separator Ox2C 14 17 15 18 0x31 Enable 0x32 Disable Input Port 18 Field Separator 0 2 19 22 19 112 0x31 Enable 0x32 Disable 23 Field Separator Ox2C 24 27 01 04 0x31 Enable 0x32 Disable 28 Field Separator 0 2 Output State 29 32 O5 O8 0x31 Enable 0x32 Disable 33 Field Separator 0 2 34 35 O9 O10 0x31 Enable 0x32 Disabl
62. xD 7 DTR KI 4 GND 5 DCD eg 6 TxD SS110 400 800 pili STS800 1600 5 2 Application This chapter covers how to test the Rhio232 with the Sena s 8 port device server SS800 by using Serial IP software The following is the units required to test and the corresponding configurations for each module 49 Rhio232 and SS800 Serial IP COM Port Redirector software Rhio Manager software Two CATS straight cable One for the network connection of the 55800 and the other for the connection between the SS800 and the Rhio232 55800 configuration IP address DHCP 192 168 222 21 Serial port 1 configuration Host mode TCP TCP Local port 7001 Serial RS232 type 9600 Baud rate 8 Data bit None Parity 1 Stop bit Serial IP COM Port Redirector software configuration Use COM Port 10 It is assumed that Serial IP COM Port Redirector and Rhio Manager software are already installed on the users PC and that the Rhio232 is connected to the appropriate I O devices Figure 5 1 shows the application diagram of the SS800 with the Rhio232 m Wireless Management Station Local Remote Management Station Ethernet sc Wireless LAN RS232 422 485 P o Rhio232 Device Serial Device Figure 5 1 Application diagram of the Rhio232 and the SS800 50 Step 1 Connect the Rhio232 to the port 1 of the SS800 using CAT5 cable Step 2 Serial IP Configuration Double click the Serial I

Download Pdf Manuals

image

Related Search

Related Contents

Frigidaire 66166045 User's Manual  Crop Module: Onions(salad)  Samsung GT-E1232B User Manual  Datenblatt deutsch  Sitecom Mini HDMI to HDMI Cable  Emtec S420 2 GB  TH-1129M FRENCH IM  Product Manual  MANUALE INSTALLAZIONE  Ednet 87211 webcam  

Copyright © All rights reserved.
Failed to retrieve file