Home
Ocean Controls KTA-223 USB IO Module
Contents
1. 24 6 1 35 To issue this to a controller with address 44 the required command is 44 WR 35 29 Oct 2015 www oceancontrols com au 4of 15 7CICEAN KTA 323 mini PLC CONTROLS TR Timed Relay Command Software v1 1 and Later The timed relay command is used to turn a single relay on for a set period of time after which the relay automatically turns off Two parameters are needed separated by a space the first is the relay number 1 8 and the second is the time to turn the relay on for in tenths of seconds 001 255 the second parameter must have 3 digits E g 44 TR 1 050 will turn relay 1 on for 5 seconds KA Keep Alive Command Software v1 2 and Later This command is used as a watchdog timer If the parameter is O the watchdog is turned off If the parameters is between 1 and 255 then if that time in seconds has elapsed without the unit receiving another Keep Alive command then all the relays will turn off This is used for a fail safe to ensure if the host software can no longer communicate with the KTA 223 then the relays turn off IS Input Status Command This command will return the status of the inputs If the parameter is between 1 and 4 then the controller will return a 0 or 1 corresponding to that input E g 44 IS 1 will return 44 1 if the input is on or 44 0 if the input is off If the parameter is O then the unit will respond with the status of all the inputs in similar form as the Write Relays command E g If inp
2. Q EEAN KTA 323 mini PLC CONTROLS e 8 Relays with 5 A 250 VAC rated contacts e 4 Optically isolated digital inputs up to 30 VDC e DIN rail mountable e 3 Analog inputs 0 to 5 V or O to 20 mA jumper selectable e On board 10 100baseTX Ethernet with globally unique MAC address and DHCP e Power indicator comms transmit and receive and relay status LED s e All enclosed in professional looking plastic case e Arduino Compatible can be re programed with the Arduino IDE e Accepts XBee form factor expansion boards e FTDI232 based USB virtual serial interface e RS 485 serial interface e Can be used as a USB to RS 485 converter e Multiple units can be connected in an RS 485 bus The KTA 323 is a USB RS 485 or Ethernet controlled IO module for interfacing PC s to real world applications such as controlling lights and sprinkler systems reading sensors and monitoring switches and other digital signals The controller ships programmed as an Arduino with a custom sketch loaded that listens for commands on the serial ports USB or RS 485 and responds by switching relays or returning the state of inputs Additionally the KTA 323 operates as a web server on Ethernet The custom sketch serves out a configuration page that can be used to change the state of relays and view all current I O The sketch is available on the Ocean Controls website as an example of Arduino programming for the controller The custom sketch speaks a simple
3. controller is listening for serial data at 9600 baud and has address 00 The controller will always use 1 Stop Bit 8 Data Bits and No Parity The commands the controller uses are in the form AA CC X lt CR gt The symbol is used to define the start of a command AA is the address of the unit from 00 to 99 CC is a two letter command used to determine the command type X is a one or more characters which determines the parameter for the command lt CR gt is the carriage return character This is ASCII character 13 or OxOd Each time a valid command is received the unit will respond with AA followed by any values that are requested from the unit Note that 00 is the Wildcard Address All controllers respond to address 00 regardless of what their address has been set to If a command has 00 as the address all devices on the bus will respond as if they have been individually addressed 29 Oct 2015 www oceancontrols com au 3 of 15 Q ECAN KTA 323 mini PLC CONTROLS Table 2 Command set ON Turn Relay On 1 8 Turn Relay 1 8 On Individually onl 0 Turn All Relays On at Once Turn Relay Off 1 8 Turn Relay 1 8 Off Individually e 0 Turn All Relays Off at Once WR The parameter is a number which determines which of the relays once should be turned on or off R 2 parameters First is 1 8 Relay Number Second 001 255 Time in Time tenths of seconds to turn ON for Keep Alive 0 Turn Off Keep Alive Sme o 1 255 Time in Seconds Status
4. is done Using the Controller The controller requires 8 to 32V DC connected to V and COM This can come from a plug pack bench top power supply or battery The controller has screw terminals for the connection of power Plug pack power supplies often come with a plug on the end of the lead The plug can be cut off and bare wires exposed for the screw terminals on the controller Connect the power supply positive to the V terminal and negative to the COM terminal next to it The POWER LED should light A diode protects the controller and prevents it from operating with power connected in reverse polarity If the LED does not light ensure your supply is delivering sufficient voltage and is connected correctly Connect Ethernet via the RJ45 plug The KTA 323 by default uses DHCP to retrieve a vacant IP address from your network This IP address is printed out of the USB socket Holding down the IP ADDR RESET button on the board will force the controller to use 192 168 1 100 For serial control connect the KTA 323 to a computer using a USB A male to USB B male cable When the power is turned on your computer may prompt you to install drivers The drivers required are the FTDI Virtual Serial COM Port Drivers the latest versions for all systems are available from http www ftdichip com Drivers VCP htm Communicating with the Controller The Address and Baud Rate of the unit can be set and are stored in the controller s memory By default the
5. of Relays 1 8 Returns Status of Relays 1 8 Individually Sasons 0 Returns Status of All Relays Status of Inputs 1 4 Returns Status of Inputs 1 4 Individually a 0 Returns Status of All Inputs Read Analog Input 1 3 Read Value of Analog Input 1 2 or 3 all 0 Returns Value of All Analog Inputs SS Must be 0 Returns status of all Relays Analog and Digital Inputs SA 01 99 Sets the Address of the unit in Memory SB Set Baud Rate 1 10 Sets the Baud Rate 4 9600 baud default ON Relay On Command This command is used to turn a single relay on E g 44 ON 1 will turn relay 1 on for the unit with address 44 It can also be used to turn all the relays on this occurs when the parameter value is 0 OF Relay Off Command Similar to the on command this command will turn relays off in the same manner E g 44 OF 1 will turn relay 1 off for the unit with address 44 44 OF 0 will turn all relays off WR Write Relays Command The write relays command is used when more than one relay is to be turned on or off at once The parameter is a decimal number which in binary represents the on and off status of the 8 relays The least significant bit of this value controls relay 1 The most significant bit of the parameter value controls relay 8 A set bit 1 turns the relay on a Cleared bit 0 turns the relay off Example To turn relays 1 2 and 6 on and others off the binary value required is 00100011 In decimal this is 35 24 1 1 24 2 1
6. 1 271 Autoscroll No ine ending 9600 baud w The IP address can be forced to default 192 168 1 100 by holding down the IP ADDR RESET button as power is applied to the KTA 323 29 Oct 2015 www oceancontrols com au 7 of 15 ICCAN KTA 323 mini PLC me CONTRO Kn Test Utility Figure 3 Test Utility KT4 323 mini PLC Tester Ei Comms 192 168 1 100 demo form die Rh Fort fao Open Baud Addr lo avigate eres Te eman Ax posz 8507102 ListPots _ Ocean Controls Address Relays 1 Change KTA 323 mini PLC Digital Inputs Relays 1 9 Relay 1 On Off F Toggee Relay 2 On Off 4 Em pA Relay 3 On Of Relay 4 On Off Analog Inputs Relay 5 On Off 527 Relay 6 C On Of 2 50 ME Relay T C On Of 3 1023 fe Relay 8 C On Of WWI OCeancontrols com ay Ocean Controls provides a test utility for the KTA 323 This program and its source code is available as a free download from the Ocean Controls website http oceancontrols com au The source code is written in Visual Basic Express 2010 which is available free from Microsoft If the Address of the unit you wish to control is known put it in the Address text box if not use 0 for the address and any unit will respond Enter the COM Port number in the Port text box if this is not known it can be found by clicking list ports Once the device is communica
7. ASCII protocol that allows control from Windows Mac Linux using either USB virtual serial drivers or RS 485 The controller acts as a USB to RS 485 converter so multiple devices can be connected to one RS 485 bus allowing control of many devices from one USB port The web server operates on port 80 servicing web page requests on HTTP Figure 1 Connecting multiple controllers with a RS485 network RS 485 Network Computer KTA 323 KTA 323 KTA 323 The controller is based on the hardware of the Arduino physical computing controllers It can be programmed as a stand alone controller using the free open source Arduino environment Internally the KTA 323 is equivalent to an Arduino Duemelanouve fitted with the Arduino Ethernet Shield and a unique MAC address 29 Oct 2015 www oceancontrols com au 1 of 15 7CICEAN KTA 323 mini PLC CONTROLS Connections Table 1 Connections D Opto lsolated Digital Input x 5VO 5V Output for Sensors COM Opto lsolated Common V Power Supply Positive Input GND Ground USB USB B type connection to PC ANx Analog Input x D RS485 Data RS485 Data ETHERNET 10 100baseTx Ethernet NO Relay Normally Open Contact Relay Common Contact Specifications Power Supply V and COM 8 to 32V DC 3 1W XBee peripheral external 5V drain Analog Inputs 0 to 5 V 500 KQ effective resistance with no jumper installed 0 to 20 mA 250 Q effective resistance with jumper installed Opto lsol
8. ated Input 0 to 30 V 1 KQ effective resistance lt 2 5 VDC activation threshold 3750Vems isolation Relay Outputs SPST relays rated to 5 A resistive 250 VAC 30 VDC 5 V Auxiliary Supply 300 mA less any XBee peripheral 3 3V Auxillary Supply for XBee 50mA Jumper Settings The Analog inputs of the KTA 323 can be set for 0 to 5 VDC or 0 to 20 mA operation Opening the case and inserting jumper shunts in the positions J1 J2 or J3 will set the associated analog inputs to 0 to 20 mA operation Removing the shunts will set the analog inputs to 0 to 5 VDC operation When the jumper labeled AUTO is installed the board will reset each time a serial connection is made to the USB serial port This should only be installed when reprogramming via the Arduino Environment or the device will reset each time a serial connection is made to the unit Push Buttons Two mechanical push buttons are also provided on the board Pressing the RESET BUTTON manually resets the microcontroller This can be used to reprogram via the Arduino IDE for a small period after reset the microcontroller will be listening on the serial port for a new firmware upload 29 Oct 2015 www oceancontrols com au 2 of 15 7TCICEAN KTA 323 mini PLC CONTROLS The IP RESET button returns the Ethernet to the default IP settings if it is held down while the microcontroller resets either by power cycling or pressing the RESET BUTTON The Custom Arduino sketch shows how this
9. des an example of how to do this The hardware has been designed to accept XBee form factor expansion modules When plugged in these modules will be provided with 3 3V from an on board regulator up to 50mA The Arduino Tx D1 and Rx DO signals tie directly into the XBee DIN pin 3 and DOUT pin 2 signals allowing TTL UART communications between the microcontroller and expansion module D1 DIN DOUT DO Table 4 Arduino KTA 323 and AVR pin mapping KTA 323 IO AVR Port Pin KTA 323 IO AVR Port Pin Relay 1 Digital 2 PORTD 2 l Analog In 1 Analog 6 ADC6 Relay 2 Digital 3 PORTD 3 Analog In 2 Analog 7 ADC7 Relay 3 Digital 4 PORTD 4 Analog In 3 Analog 0 PORTC 0O Relay 4 Digital 5 PORTD 5 RX Data Digital 0 PORTD O Relay 5 Digital 6 PORTD 6 TX Data Digital 1 PORTD 1 Relay 6 Digital 7 PORTD 7 RS 485 TX Digital 19 PORTC 5 Control Analog 5 Pear osae poreo serss ouam Portez aye oga porer sPiwost ogam Portes romi ouas raag t PoRTer fsPrmso ogaiz Porte romz ial T6TAnaig PoRTe2 fsPrsek ogas Portes moms osama PORES A a S 29 Oct 2015 www oceancontrols com au 9of15 7CICEAN KTA 323 mini PLC CONTROLS KTA 323 Wiring Examples Inputs The opto isolated inputs allow for a range of connection possibilities They are bi directional meaning they activate if current is passed in either direction through their inputs One side of all of the opto s are tied together to the COM terminal The figures below sh
10. e controller meaning it will be preserved even after power is disconnect from the controller SB Set Baud Parameters from 1 to 10 are valid corresponding to values shown in Table 3 Table 3 Baud rate selection 1 1200 baud 6 19200 baud 2 2400 baud 7 28800 baud 3 4800 baud 8 38400 baud 4 9600 baud default 9 57600 baud 5 14400 baud 10 115200 baud The baud rate is saved to non volatile memory inside the controller meaning it will be preserved even after power is disconnect from the controller 29 Oct 2015 www oceancontrols com au 5 of 15 TC ICEAN KTA 323 mini PLC CONTROLS Web Server Figure 2 Served Web Pages Firefox f KTA 323 mini PLC Ocean Controls 192 168 1 100 demo form Ocean Controls KTA 323 mini PLC Relays Relay 1 On Off Relay 2 On Off Relay 3 On Off Relay 4 On Off Relay5 On Off Relay 6 On Off Relay 7 On Off Relay 8 On Off Opto Ins Opto In 1 OFF Opto In 2 OFF Opto In 3 OFF Opto In 4 OFF Analogs Analog 1 299 Analog 2 395 Analog 3 0 Submit Refresh 192 168 1 100 demo mobile C 192 168 1 100 demo mobilel c Digital Input 1 OFF Digital Input 2 ON Digital Input 3 OFF Digital Input 4 OFF Analog 1 745 Analog 2 277 Analog 3 960 Toggle Relay 5 i Retele ma t il h ms Go To Inputs The KTA 323 custom Arduino sketch contains code for servin
11. ed low to access the Ethernet controller or signaled high to signal to the EEPROM chip The custom sketch shows how the MAC address is retrieved and then loaded into the Ethernet controller The RS 485 transceiver is connected in parallel with the FTDI USB to Serial converter and ATMega328 UART pins This transceiver allows half duplex serial communication over 2 or 3 wires The transceiver requires a TX Control signal to enable the transmit or receive line driver When transmitting the TX Control line must be asserted driven high To receive the line must be left low 29 Oct 2015 www oceancontrols com au 8 of 15 7CICEAN KTA 323 mini PLC CONTROLS The board handles all 5V to 3 3V level shifting required Note that the expansion module takes over the Rx DO bus meaning that the controller will not be able to receive data from RS 485 or USB while a module is fitted The FT232RL USB to Serial converter provides a TXEN signal for RS 485 Transceivers When data is received from the USB port by the FT232RL it asserts the TX Control line putting the RS 485 transceiver in Transmit mode The serial data is then transmitted to the ATMega328 and onto the RS 485 network Using the RS 485 transceiver from custom Arduino code requires that your code drive the TX Control line high at the beginning of data transmission and returns it low at the end of the transmission The TX Control line is connected to Digital 19 The Ocean Controls sketch provi
12. g out a web page as well as a mobile optimised version The web server listens for HTTP requests on port 80 and serves out the configuration page when requested CPE Rem atcitch ss You can access one of four web pages note that the http is optional in most browsers http lt ip address gt demo Brings up a list of all of the IO on the KTA 323 with current statuses http lt ip address gt demo form 29 Oct 2015 www oceancontrols com au 6 of 15 7TCICEAN KTA 323 mini PLC CONTROLS Brings up a web form that shows the status of all of the IO on the KTA 323 and also allows the user to change the state of the relays http lt ip address gt demo mobile Brings up a list of the 8 Relays in a format optimised for small screens i e on a mobile phone The user can check the status and change the state of the relays http lt ip address gt demo mobilel Brings up a list of the digital and analog inputs in a mobile optimised format These two mobile websites are linked to each other with the button at the end of the page The IP settings are set automatically when plugged onto your local network To find out the IP address of the KTA 323 listen to the serial port using a terminal program On power up the IP address is printed Example Using Arduino IDE built in hyperterminal tools gt serial monitor E COM47 Ocean Controls KTA 323 v1 2 MAC address get to O 4 A5 035 62 C6 IP Address set to 192 168
13. ow how to interface a dry contact switch NPN and PNP type sensor Figure 4 Wiring a dry contact switch 4 a e mM lt t z Qo C z a i a amp un GND V DC Wiring a Switch Figure 5 Wiring an NPN type sensor Wiring an NPN type Sensor Figure 6 Wiring a PNP type sensor Wiring a PNP type Sensor 29 Oct 2015 www oceancontrols com au 10 of 15 7TCICEAN KTA 323 mini PLC CONTROLS Analog inputs can be wired for 0 to 5 V or 0 to 20 mA signals depending on the position of the input jumper inside the unit A regulated 5 VDC output is provided for the convenience of wiring analog sensors like potentiometers Figure 7 Wiring a potentiometer A N mM O Qa Oo U a N M Z Z Z L L lt A LN A of a 5 Wiring a potentiometer Figure 8 Wiring a 4 to 20 mA loop powered sensor Wiring a 4 20ma Loop powered Sensor Wiring Examples Outputs The relay outputs on the KTA 323 can be wired to DC or AC loads Figure 9 Wiring a basic DC load DC Source Inductive loads at high currents cause large voltage spikes when turned on or off and this can disrupt sensitive electronics For large inductive loads a snubber is recommended A DC load can be bypassed with a circulation 29 Oct 2015 www oceancontrols com au 11 of 15 7TCICEAN KTA 323 mini PLC CONTROLS diode An AC load requires an RC snubber across the relay contacts or load En
14. sure that diodes resistors and capacitors used for snubbers are correctly rated for the load and voltage being switched Figure 10 Wiring Snubber Circuits NO COM NO COM 47O 100nF DC Inductive AC Source Load Source Inductive Load 29 Oct 2015 www oceancontrols com au 12 of 15 7CICEAN KTA 323 mini PLC CONTROLS Hardware Revision History KTA 323v1 Prototype KTA 323v2 Initial Release Software Revision History The KTA 323 comes pre programmed as an Arduino with a sketch loaded The sketch can be upgraded using the Arduino IDE Software v1 0 Initial Release Software v1 1 Added a mobile optimised website Licensing The KTA 323 is derived from the Arduino Deumilanove and the schematics and CAD files are available under Creative Commons Attribution Share Alike licenses Contact info oceancontrols com au for more information 29 Oct 2015 www oceancontrols com au 13 of 15 Q EEAN KTA 323 mini PLC CONTROLS Shenzhen SEM Test Technology Co Ltd lr b UF Building A Hongwei Industrial Park Liusxian 2nd Road TEST Bao an Districl Shenzhen PRG 518101 q CERTIFICATE OF CONFORMITY P g Certificate No SEM13096095 ME The following product has been tested by SEM Test Compliance Service Co Ltd with the listing fE standards and found in conformity with the EC Council Directive of 2004 108 EC amp 2006 95 EC E a itis possible to use CE marking to demonstrate the conformity with
15. this EMC Directive a Report No STR13098328E L3 Applicant Ocean Controls F Address Factory 3 24 Wise Ave Seaford Victoria Australia Manufacturer Ocean Controls 4 Address Factory 3 24 Wise Ave Seaford Victoria Australia Description of Product Modbus TCP VO Module Model No KTA 323 v2 Trade Name Ocean Controls Test Standards EN 61000 6 1 2007 EN 61000 6 3 2007 41 2011 at The referred test report s show that the product complies with the essential requirements in the q above listed standards The applicant is authorized to use this certificate in connection with the EC g declaration of conformity according to Annex 1 of the Directive This certificate of conformity is based on a single evaluation of the submitted sample s of the above mentioned l s produci It does nol imply an assessment of the whale production and other relevant Directives have to be observed E lel Hi 755 5 5664 MIN Fis BG 735 3 bhi E mail ac mbest com en Website www scimieai coni en A ll s pe l Se a h i j pes l H i j i Zz e 5 E ee 29 Oct 2015 www oceancontrols com au 14 of 15 Q EEAN KTA 323 mini PLC CONTROLS a giti aiis aa es i 5 j ta i a E a i 5 om has i E s E VERIFICATION OF CONFORMITY According to FCC Part 15B gt Certificate No SEM13099591 j Responsible Party s Name Ocean Con
16. ting Relays can be turned on or off by clicking the buttons in the Relays group and the status of the Digital and Analog Inputs are shown in their relevant groups A web browser is also provided Navigate to the URL of the KTA 323 using the text box and the configuration page will be shown Using the Controller as an Arduino The KTA 323 as supplied is an Arduino compatible board with Arduino bootloader and a custom sketch loaded that responds to the serial commands and serves out the webpage listed above The source code of this is available from the Ocean Controls website and can be modified in the Arduino environment to suit your purpose The Arduino programming environment can be downloaded for Windows Mac OS X and Linux from http www arduino cc When using the KTA 323 with the Arduino Environment select Arduino Duemilenove w ATmega328 from the Tools gt Board menu and install the AUTO jumper on the PCB for ease of programming The Ethernet is based on the hardware of the Arduino Ethernet Shield and is fully compatible with the Ethernet library Electrically the KTA 323 can be thought of as an Arduino Duemilenove fitted with the Ethernet shield An on board EEPROM chip also holds a globally unique MAC address that gets loaded into the Ethernet controller on startup The EEPROM chip is accessed via SPI and shares an inverted SS Slave Select line with the Ethernet controller This pin is therefore either signal
17. trols Address Factory 3 24 Wise Ave Seaford Victoria Australia Manufacturer f Ocean Controls Address Factory 3 24 Wise Ave Seaford Victoria Australia 4 Description of Product Modbus TCP VO Module L Model No KTA 323 v2 Trade Name Ocean Controls A Report No o TR 13098329E 3 b Compliance With Part 15B of FCC Rules This device complies with Part 15 of the FCC Rules Operation is subject to the following two conditions 1 This device may not cause harmful interference and 2 This device must accept any interference received including interference thal may cause undesired operation aa Responsible Party Tested By j p Pn fe Shenzhen SEM Test Technology Co Ltd q VF Building A Hongwei Indusirial Park Liuxian A 2nd Road Bao an District Shenzhen P R C 4 i i Responsible Signature Issued By A L Names Tile i Name Title i j d Date Date of issuer The Certification of Verification shows thal the tested sample technically compliances with the FCC Part 15 The 4 certification applies to the tested sample above mentioned only and should not implied an assessment of the j whole Tel 86 744 4368 5 508 Fas Eh TAA A die E mmil sem semie emmen Website www semmitse cii 29 Oct 2015 www oceancontrols com au 15 of 15
18. uts 1 and 2 for the unit are on then 44 IS 0 will return 44 3 3 is 0011 in binary and each bit represents each input from 4 down to 1 RS Relay Status Command Much the same as the input status command this command will return the status of the relays If the parameter is between 1 and 8 then the unit will return with a O or 1 corresponding to that relay E g 44 RS 1 will return 44 1 if the relay is on or 44 0 if the relay is off If the parameter to this command is 0 then the unit will respond the same way as the input status command but return the status of the relays Al Analog Input Command The analog input command will read the status of the analog input defined by the parameter and return it as a value between 0 and 1023 E g 44 Al 1 will return 44 512 if the analog input is reading 50 SS System Status Software v1 1 and Later The system status will requires a parameter of 0 and returns the status of all relays and inputs 5 values each separated by a space The first value returned is the same as is returned for an RS 0 command the second value returned is the same as is returned for an IS 0 command and the last 3 values returned are the same as returned from and Al 0 command SA Set Address Addresses are valid from 01 99 A unit will only respond if its address in memory is the same as that of the command sent or if the address of the command sent is 00 The address is saved to non volatile memory inside th
Download Pdf Manuals
Related Search
Related Contents
Samsung HT-X625 Bruksanvisning pH+ POUDRE REMONTE LE pH Avaya Configuring Data Compression Services User's Manual JVC AV-21MF11SPF User's Manual PASCO Specialty & Mfg. OS-9256A User's Manual Radzubehör 4 Barco R9855938 projection lamp Manuale DVR H トランペットスピーカー WT-605 MULTIPAD USER MANUAL Copyright © All rights reserved.
Failed to retrieve file