Home

TIWAY Host Adapter Driver Help

image

Contents

1. 36 Macro tag address address is invalid given new macro definition Tag deactivated 36 Mask DAE otis BSS hor oe IAS Mee 29 Missing Ee e THT 29 Modem Setup nn 10 MRSW Termination Codes 45 N Network 10 O OVerrUi eras o de in AN A ANS Bn e idi ar UA a en 30 Overview ln A pills i sn SS bd E datus 5 P Barity feta aoe het ee een A NS EN 30 R Read Errors ii ds oO tt IDEM eases waa I OI M nd nent eas 32 S Secondary device device name gt no longer connected to network Reconnecting sec 32 ondary 4 5 Soo A Ecc Ld Mic ND A O E Eo a S Crece AA www kepware com TIWAY Host Adapter Driver Help s secondary Error Codes ooo wee Ee I Di pc D EU ON dew sia 44 Serial Communications 29 Sol nt ee mdr nes Dati RE AR ds 12 9S Bit Definitions aod ors daa ra na ete ste ec Ne pes hee a 13 Standard Data Type Addressing 13 T Mask Error Codes o oes om oso eet top s nda Hue cesi e iiec ee 45 The macro referenced in tag address address is no longer available Tag deactivated 37 U UHA Status amp Control Addressing 22 19 Unable to read block starting at lt address gt on device device name gt Secondary Error lt code
2. 34 UNILINK Macros tU URDDIUN ce LE a eee as RELE 21 W Word c 2e ses ne EESE O NS ANR Sr CR yen eU Merge 12 Write ENOS Lon onn uie cA runi dre D mee 34 X XML Error Messages o LEADER iue 40 XML Loading Error An existing link macro already has this macro number lt num gt Link 40 macro not loaded aaaaaaaa anaana aana a anaa aaan naaa aoaaa oaaao AAAI aAA D onana naonnana nan XML Loading Error An existing read macro already has this macro number lt num gt Link 40 macro not loaded etui eI o ee teur lt db eee XML Loading Error An existing read macro already has this macro number num Read 41 macro not loaded 7 tenti EEUU Ee A dona Bi R da tees XML Loading Error Invalid value found Link macro not loaded_ 41 XML Loading Error Invalid value found Read macro not loaded 41 XML Loading Error Link macro linked to missing read macro lt num gt Link macro not 42 A E A A A AAA XML Loading Error Read macro s missing from file Link macro s not loaded 42 www kepware com
3. 31 Address lt address gt is out of range for the specified device or register 28 Address Descriptions 13 Address Validation 2222 22222222 28 Addressing Options some eee eeu cine se esate al alte AOE ee ine ge at 10 Alarm Addressing ll nie A HR LM A EPA I a EM Drs 14 Array size is out of range for address lt address gt 28 Array support is not available for the specified address lt address gt 28 AVF Bit Definitions 20022000000 Re eR sese e rl llle e rli iii 15 B Booleanzcs sos cta eli Mus Lletres 12 C Communications error on lt channel name gt lt error mask gt 29 COMH does not exist neh ents EVITE 30 COMn is in use by another application 30 D Data Type lt type gt is not valid for device address lt address gt 29 Data Types Description 222222 ce ee ee cnn 12 Defining Link Macros cece ccc cece cece cece ccc cece RR RR erre leere 25 Defining Macross sous tino ore eeu a ee e se ei Vt ne die cobi c RES al as 23 WWW kepware com TIWAY Host Adapter Driver Help TIWAY Host Adapter Driver Help 4 Defining Read Macros vial PAIRS id 23
4. See Also Adapter Error Codes UNILink Macros Macro Addressing Unable to write to lt address gt on device lt device name gt Error Type Warning Possible Cause 1 The serial connection between the device and the Host PC is broken 2 The communications parameters for the serial connection are incorrect www kepware com 35 TIWAY Host Adapter Driver Help 3 The named device may have been assigned an incorrect Network ID Solution 1 Verify the cabling between the PC and the PLC device 2 Verify that the specified communications parameters match those of the device 3 Verify that the Network ID given to the named device matches that of the actual device Note This error will normally be preceded by a Device not responding message and data for this address will alread y be invalid in the client application The error occurs if the driver is not able to communicate with the adapter or secondary device See Also Device lt device name gt is not responding Unable to write tag lt address gt on device lt device name gt Adapter Error code Error Type Warning Possible Cause The adapter returned an error during the last write operation See Also Adapter Error Codes Unable to write tag lt address gt on device device name gt Framing Error Error Type Warning Possible Cause The adapter with device device name responded with incorrect data during the last write operat
5. address is invalid given new macro definition Tag deactivated 36 The macro referenced in tag address lt address gt is no longer available Tag deactivated 37 Unable to Read Macro with Source ID id macro lt num gt on device name gt Adapter Error lt code gt 37 Unable to Read Macro with Source ID id macro lt num gt on device name gt Adapter Error lt code gt Block deactivated o a ed a a in gS tiipr i sec beu E NAR VRBES 37 Unable to Read Macro with Source ID id macro lt num gt on device name gt Framing Error 38 Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt MRSW Error code 38 Unable to Read Macro with Source ID lt id gt macro lt num gt on lt device name gt MRSW Error lt code gt Block deactivated Sc ox E oto ea desees epo die o sn oe ox T ee ae Duns 38 Unable to Read Macro with Source ID id macro lt num gt on device name gt Secondary Error www kepware com TIWAY Host Adapter Driver Help Unable to Read Macro with Source ID id macro lt num gt on device name Secondary Error lt code gt Block deactivated 39 Unable to Read Macro with Source ID id macro lt num gt on device name gt Task Error lt code gt 39 Unabl
6. www kepware com TIWAY Host Adapter Driver Help 3 COMn is in use by another application 30 Err ropening COMn eese ek oe tee Sask sh Ned fede eos kk none sei eased HES 30 Unable to set comm parameters on COMn 30 Device Status Messages 31 Device lt device name gt is not responding 0000000000000000 00022A LDL DLL A222222 31 Device Specific Messages 31 Adapter reporting command timeout Error 0x001 Reconfiguring adapter 31 Adapter reporting HIU not initialized Error 0x100B Reconfiguring adapter 31 Adapter reporting unrecognized command Error 0x0084 Reconfiguring adapter 31 Host adapter not responding 32 Secondary device device name gt no longer connected to network Reconnecting secondary 32 Read Errors ico o AO E E AE et e tate tee dee ede 32 Unable to read block starting at lt address gt on device device name gt Adapter Error lt code gt 32 Unable to read block starting at lt address gt on device device name gt Adapter Error lt code gt Block deactivated cronica o or d
7. 23 Defining Read Macros nes 23 Defining Link Macros 25 Macro Enable Disable Status e 000 2cccc ccc cec cece cece cece eese e e lese err rre 26 Macro Response Status Word MRSW es eee sms Lee 26 Error Descriptions IRR s elles reser lle lll illl l 2222222 27 Address Validation e RR RR Rees le esee sees esu 28 Address lt address gt is out of range for the specified device or register 2 000000000000000000000 28 Array size is out of range for address lt address gt 28 Array support is not available for the specified address lt address gt 28 Data Type lt type gt is not valid for device address lt address gt 29 Device address lt address gt contains a syntax error 0000au 0000ean oeaan nanana nannan 29 Device address lt address gt is Read Only 02200 cee sre 29 Missing address 29 Serial Communications 29 Communications error on lt channel name gt lt error mask gt 0 29 COMn does not exist 2 2 22 oie eee eee eee eee eee dei eee nee e cen e E 30
8. Monitor rate of change alarm Monitor broken transmitter alarm Use PID position algorithm I O1 0 2 9 D 4 E 5 F 6 7 8 ae www kepware com TIWAY Host Adapter Driver Help TA E 10 11 Rever acting 14 Lock auto manual mode 19 Execute Special Function program on the setpoint ALO 20 Freeze error sum on output out of range 21 Ramp soak on the setpoint 22 Output is bipolar 23 Process variable is bipolar 24 Enable derivative gain limiting 25 Number of the SF program that will be executed 26 Number of the SF program that will be executed 27 Number of the SF program that will be executed 28 Number of the SF program that will be executed 29 Number of the SF program that will be executed Number of the SF program that will be executed Number of the SF program that will be executed 32 Number of the SF program that will be executed lt x s lt c u Ww i Note If the bit is set to 1 the option is enabled If the bit is set to 0 the option is disabled LRSF Bit Definitions Ramp Soak Status Data Element Format MSB LSB ABCD EFGH DKL MNOP LRSF Bit Description All programmed steps finished 1 yes Soak timer in wait state with PV out of range 1 yes Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Ramp soak step number currently executing Ramp soak step number currently executing Ramp soak step number currentl
9. On Exception v Repetitive v Automatically Enable Cancel Each of the variables shown above are described in more detail in the table below Note Each variable retains its definition and rules regardless of whether the macro is new or being edited RUES Default User Defined Driver specific number for identifying a macro which is used in referencing macro data via OPC Macro tag address This number must be unique among both Read and Link Macros Number Secondary Secondary device i e PLC address for which the given macro applies to Address Address Type The data element type to be read in the macro Starting The first data element to be read in the macro Address Ending The last data element to be read in the macro The difference between the starting and ending 1 Address addresses define the data block that is the macro The desired Source ID to store and execute this macro from Re Issue The minimum reissue delay time in milliseconds This specifies the time to wait before reis 1000ms Delay suing the macro command and only applies to repetitive macros Freeze Macro An exception occurs when the data retrieved from the secondary differs from the data stored in and the macro buffer If desired the macro can be configured to disable when such an exception Response On occurs This is termed freezing and can be accomplished by selecting the checkbox This feature Exception only applies to repetit
10. address specified in the given macro macro num Source ID does not exist in the device 2 The device could not perform the read operation Note The secondary device device name returned a task specific error during the last task read Read Loop Task 0x76 and Read Analog Alarm Task 0x79 are used to read loop and alarm tags that are not accessible through the Read Block NIM Primitive 0x20 This tag will be invalidated but will remain in the scan list See Also Task Error Codes UNILink Macros Macro Addressing www kepware com TIWAY Host Adapter Driver Help 4 Unable to Read Macro with Source ID lt id gt macro lt num gt on lt device name gt Task Error code Tag deactivated Error Type Warning Possible Cause 1 The address specified in the given macro macro num Source ID does not exist in the device 2 The device could not perform the read operation Note The secondary device device name returned a task specific error during the last task read Read Loop Task 0x76 and Read Analog Alarm Task 0x79 are used to read loop and alarm tags that are not accessible through the Read Block NIM Primitive 0x20 Based on the error the tag will be deactivated and removed from the scan list See Also Task Error Codes UNILink Macros Macro Addressing XML Error Messages The following error warning messages may be generated Click on the link for a description of the message XML Error Messa
11. allocated and assigned a buffer number in the UHA under the Source ID specified for that macro The size of the buffer depends on the request protocol packet size and the response protocol packet size since both are stored in the macro buffer 3 Then define the macros For each Read Macro the read request protocol packet will be assigned to the macro buffer that was previously assigned under the Source ID specified for that macro Referencing the Macro Referencing a macro means accessing the data gathered by the macro This is accomplished by requesting the macro response data given the macro buffer number assigned and Source ID specified for that macro The driver automatically performs this action when a client tag is referencing a macro Macro response data is essentially a block of data which may contain one or many elements The key to referencing this block from a client server tag standpoint is to first specify the macro of interest and then the specific address within the block For example if a macro with macro number 4 were defined to gather V1 to V10 then the macro data block would be a 10 word block If V7 were of interest simply request for V7 in macro 4 The addressing for such a request is 4V7 For more information refer to Macro Addressing Link Macros A Link Macro forwards or writes data originating from a Trigger Macro to a location on the same or different sec ondary on the network Throughout this help file the term Lin
12. array size that is too large for the address type or block size of the driver Solution Re enter the address in the client application to specify a smaller value for the array or a different starting point Array support is not available for the specified address lt address gt Error Type Warning Possible Cause www kepware com 2 TIWAY Host Adapter Driver Help A tag address that has been specified statically contains an array reference for an address type that doesn t sup port arrays Solution Re enter the address in the client application to remove the array reference or correct the address type Data Type lt type gt is not valid for device address lt address gt Error Type Warning Possible Cause A tag address that has been specified statically has been assigned an invalid data type Solution Modify the requested data type in the client application Device address lt address gt contains a syntax error Error Type Warning Possible Cause A tag address that has been specified statically contains one or more invalid characters Solution Re enter the address in the client application Device address lt address gt is Read Only Error Type Warning Possible Cause A tag address that has been specified statically has a requested access mode that is not compatible with what the device supports for that address Solution Change the access mode in the client application Missing addr
13. assume that the adapter was reset and needs to be recon figured 0x0085 An invalid field was received with the command code 0x0086 The length of the command frame received from the host was too long for the specified command code 0x0087 The length of the command frame received from the host was too short The minimum length for an NITP pro tocol frame is 11 bytes The minimum length for a BDLC protocol frame is 9 bytes 0x0088 The secondary device addressed in the command string is not connected to the TIWAY I network Recheck the address in the command string and the address of the secondary devices Then issue a CONNECT SEC ONDARY command or enable a macro that was previously defined to connect that secondary 0x0089 The colon that begins an NITP message frame was missing Correct the frame and retransmit it The character count field value did not match the number of characters received This could be caused by an error in the software driver In either case the application s software should retry the message at least 3 times If this same error returns all 3 times check for an error in the software driver 0x008C The checksum calculated by the adapter did not match the Error Checking Code or the Block Checksum field value Retry the message at least 3 times If the same error returns all 3 times check for an error in the soft ware driver 0x008D One of the ASCII characters between the beginning and ending delimiters was not in the NITP c
14. busy cannot complete the requested transaction 0x001D Comm error in HOLD mode transition to Run not allowed Ox001E Port Lockout is active 0x001F 0x0020 Spare 0x0021 I O configuration error too many points 0x0022 0x003F Spare 0x0040 0x005F Reserved for SF Loop 0x0060 0x00FF Spare MRSW Termination Codes 0x8000 The requested macro buffer is undefined 0x8001 The macro was disabled by either defining it as not enabled in the DEFINE MACRO command or explicitly disabling it with the ENABLE DISABLE MACRO command 0x8002 An exception occurred for this macro and it has been frozen www kepware com TIWAY Host Adapter Driver Help 46 0x8003 This non repetitive macro has completed execution 0x8004 This connect secondary macro has completed execution 0x8005 This disconnect secondary macro has completed execution 0x8010 This macro is disabled because the associated secondary is offline no exception occurred before it went offline so there is no new buffer data 0x8011 This macro is disabled because the associated secondary is offline the exception flag was set prior to being disabled 0x8012 This macro is disabled because the HIU was reinitialized the network was reset no exception occurred before being disabled This macro is disabled because the HIU was reinitialized the network was reset an exception occurred did occur before being disabled 0x8014 This macro is disabled because the HIU was disconnecte
15. deviation If set to O the loop is in negative error deviation PV High High Alarm If set to 1 the process variable is in high high alarm If set to 0 the process variable is not in high high alarm PV High Alarm If set to 1 the process variable is in high alarm If set to 0 the proc ess variable is not in high alarm F PV Low Alarm If set to 1 the process variable is in low alarm If set to 0 the process variable is not in low alarm G PV Low Low Alarm If set to 1 the process variable is in low low alarm If set to 0 the process variable is not in low low alarm 6 7 H 8 Yellow Band If set to 1 the loop deviation is in the yellow band If set to 0 the loop deviation is not in the yellow band Orange Band If set to 1 the loop deviation is in the orange band If set to 0 the loop deviation is not in the orange band the loop PV rate of change is not in alarm for 560 565 P Cs 0 the loop PV does not have a broken transmitter for 560 565 P Cs L 12 Loop Overrun If set to 1 the loop is overrunning its time allocation If set to O the loop is not overrunning its time allocation for 560 565 P Cs 13 Spare Set to 0 14 Spare Set to 0 15 Spare Set to 0 16 Spare Set to 0 LCF Bit Definitions Loop Control Flag Data Element Format ABCD EFGH DKL MNOP QRST UVWX YZab cdef 1 PV scale 20 offset Take square root of PV Monitor HIGH LOW alarm Monitor HIGH HIGH LOW LOW alarm Monitor deviation alarms
16. gt Block deactivated 33 Unable to read block starting at lt address gt on device lt device name gt Adapter Error 32 code eo uL E abor RBG Ss en RON Dota NER M A M pr ane A te ONS nu Unable to read block starting at lt address gt on device device name gt Adapter Error 33 lt code gt Block deactivated cnn nn cnc Unable to read block starting at lt address gt on device device name gt Framing Error 33 Unable to read block starting at lt address gt on device device name Secondary Error 33 code vor e DR VR aram t tuna tuper tudo TES E Lue Unable to read macro with source id lt id gt macro num on device name gt Adapter 37 Error lt code gt Block deactivated 2 2 o oo Unable to read macro with source id lt id gt macro lt num gt on device name gt Framing 38 pe RCM Unable to read macro with source id lt id gt macro num on device name MRSW 38 Ermorscode 4o Ce iota bos carotte Dehua Ste na Pu A ai e ouest Unable to read macro with source id id macro num on device name MRSW 38 Error lt code gt Block deactivated o oooooooocccccccccccccccccc eee Unable to read macro with source id id macro num on device name gt Secondary 39 O AAA EE uS me eode rette dace sade adeo o De asians Get D Unable to read macro with source id lt id gt macro num on device name gt Seconda
17. new Host Adapter should be con figured as an HIU Having multiple Network Managers on a network will cause erratic behavior it may also lose data because the each unit will struggle for control Note For a complete description of the Host Adapter unit and the various operating modes refer to the TIWAY I UNILINK Host Adapter User s Manual www kepware com TIWAY Host Adapter Driver Help TIWAY NETWORK Typical Multiple Host Network RS232 R5423 Host RS232 RS423 Host Interface Cable Interface Cable TIWAY TIWAY REOR NETWORK BE LINILINK UNILINK HOST HOST ADAPTER ADAPTER MHILI HILI TIVA Y NETWORK Secondary Devices www kepware com TIWAY Host Adapter Driver Help Host Adapter Setup The driver uses the Host Adapter unit to gain access to the TIWAY network During a session the driver may need to initialize configure and reset the adapter Some of the adapter settings must be set using the unit s DIP switches whereas other settings can be made through the Channel Properties The Host Adapter switch settings that must be configured are as follows 1 NITP Protocol Selection Switches 1 of DIP switch 1 2 Host Port Baud Rate Switches 5 to 8 of DIP switch 2 The DIP switch baud rate should match the baud rate that was selected in the Communications tab of Channel Properties This is the baud rate the driver will use to communicate with the adapter over the RS232 link Note For informatio
18. source it s best to have few macros per source For instance if there are a total 32 macros to be defined assign one macro to a source This utilizes all sources available but each macro will have max imum performance Read Macros Read Macros have two purposes to read a block of data and to make it available for access Throughout this help file this will be called a standard Read Macro Macros are the store in store and forward for macro linking In linking the Read Macro gathers the data that the link will take and forward or write to another memory location This is called a Trigger Macro With this in mind a Read Macro can be defined for two reasons or one depending on the application For more information on linking refer to Link Macros There are three essential steps for using Read Macros defining downloading and referencing Defining the Macro Read Macros are defined via a Graphical User Interface For more information refer to Defining Macros Downloading the Macro Read Macros are automatically downloaded Any time a Read Macro definition is added edited or removed the driver will automatically reinitialize the macro For more information refer to the UNILINK Host Adapter User Man ual 1 Tostart allocate the Source IDs Each Source ID referenced in the macro definitions will be allocated in the UHA All others will be de allocated 2 Next allocate macro Storage Buffers For each Read Macro a buffer will be
19. use Select a link from the following list to obtain specific address information for the model of interest Standard Data Type Addressing Alarm Addressing Loop Addressing UHA Status amp Control Addressing Macro Addressing Standard Data Type Addressing The driver supports the following addresses for use with a Series 500 NIM only The default data type for each address type is shown in bold Note For more information on applicable PLCs refer to device specific documentation Address Type Format Range Data Types Access Discrete Inputs X address 1 65536 Boolean Read Write Discrete Outputs Y address 1 65536 Boolean Read Write Word Inputs WX lt address gt 1 65536 Short Word Long DWord Float Read Write WX lt address gt lt bit gt Bit 1 16 Boolean Read Write Word Outputs WY address 1 65536 Short Word Long DWord Float Read Write WY address bit Bit 1 16 Boolean Read Write Discrete Control C address 1 65536 Boolean Read Write Word Memory V lt address gt 1 65536 Short Word Long DWord Float Read Write V lt address gt lt bit gt Bit 1 16 Boolean Read Write Constant Memory K lt address gt 1 65536 Short Word Long DWord Float Read Only K lt address gt lt bit gt Bit 1 16 Boolean Read Only Secondary System Status SS lt address gt 1 65536 Long DWord Float Read Only SS lt address gt lt bit gt Bit 1 32 Boolean Read Only SS Bit Definitions Timer Counter Prese
20. 32 C media The media for either ports or channels must be the same 0x2009 The device addressed in the command string was not an HIU 0x200A There is not enough memory for the number of secondary devices specified with the maximum secondary address parameter The maximum secondary address defaults to 254 If this many devices will not be used memory space can be saved by specifying a value equal to the number of devices in the TIWAY I network plus a few for growth 0x2010 Users tried to allocate a Source ID with a value of 0 The valid range for Source IDs is 1 to 255 0x2011 Users already allocated 32 Source IDs A Source ID that has already been allocated must be used or a Source ID s resources must be cleared to begin another 0x2012 The Source ID specified in the command string has not been allocated Check the Source ID value and use the ALLOCATE Source ID command to allocate it if necessary 0x2013 The macro type specified in the command string is invalid The valid macro types are 1 2 and 3 www kepware com TIWAY Host Adapter Driver Help 0x2014 0x2015 0x2016 0x2017 0x2018 0x2019 0x201A 0x201B 0x201C 0x201D 0x201E 0x201F 0x2020 0x2021 0x2023 0x2024 0x3001 0x4001 0x4002 0x4003 0x4004 The macro command buffer is too small for the macro specified with the DEFINE MACRO command Users will need to shorten the macro data or allocated another macro buffer with sufficient size Remember tha
21. Device lt device name gt is not responding 31 Device address address contains a syntax error 29 Device address lt address gt is Read Only 29 Device Setup 522 OS FS cine a See CE CL gece ame ae 10 Device Specific Messages 22222222222 31 Device Status Messages 31 D A Te jo FRERE betae bon tue Ha soe mobbed agement O 12 E Error Cod6s oce s ee i dui cts Coetus Nr EUM eta A UNA TIE Cer o ne ei 42 Error Descriptions 27 Error opening COMI tcc tock pee Nn dd ei i esu ur e o up 30 F dr dee cR EAM I RT RE REE 12 Framing oi AE S NAM D MUERE NEEE Imt 30 H Host adapter not responding e RR Reese seen 32 Host Adapter Setup cete I RIDERE RRBL DA EI den nee eau 42 7 L LCF Bit Definitions lt oL RR CO Oe tds 18 Longdo eccentric E ste 12 Loop Addressing 2 Sk tese tous ue San ate A HA ee Mee aie d a cee Lf 16 Loop V Flag Bit Deiinitions esses 18 ERSF Bit Definitions 2 22 SD D bui Tee c eid n OD NR e S 19 www kepware com o TIWAY Host Adapter Driver Help M Macro Addressing A A ta 20 Macro Enable Disable Status 26 Macro Response Status Word MRSW 26 Macro Specific Messages
22. General Communications Modem Network Interface HIU Asynchronous Half Duplex NRZ 9600 1000 Network Manager The Network Manager settings are only available when the specified adapter is MHIU Its parameters will be dis abled if the Use Hardware Default Settings check box is enabled www kepware com 9 TIWAY Host Adapter Driver Help r Channel Properties General Communications Modem Network Interface Write Optimizations Adapter HIU Network Manager Channel A ChannelB Macro Setup Buffers to allocate new HIUs 2 Timeouts 14 40 40 10000 2 d Note If the adapter powers up resets or successfully processes the Configure Adapter command the driver will issue a Configure Network Manager Command 30 The Network Manager Channel A and Channel B param eters will be sent along with this command The driver will send the command without any parameters if the default settings were chosen Important Channel B parameters are only available for editing when Enable Auto Redundant Media is selected Tested DIP Switch Settings The following switch settings have been tested and found to work with this driver DIP Switch i iub z4down 5 6up 7down Je up o down 10wp DIP Switch 2 1up 2 4down 5 6up 7down 8up 9 10down wa www kepware com TIWAY Host Adapter Driver Help Device Setup Supported Devices TIWAY secondary device C
23. TIWAY Host Adapter Driver Help O 2012 Kepware Technologies 2 TIWAY Host Adapter Driver Help Table of Contents Table oT Contents de id o Us ate o ss ee ug 2 TIWAY Host Adapter Driver Help 5 Overview lor o DL cec eee NU odii a uc ded tene dette ne D DOE Eni bI 5 Host Adapter Setup 7 Device Setup 10 aoe CILLEI AT o 10 Addressing Options 10 Data Types Descnption 0a rr0 onor ororo r arron oron nnroonnnonn 12 Address Descriptions 13 Standard Data Type Addressing 13 EEXSIPDIDIIDDDU MM 13 Alarm Addressing 14 AVF Bit Definitions e e cnn 15 ACF Bit D finitions uoi Soaked sees tase MERCED ta EET 16 Loop Addressing dina AS tho Mot obo AU e Mist Ave eati a dd LN as 16 Loop V Flag Bit Definitions 18 LCF Bit Definitions 20 A AE de 18 LRSF Bit Definitions senno cto lt etus 19 UHA Status amp Control Addressing 19 Macro Addressing roi RED REG UII ER RR aces ea ee Y x iR Re 20 UNILink Macros ctr Al e ene et Se 21 Defining Macros
24. Verify that the secondary device is connected and on line Verify the cabling between the PC and the host adapter Increase the Request Timeout setting so that the entire response can be handled Verify that the baud rate selected matches that of the host adapter Make sure that odd parity and 7 data bits are selected Make sure that RTS DTR flow control is selected O Ln E WU KM HG Device Specific Messages The following error warning messages may be generated Click on the link for a description of the message Device Specific Messages Adapter reporting command timeout Error 0x001 Reconfiguring adapter Adapter reporting HIU not initialized Error Ox100B Reconfiguring adapter Adapter reporting unrecognized command Error 0x0084 Reconfiguring adapter Host adapter not responding Secondary device device name gt no longer connected to network Reconnecting secondary Adapter reporting command timeout Error 0x001 Reconfiguring adapter This error will occur after a request times out in the HIU The Network Manager possibly went offline due to a mal function or its maximum poll delay is longer than the host command timeout Ensure that the maximum poll delay is shorter than the host command timeout When this condition is encountered the driver will perform a soft reset of the adapter to properly reconfigure it The command timeout is on the order of 30 60 seconds If the problem is remedied the next occurrence
25. WAY I HDLC error occurred with the addressed secondary that could not be corrected Reset the sec ondary device The wrong secondary device address was returned to the HIU in the response Reissue the command If this error continues to occur users will need to reset the Network Manager which also resets the TIWAY I net work 0x0006 The command string tried to use secondary address 00 Retransmit the command with the correct sec ondary address 0x0008 The NM could not process the stream of bits from the secondary fast enough Resetting the adapter with the NM function should clear this problem www kepware com EN TIWAY Host Adapter Driver Help 0x0009 The adapter continued to receive an incorrect HDLC Block Checksum from the secondary after the maximum number of retries 0x000A The secondary timed out in the middle of the message 0x000B The secondary device timed out because the maximum poll time expired The value for the maximum poll time may need to be adjusted Ox000E An uneven number of bytes was received from the secondary 0x0010 Lost Data Carrier Detect DCD from the TIWAY I interface port s 0x0011 Lost Clear To Send CTS from the TIWAY I interface port s 0x0084 The command processor found an unrecognized command code in the command string This also indicates that the command code is not valid for the currently configured operating mode If this error is received after issuing one of the Extended HIU or NM commands
26. Write Alarm LSW of Alarm C Flags ACFL lt alarm gt 1 256 Short Word Read Write Alarm ACK Flag AACK lt alarm gt 1 256 Short Word Read Only Addresses of this type may be used as arrays To specify an array address append rows cols to the end of an address If only cols is specified rows will default to 1 The maximum array size which is determined by the multiplication of rows and columns is 64 Words Note The maximum array size for SS and alarm types is specified in DWords thus the maximum array size is 32 DWords Furthermore the actual number of addresses available for each type depends on the configuration of the PLC If the driver finds that an address is not present in the device at Runtime the driver will post an error message and remove the tag from its scan list AVF Bit Definitions Analog Alarm Variable Flag Data Element Format MSB LSB ABCD EFGH DKL MNOP Element AVF bit Bescption ass B B Disable alarm Analog variable in high high alarm Analog variable in high alarm Analog variable in low alarm Analog variable in low low alarm Analog variable in yellow deviation alarm Analog variable in orange deviation alarm Analog variable in rate of change alarm Analog variable in broken transmitter alarm Analog alarm is overrunning www kepware com TIWAY Host Adapter Driver Help Not used set to 0 mo 13 Not used set to O 14 Not used set to 0 15 No
27. Write Loop MSW of Loop C Flags LCFH lt loop gt 1 256 Short Word Read Write Loop LSW of Loop C Flags LCFL lt loop gt 1 256 Short Word Read Write Loop Derivative Gain Limit Coef LKD lt loop gt 1 256 Short Word Read Write Loop Ramp Soak Step Number LRSN lt loop gt 1 256 Short Word Read Write Loop Alarm Ack Flags LACK lt loop gt 1 256 Short Word Read Only www kepware com TIWAY Host Adapter Driver Help Addresses of this type may be used as arrays To specify an array address append rows cols to the end of an address If only cols is specified rows will default to 1 The maximum array size which is determined by the multiplication of rows and columns is 64 Words Note The maximum array size for SS and alarm types is specified in DWords thus the maximum array size is 32 DWords Furthermore the actual number of addresses available for each type depends on the configuration of the PLC If the driver finds that an address is not present in the device at Runtime the driver will post an error message and remove the tag from its scan list Loop V Flag Bit Definitions Loop Variable Flag Data Element Format MSB LSB ABCD EFGH DKL MNOP pu A Loop Mode If set to 1 the loop is in auto mode If set to O the loop is in manual mode 1 is i A isi B 2 Loop Cascade If set to 1 the loop is in closed cascade If set to O the loop is in open cascade 3 C Error Deviation If set to 1 the loop is in positive error
28. ad tag lt address gt on device device name gt Task Error lt code gt Tag deactivated Unable to read block starting at lt address gt on device lt device name gt Adapter Error code Error Type Warning Possible Cause 1 The address does not exist in the device 2 The device could not perform the read operation Solution 1 Check to make sure that the address exists in device 2 The adapter returned an error during the last block read All tags in this block will be invalidated but will remain in the scan list See Also Adapter Error Codes www kepware com 33 TIWAY Host Adapter Driver Help Unable to read block starting at lt address gt on device lt device name gt Adapter Error lt code gt Block deactivated Error Type Warning Possible Cause 1 The address does not exist in the device 2 The device could not perform the read operation Note The adapter returned an error during the last block read Based on the error all tags in this block will be deac tivated removed from the scan list See Also Adapter Error Codes Unable to read block starting at lt address gt on device lt device name gt Fram ing Error Error Type Warning Possible Cause The adapter with device lt device name gt responded with incorrect data possibly due to transmission errors or device malfunction Solution 1 Place adapter on less noisy network if that is the case 2 Incr
29. ant to reiterate that macro memory is Read Only Linked macros are inherently Read Write store and forward but the act of writing is done transparently without user intervention In fact the memory of the Action Macro write portion is neither readable nor writable from an OPC tag standpoint and so cannot be addressed See Also UNILink Macros 1 Tostart define the macro For more information refer to Defining Macros 2 Next create an OPC tag that references the macros statically or dynamically The syntax is Macro number memory type address where e This item signifies that the following tag is a macro tag e Macro number This item is the user defined macro number as entered during macro cre ation e Memory type This item is the memory type of the given macro which must match the mem ory type entered during macro creation e Address This item is the address of interest which must fall in the address range entered during macro creation Macro Data Addressing Examples Example One Defined Macro Macro Number SeurceID Secondary ID V200 V200 Macro Reference Address Valid Explanation 2V200 False Incorrect macro number 3V200 True N A 3V201 False Address out of range Example Two Defined Macro Macro Number Source ID Secondary ID 18 1 2 X17 X32 Macro Reference Address Valia Explanation 1X20 False Incorrect macro number 18X20 True N A 18V20 False Inc
30. arameters will be disabled because they are not needed e Host Configuration This parameter specifies the host configuration Options include MHIU HIU MHIU EHA Mode or HIU EHA Mode It is recommended that MHIU be selected when the adapter is configured for MHIU Selecting HIU when the adapter is configured for MHIU will result in faulty data Note If the adapter is powered up reset or the Configure Adapter command is successfully processed the driver will issue a Configure HIU Command 11 along with the parameters specified in the HIU tab of Channel Properties If the default settings are used the driver will send the command without any param eters If the EHA mode is the selected adapter the Configure Adapter command will not be sent e Macro Storage Memory This parameter specifies the macro storage memory Options include Default 16 KB 24 KB and Max Available The default setting is Default e Maximum Secondary Address This parameter specifies the maximum secondary address for the TIWAY network that will be controlled by the Host Adapter The valid range is 1 to 254 The default setting is 254 e Secondary Address This parameter specifies the secondary address for the TIWAY network that will be controlled by the Host Adapter The default setting is 1 HIU This tab will be disabled if the Use Hardware Defaults check box is enabled Channel Properties Network Manager Channel A ChannelB Macro Setup
31. ble Tag deactivated Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Adapter Error code Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Adapter Error code Block deactivated Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Framing Error Unable to Read Macro with Source ID lt id gt macro lt num gt on device name MRSW Error code Unable to Read Macro with Source ID lt id gt macro lt num gt on device name MRSW Error code Block deactivated www kepware com TIWAY Host Adapter Driver Help 28 Unable to Read Macro with Source ID lt id gt macro lt num gt on lt device name gt Secondary Error code Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Secondary Error code Block deactivated Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Task Error code Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Task Error code Tag deactivated XML Error Messages XML Loading Error An existing link macro already has this macro number lt num gt Link macro not loaded XML Loading Error An existing read macro already has this macro number lt num gt Link macro not loaded XML Loading Err
32. d from the network no exception occurred before being disabled 0x8015 This macro is disabled because the HIU was disconnected from the network an exception occurred before being disabled 0x8016 This macro is disabled because another direct command or macro was issued to disconnect the sec ondary from the network 0x8017 This macro is disabled because the host issued a disconnect to its HIU and an exception occurred prior to the disconnect 0x8020 The macro response was too large to fit into the buffer 0x8021 The wrong secondary address was in the macro response Received the wrong TIWAY I Primitive in the link action response The secondary device should have returned a response for either Primitive 20 or Primitive AO 0x8024 Received the wrong TIWAY I Primitive in the link trigger response The secondary device should have returned a response for either Primitive 30 or Primitive BO www kepware com Index A ACE Bit Definitions ce sco ee v tete eee oq 16 Adapter Error Codes uiv rove Nato Ic DU CI See ne 42 Adapter reporting command timeout Error 0x001 Reconfiguring adapter 31 Adapter reporting HIU not initialized Error 0x100B Reconfiguring adapter 31 Adapter reporting macro link error Error 0x2020 Trigger macro cannot be configured for 36 auto enable 7 5 2 eee c ee Lo mL me Late ud E UM Adapter reporting unrecognized command Error 0x0084 Reconfiguring adapter
33. device name gt Adapter Error code Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Adapter Error code Block deactivated Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Framing Error Unable to Read Macro with Source ID lt id gt macro lt num gt on device name MRSW Error code Unable to Read Macro with Source ID lt id gt macro lt num gt on device name MRSW Error code Block deactivated Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Secondary Error code Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Secondary Error code Block deactivated Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Task Error code Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Task Error code Tag deactivated Adapter reporting macro link error Error 0x2020 Trigger Macro cannot be con figured for auto enable Error Type Warning Possible Cause It is invalid to configure a Trigger Macro to be auto enabled Trigger Macros must be explicitly enabled Solution Deselect Automatically Enable in the Link Macro definition See Also UNILink Macros Macro tag address lt address gt is invalid given new macro d
34. e scan list Unable to Read Macro with Source ID lt id gt macro lt num gt on lt device name gt MRSW Error lt code gt Error Type Warning Possible Cause 1 Secondary specified in macro is offline 2 HIU was reinitialized 3 HIU was disconnected from the network Note The adapter returned a Termination Code in the Macro Response Status Word during the last gather macro response for the given macro The macro will be disabled in the UHA All tags in this macro block will be inval idated but will remain in the scan list See Also MRSW Termination Codes UNILink Macros Macro Addressing Macro Response Status Word MRSW Unable to Read Macro with Source ID lt id gt macro lt num gt on lt device name gt MRSW Error lt code gt Block deactivated Error Type Warning Possible Cause 1 Secondary specified in macro is offline 2 HIU was reinitialized 3 HIU was disconnected from the network Note The adapter returned a Termination Code in the Macro Response Status Word during the last gather macro response for the given macro The macro will be disabled in the UHA Based on the error all tags in this macro block will be deactivated and removed from the scan list See Also MRSW Termination Codes UNILink Macros Macro Addressing Macro Response Status Word MRSW www kepware com TIWAY Host Adapter Driver Help Unable to Read Macro with Source ID lt id gt macro
35. e to Read Macro with Source ID lt id gt macro lt num gt on device name gt Task Error lt code gt Tag deactivated A A tec pert Do 40 XML Error Messages eoo tL cias 40 XML Loading Error An existing link macro already has this macro number lt num gt Link macro not ETE AAA te ON ec BE oS Dt EOM Mp AE 40 XML Loading Error An existing read macro already has this macro number lt num gt Link macro not ERI cc cxx cc 40 XML Loading Error An existing read macro already has this macro number lt num gt Read macro not IO Ad Ope ood A Le IM Cost lent E uet NU ad 41 XML Loading Error Invalid value found Link macro not loaded l a aaaaa00a000aa00aaaaaannnannnn 41 XML Loading Error Invalid value found Read macro not loaded 41 XML Loading Error Link macro linked to missing read macro lt num gt Link macro not loaded 42 XML Loading Error Read macro s missing from file Link macro s not loaded 42 Error Codes ces erasa A tos E ca apetece 42 Adapter ART 42 Secondary Error Codes Lade e deu Lee te d bu A be TR 44 Task Error Codes s Lr I PODER I DOR eto 45 MRSW Termination Codes 45 Index roue so 2 RD ecu o Lec is co tes ode te oet 47 www kepware com 5 TIWAY Host Adapter Driver Help TIWAY Host Adapter Driver Help Help version 1 021 CONTENTS Overview What is the TIWAY Host Adapter Driver Host Adapter S
36. ead macros or link macros are missing macro numbers Solution Verify that each read macro and link macro has a unique macro number in the XML file See Also Adapter Error Codes UNILink Macros Macro Addressing XML Loading Error An existing read macro already has this macro number num Read macro not loaded Error Type Warning Possible Cause 1 The XML file contains two or more read macros with the same macro number ReadMacroNumber 2 One or more read macros are missing macro numbers Solution Verify that each read macro has a unique macro number in the XML file See Also Adapter Error Codes UNILink Macros Macro Addressing XML Loading Error Invalid value found Link macro not loaded Error Type Warning Possible Cause The link macro in the XML file contains invalid values Solution Verify that the link macro has valid values See Also Adapter Error Codes UNILink Macros Macro Addressing XML Loading Error Invalid value found Read macro not loaded Error Type Warning Possible Cause 1 The read macro s starting address StartingAddress is greater than its ending address EndingAddress in the XML file 2 The read macro contains invalid values in the XML file Solution 1 Make sure that the read macro s starting address is less than its ending address 2 Verify that the read macro has valid values See Also Adapter Error Codes UNILink Macros Macro Addressing www kep
37. ease the request timeout Note All tags in this block will be invalidated but will remain in the scan list Unable to read block starting at lt address gt on device lt device name gt Sec ondary Error lt code gt Error Type Warning Possible Cause 1 The address does not exist in the device 2 The device could not perform the read operation Note The secondary device lt device name gt returned an error during the last block read All tags in this block will be invalidated but will remain in the scan list See Also Secondary Error Codes Unable to read block starting at lt address gt on device lt device name gt Sec ondary Error lt code gt Block deactivated Error Type Warning Possible Cause 1 The address does not exist in the device 2 The device could not perform the read operation Note The secondary device lt device name gt returned an error during the last block read Based on the error all tags in this block will be deactivated removed from the scan list www kepware com TIWAY Host Adapter Driver Help a See Also Secondary Error Codes Unable to read tag lt address gt on device device name gt Task Error lt code gt Error Type Warning Possible Cause 1 The address does not exist in the device 2 The device could not perform the read operation Note The secondary device lt device name gt returned a task specific error during the last ta
38. efinition Tag deac tivated Error Type Warning Possible Cause The macro definition for the given macro tag has been changed The address type address range or a com bination of the two have been edited such that the address address is no longer valid Solution 1 Change the address type address range so the address address is valid 2 Remove the macro tag from the client This macro tag will be deactivated removed from the scan list See Also UNILink Macros Macro Addressing www kepware com TIWAY Host Adapter Driver Help The macro referenced in tag address lt address gt is no longer available Tag deactivated Error Type Warning Possible Cause The macro definition for the given macro tag has been removed or macro number changed As a result the address address is no longer valid Solution 1 Re add the macro definition 2 Change the macro number so the address address is valid 3 Remove this macro tag from the client This macro tag will be deactivated removed from the scan list See Also UNILink Macros Macro Addressing Unable to Read Macro with Source ID lt id gt macro lt num gt on device name gt Adapter Error lt code gt Error Type Warning Possible Cause 1 The address specified in the given macro macro num Source ID does not exist in the device 2 The device could not perform the read operation Solution Check to make sure that the address
39. efinitions Loop Error LERR lt loop gt 1 256 Float Read Only Loop Bias LMX lt loop gt 1 256 Float Read Write Loop High High Alarm Limit LHHA lt loop gt 1 256 Float Read Write Loop Low Low Alarm Limit LLLA lt loop gt 1 256 Float Read Write Loop Rate of Change Alarm LRCA lt loop gt 1 256 Float Read Write Loop Setpoint High Limit LSPH lt loop gt 1 256 Float Read Write Loop Setpoint Low Limit LSPL lt loop gt Read Write Loop Alarm Deadband LADB lt loop gt 1 256 Float Read Write Loop Raw High Alarm Limit LHAR lt loop gt 1 256 Short Word Read Write Loop Raw Low Alarm Limit LLAR lt loop gt 1 256 Short Word Read Write Loop Raw Process Variable LPVR lt loop gt 1 256 Short Word Read Write Loop Raw Orange Deviation LODAR lt loop gt 1 256 Short Word Read Write Loop Raw Yellow Deviation LYDAR lt loop gt 1 256 Short Word Read Write Loop Raw Output LMNR lt loop gt 1 256 Short Word Read Write Loop Raw Setpoint LSPR lt loop gt 1 256 Short Word Read Write Loop Raw Error LERRR lt loop gt 1 256 Short Word Read Only Loop Raw High High Alarm Limit LHHAR lt loop gt 1 256 Short Word Read Write Loop Raw Low Low Alarm Limit LLLAR lt loop gt 1 256 Short Word Read Write Loop Raw Alarm Deadband LADBR lt loop gt 1 256 Short Word Read Write Loop Raw Bias LMXR lt loop gt 1 256 Short Word Read Write Loop Raw Setpoint Low Limit LSPLR lt loop gt 1 256 Short Word Read Write Loop Raw Setpoint High Limit LSPHR lt loop gt 1 256 Short Word Read
40. equested data not found 0x0004 Illegal task code request such as the task code is not supported 0x0005 Request exceeds program memory size ladder logic 0x0006 Diagnostic fail upon power up 0x0007 Fatal error detected 0x0008 Key lock protect error 0x0009 Incorrect amount of data sent with request 0x000A Illegal request in current operational mode 0x000B Network was not deleted 0x000C Attempted write operation did not verify 0x000D Illegal number of ASCII characters received Ox000E Illegal write to program memory non volatile Ox000F Data not inserted 0x0010 Data not written 0x0011 Invalid data sent with the command 0x0012 Invalid operation with the Local Remote Mode 0x0013 The Store and Forward Buffer is busy 0x0014 No response from the Special Function Module Ox15XXXX Illegal instruction found in program memory on a program in Run transition Address of error returned in XXXX by some series 500 P Cs 0x0016 Attempted write to a protected variable such as TCC TCP 0x0017 No response from P C such as single scan not performed 0x0018 Memory configuration error Requested memory size exceeds total available memory 0x0019 Memory configuration error Requested memory size is not multiple of block allocation size 0x001A Memory configuration error Requested memory size is less than minimum defined value 0x001B Memory configuration error Requested memory size is larger than maximum defined value 0x001C P C
41. ers specified in Option 9 in the CONFIGURE NETWORK MANAGER command is not zero The background monitor will bring the HIU online with the default number of buffers The NM buffers have already been allocated The macro command buffer has been allocated but not defined Users cannot initialize the macro response buffer until the macro has been defined A message length error occurred in a message between the NM and the HIU Users should reset the NM if this error continues An HIU to NM message command was out of range Users should reset the HIU and or the NM if this error continues An HIU to NM message address field was out of range Users should reset the HIU and or the NM if this error continues A broadcast mode error occurred in an HIU to NM message Users should reset the HIU and or the NM if this error continues The secondary response included an incorrect HDLC field Secondary Error Codes 0x0013 Number of data bytes in the requested blocks or records exceeds the maximum number of bytes allowed by the primitive www kepware com 4 TIWAY Host Adapter Driver Help EE ES 0x001D Number of locations to access equals zero 0x0023 Number of data blocks defined in a data acquisition record exceeds the maximum supported 0x80DD Exception generated in the attached device is not identified Task Error Codes Description 0x0001 Reset Current Transaction 0x0002 Address out of range other than ladder logic 0x0003 R
42. ess Error Type Warning Possible Cause A tag address that has been specified statically has no length Solution Re enter the address in the client application Serial Communications The following error warning messages may be generated Click on the link for a description of the message Serial Communications Communications error on lt channel name gt lt error mask gt COMn does not exist COMn is in use by another application Error opening COMn Unable to set comm parameters on COMn Communications error on lt channel name gt lt error mask gt Error Type www kepware com TIWAY Host Adapter Driver Help 30 Serious Error Mask Definitions B Hardware break detected F Framing error E UO error O Character buffer overrun R RX buffer overrun P Received byte parity error T TX buffer full Possible Cause 1 The serial connection between the host adapter and the Host PC is bad 2 The communications parameters for the serial connection are incorrect Solution 1 Verify the cabling between the PC and the host adapter 2 Verify that the specified communications parameters match those of the host adapter COMn does not exist Error Type Fatal Possible Cause The specified COM port is not present on the target computer Solution Verify that the proper COM port has been selected COMn is in use by another application Error Type Fatal Possible Cause The
43. etup How do I configure the Host Adapter that the driver will be using Device Setup How do I configure a device for use with this driver Data Types Description What data types does this driver support UNILink Macros How do I create and use macros with this driver Address Descriptions How do I address a data location on a TI secondary device Error Descriptions What error messages does the driver produce Error Codes What error codes do the adapter secondary devices return Overview The TIWAY Host Adapter Driver provides an easy and reliable way to connect TIWAY Host Adapter devices to OPC Client applications including HMI SCADA Historian MES ERP and countless custom applications It is intended for use with a TIWAY 1 Host Adapter or a TIWAY 1 UNILINK Host Adapter using the NITP protocol The driver makes requests to the Host Adapter unit which then forwards the request on to the actual network When a response is received the Host Adapter returns the response to the driver The driver can be configured to control the behavior of the adapter or the adapter can be configured with DIP switches on the unit to tell the driver to respect these settings Once connected to a TIWAY 1 network the driver can communicate with up to 254 sec ondary devices Host Adapters can be configured as MHIUs or HIUs MHIUS are capable of implementing Network Manager duties for the TIWAY network If a TIWAY network is already up and running the
44. evice name gt Adapter Error lt code gt Unable to read block starting at lt address gt on device device name Adapter Error lt code gt Block deactivated Unable to read block starting at lt address gt on device device name gt Framing Error Unable to read block starting at lt address gt on device device name gt Secondary Error lt code gt Unable to read block starting at lt address gt on device device name gt Secondary Error lt code gt Block deactivated Unable to read tag lt address gt on device device name gt Task Error lt code gt Unable to read tag lt address gt on device device name gt Task Error lt code gt Tag deactivated Write Errors Unable to write to lt address gt on device device name gt Unable to write tag lt address gt on device device name gt Adapter Error lt code gt Unable to write tag lt address gt on device device name gt Framing Error Unable to write tag lt address gt on device device name gt Secondary Error lt code gt Unable to write tag lt address gt on device device name gt Task Error lt code gt Macro Specific Messages Adapter reporting macro link error Error 0x2020 Trigger Macro cannot be configured for auto ena ble Macro tag address lt address gt is invalid given new macro definition Tag deactivated The macro referenced in tag address lt address gt is no longer availa
45. exception or an explicit disable Note Termination Codes are listed in detail under MRSW Termination Codes www kepware com TIWAY Host Adapter Driver Help Error Descriptions The following error warning messages may be generated Click on the link for a description of the message Address Validation Address lt address gt is out of range for the specified device or register Array size is out of range for address lt address gt Array support is not available for the specified address lt address gt Data Type lt type gt is not valid for device address lt address gt Device address lt address gt contains a syntax error Device address lt address gt is Read Only Missing address Serial Communications Communications error on channel name gt lt error mask gt COMn does not exist COMn is in use by another application Error opening COMn Unable to set comm parameters on COMn Device Status Messages Device device name gt is not responding Device Specific Messages Adapter reporting command timeout Error 0x001 Reconfiguring adapter Adapter reporting HIU not initialized Error Ox100B Reconfiguring adapter Adapter reporting unrecognized command Error 0x0084 Reconfiguring adapter Host adapter not responding Secondary device device name gt no longer connected to network Reconnecting secondary Read Errors Unable to read block starting at lt address gt on device d
46. exists in the device Note The adapter returned an error during the last gather macro response for the given macro All tags in this macro block will be invalidated but will remain in the scan list See Also Adapter Error Codes UNILink Macros Macro Addressing Unable to Read Macro with Source ID lt id gt macro lt num gt on lt device name gt Adapter Error lt code gt Block deactivated Error Type Warning Possible Cause 1 The address specified in the given macro macro num Source ID does not exist in the device 2 The device could not perform the read operation Solution Check to make sure that the address exists in the device Note The adapter returned an error during the last gather macro response for the given macro Based on the error all tags in this macro block will be deactivated removed from the scan list See Also Adapter Error Codes UNILink Macros Macro Addressing www kepware com TIWAY Host Adapter Driver Help 38 Unable to Read Macro with Source ID lt id gt macro lt num gt on lt device name gt Framing Error Error Type Warning Possible Cause The adapter with device lt device name gt responded with incorrect data possibly due to transmission errors or device malfunction Solution 1 Place adapter on less noisy network if that is the case 2 Increase the request timeout Note All tags in this macro block will be invalidated but will remain in th
47. ges XML Loading Error An existing link macro already has this macro number num Link macro not loaded XML Loading Error An existing read macro already has this macro number lt num gt Link macro not loaded XML Loading Error An existing read macro already has this macro number lt num gt Read macro not loaded XML Loading Error Invalid value found Link macro not loaded XML Loading Error Invalid value found Read macro not loaded XML Loading Error Link macro linked to missing read macro lt num gt Link macro not loaded XML Loading Error Read macro s missing from file Link macro s not loaded XML Loading Error An existing link macro already has this macro number lt num gt Link macro not loaded Error Type Warning Possible Cause 1 The XML file contains two or more link macros with the same macro number ActionMacroNumber 2 One or more link macros are missing macro numbers Solution Verify that each link macro in the XML file has a unique macro number See Also Adapter Error Codes UNILink Macros Macro Addressing XML Loading Error An existing read macro already has this macro number lt num gt Link macro not loaded Error Type Warning Possible Cause 1 The XML file contains two or more read macros with the same macro number ReadMacroNumber being used as the link macro number ActionMacroNumber www kepware com TIWAY Host Adapter Driver Help 2 One or more r
48. haracter set Valid NITP characters are the ASCII values 0 1 2 3 4 5 6 7 8 9 A B C D E and F Retry the message at least 3 times If the same error returns all 3 times check for an error in the software driver 0x100B The NM causing the adapter to be offline has not initialized the HIU Retransmit the command 0x100C There is not enough memory available to allocate an area to hold status information for the requested sec ondary Users can de allocate resources for another Source ID to gain enough memory for the secondary status information 0x100D There is not enough memory available to allocate another Source ID Users can de allocate resources for another Source ID to gain enough memory to allocate this one 0x100E The bandwidth statistics for the requested HIU are not available because the NM has not initialized the HIU Ox100F Users requested auto redundant mode without signifying that Channel B was available or tried issuing the SWITCH CHANNEL command without making Channel B 0x2002 The NM and HIU are not configured for an MHIU 0x2003 The NM is not configured 0x2004 The HIU of the MHIU is not configured 0x2006 The command string contained the same option code twice Correct and reissue the command 0x2007 The HIU is already configured Users can only issue command code 11 once after each adapter reset 0x2008 Users tried to specify that one TIWAY I port uses Local Line media and that the other TIWAY I Port uses RS 2
49. he maximum amount of memory to set aside for all macro buffers defined is set in the Adapter tab in Channel Properties Typical values are 16 KB and 24 KB This is not the amount of memory available for each macro but the amount available for all macros combined e A maximum of 254 macro buffers can be allocated Thus 254 macros can be defined e In order for macros to be executed they must be assigned to a task which is commonly called a source e Asourceis a collection of macros executed under the same time slice independent of other UHA resources For example if there are 10 macros defined in a source in a round robin manner each macro will be allocated 1 10 of a second for every second elapsed Each source is identified by a Source ID e Amaximum of 32 sources can be defined Since each source is its own independent task this implies there can be 32 sources operating simultaneously Macro Performance vs Memory There are a few rules that can be implemented in order to maximize macro performance In general performance is achieved through a sacrifice in memory resources and vice versa They are as follows www kepware com TIWAY Host Adapter Driver Help 2 e Each macro should request as much data as necessary which increases the macro buffer size needed and utilizes available memory resources macro memory set aside e Macros should be spread evenly across as many sources as possible Since the time slice is shared within each
50. ion possibly due to transmission errors or device malfunction Solution 1 Place adapter on a less noisy network if that is the case 2 Increase the request timeout Unable to write tag lt address gt on device device name gt Secondary Error code Error Type Warning Possible Cause The secondary device device name returned an error during the last write operation See Also Secondary Error Codes Unable to write tag lt address gt on device lt device name gt Task Error code Error Type Warning Possible Cause The secondary device device name returned a task specific error during the last task write operation Write Loop Task 0x60 and Write Analog Alarm Task 0x64 are used to write to loop and alarm tags that are not acces sible through the Write Block NIM Primitive 0x30 See Also www kepware com TIWAY Host Adapter Driver Help 36 Task Error Codes Macro Specific Messages The following error warning messages may be generated Click on the link for a description of the message Macro Specific Messages Adapter reporting macro link error Error 0x2020 Trigger Macro cannot be configured for auto ena ble Macro tag address lt address gt is invalid given new macro definition Tag deactivated The macro referenced in tag address lt address gt is no longer available Tag deactivated Unable to Read Macro with Source ID lt id gt macro lt num gt on
51. ive macros Repetitive When this checkbox is selected the macro will be repetitive The HIU will automatically reissue the macro as long as the macro is enabled Again if a new response differs from a previous response the exception flag is set When this checkbox is not selected the macro will be non repetitive When enabled the macro will be issued its exception flag set and automatically be disabled Re enabling the macro will cause a reissue of the macro Automatically When this checkbox is selected the macro will automatically be enabled once downloaded The Enabled MRSW will be reset to 0 and increment on every issue When this checkbox is non selected the macro will not be automatically enabled The MRSW will be set to 0x8001 and will require manual enabling for use This is required case for Trigger Macros in a link www kepware com 25 TIWAY Host Adapter Driver Help Defining Link Macros Link Macros are defined and redefined through the common interface shown below They are comprised of two parts the Trigger Macro and the Action Macro The Trigger Macro specifies what will be linked to whereas the Action Macro specifies what to do with the data received from the trigger m Trigger Macro User defined macro number E Action Macro User defined macro number Secondary Address e MM Starting Address 1 Freeze Macro and Response On Exception Cancel Descriptions of the para
52. k Macro refers to the Trigger and Action Macro pair There are three essential steps for using Link Macros defining downloading and referencing Defining the Macro Link Macros are defined via a Graphical User Interface For more information refer to Defining Macros Downloading the Macro Link Macros are automatically downloaded and will be reinitialized anytime a Link Macro definition is added edited or removed For more information refer to the UNILINK Host Adapter User Manual 1 Tostart allocate the Source IDs Each Source ID referenced in the macro definitions will be allocated in the UHA All others will be de allocated 2 Next allocate macro Storage Buffers For each Action Macro a buffer will be allocated and assigned a buffer number in the UHA under the Source ID specified for that macro The size of the buffer depends on the request protocol packet size and the response protocol packet size since both are stored in the macro buffer www kepware com 23 TIWAY Host Adapter Driver Help 3 Then define the macros For each Action Macro the write request protocol packet will be assigned to the macro buffer previously assigned under the Source ID specified for that macro 4 Next link macros Each Action Macro will be linked to the Trigger Macro defined in the Link Macro Referencing the Macro Trigger Macros can be referenced as described in the Read Macros section above Action Macros cannot be ref erenced As previ
53. lt num gt on device name gt Secondary Error lt code gt Error Type Warning Possible Cause 1 The address specified in the given macro macro num Source ID does not exist in the device 2 The device could not perform the read operation Solution Check to make sure that the address exists in the device Note The secondary device device name returned an error during the last gather macro response for the given macro All tags in this macro block will be invalidated but will remain in the scan list See Also Secondary Error Codes UNILink Macros Macro Addressing Unable to Read Macro with Source ID lt id gt macro lt num gt on lt device name gt Secondary Error lt code gt Block deactivated Error Type Warning Possible Cause 1 The address specified in the given macro macro num Source ID does not exist in the device 2 The device could not perform the read operation Solution Check to make sure that the address exists in the device Note The secondary device device name returned an error during the last gather macro response for the given macro Based on the error all tags in this macro block will be deactivated removed from the scan list See Also Secondary Error Codes UNILink Macros Macro Addressing Unable to Read Macro with Source ID lt id gt macro lt num gt on lt device name gt Task Error lt code gt Error Type Warning Possible Cause 1 The
54. meters are as follows e User Defined Macro Number Trigger Read Macro that will act as the Trigger Macro or store por tion of the store and forward process of the link User Defined Macro Number Action Driver specific number for identifying a macro This number must be unique among both Link and Read Macros Secondary Address Secondary device PLC address to which the Action Macro will forward link data Starting Address The first data element to be written to on the forward portion of the link Freeze Macro and Response On Exception An exception occurs when the data retrieved from the secondary differs from the data stored in the macro buffer If desired the macro can be configured to disable when such an exception occurs This is termed freezing and can be accomplished by selecting the checkbox This feature only applies to repetitive macros Note Each variable retains its definition and rules regardless of whether the macro is new or being edited Non Configurable Parameters Description Rules Address Type The data element type of the address on the forward portion of the link must be the same address type on the store portion defined by the Trigger Macro Ending Given the block size defined in the Trigger Macro the ending address is calculated based on the starting Address address defined for the Action Macro Source ID Same as Source ID for Trigger Macro Re Issue Delay The Trigger Macro drives the
55. n on all adapter DIP switch settings commands and parameters refer to the TIWAY 1 UNI LINK Host Adapter User s Manual Creating a New TIWAY Host Adapter Channel When creating a new TIWAY Host Adapter channel users may find it easier to accept the default settings in the Channel Wizard and then edit the settings later through the Channel Properties Note 1 If the driver finds that the adapter is not configured at power up or after a reset the Configure Adapter Command 20 will be sent along with the parameters specified in the Adapter tab of Channel Properties Note 2 If an irrecoverable error condition is encountered the driver may need to issue a software reset adapter command Once the adapter has had time to reset the driver will proceed with the recovery sequence Adapter Fr Channel Properties General Communications Modem Network Interface Network Manager Channel A Channel B Macro Setup Write Optimizations Adapter HIU Adaptertype UNILINK DE Host configuration z Macro storage memory Default Maximum secondary address 254 1 Secondary address Descriptions of the parameters are as follows e Adapter Type This parameter specifies the type of adapter to use for communications with the TIWAY network Options include the UNILINK adapter or the TIWAY 1 adapter www kepware com TIWAY Host Adapter Driver Help s Note When the TIWAY 1 adapter is selected all other adapter p
56. ng to macros the HIU resources are free to perform time critical monitoring and control Requirements 1 Selection of the UNILINK model 2 Selection of the MHIU or HIU configuration mode Note Macros are not supported in the Emulate Host Adapter mode In the TIWAY Host Adapter Driver macros are defined via the Graphical User Interface GUI in the OPC server Tags can then be created that reference data obtained from these defined macros If such tags are referenced from a client the driver will download the macros defined in the GUI Only those macros that are enabled will present valid data to these tags Macro definitions can be edited or removed while the client is referencing it with the understanding that tags referencing such macros can break In this case the macro reference tag is request ing a piece of data that the macro is no longer retrieving Caution should be taken when editing macros so that macro referencing tags do not fall outside the macro range data block Macro Logistics e Amacro and its data are stored in a macro buffer A macro number identifies each macro buffer e The number of bytes required memory usage for a macro buffer primarily depends on the number of elements requested to be read as defined in the macro The UNILINK Host Adapter User Manual explains how to calculate such usage but is not necessary since this usage can be monitored through Macro Status amp Control Addressing tags in the server e T
57. of this condition will perform the soft reset and communications will be resolved See Also Adapter Error Codes Adapter reporting HIU not initialized Error Ox100B Reconfiguring adapter This error will occur after the HIU has been reset or powered cycled while the driver was communicating with it This condition results in the driver having to do a software reset of the adapter to properly reconfigure it See Also Adapter Error Codes Adapter reporting unrecognized command Error 0x0084 Reconfiguring adapter Users will receive this message if the driver forms a request that the adapter does not recognize This usually occurs after the adapter is reset To solvethis have the driver perform a software reset of the adapter so that it will recognize it properly www kepware com TIWAY Host Adapter Driver Help 32 See Also Adapter Error Codes Host adapter not responding Error Type Serious This error occurs when the driver times out waiting on a response from the host adapter Possible Cause 1 The host adapter has been reset 2 The host adapter is not turned on 2 The serial connection between the host adapter and the Host PC is broken 3 The communications parameters for the serial connection are incorrect Solution If the host adapter was manually reset the driver will recover and reconnect Verify that the host adapter is on Verify the cabling between the PC and the host adapter Verify that
58. ommunication Protocol Non Intelligent Terminal Protocol NITP Supported Communication Parameters Baud Rate 300 600 1200 2400 9600 19200 or 38400 Stop Bits 1 Parity Odd Data Bits 7 Flow Control When using an RS232 RS485 converter the type of flow control that is required depends on the needs of the con verter Some converters do not require any flow control whereas others require RTS flow For more information on flow requirements refer to the converter s documentation It is recommended that an RS485 converter that provides automatic flow control be used Note Select RTS DTR Ethernet Encapsulation This driver supports Ethernet Encapsulation which allows the driver to communicate with serial devices attached to an Ethernet network using a terminal server such as the Lantronix DR1 This mode may be invoked through the COM ID tab in Channel Properties For more information refer to the server s help documentation Cable Connections RS232 Controller Serial Port DB 9 Port Modem Setup This driver supports modem functionality For more information please refer to the topic Modem Support in the OPC Server Help documentation Addressing Options WWW kepware com TIWAY Host Adapter Driver Help New Device Addressing Options Select the desired bit orderfor V K WX WY and SS address types m Bit Order for V K WX WY SS C Bit 1 ls MSB Description of the
59. option is as follows e Bit Order for V K WX WY SS This option specifies the order in which bits will be presented to V K WX WY and SS memory types when bit accessed MSB means Most Significant Bit and LSB means Least Significant Bit The default setting is Bit 1 is LSB Note DWord follows the same bit order logic as Words but has 32 bits instead of 16 Bit 1 Is MSB of Word MSB SB lr 15 da ls le jv je le fio fu fe lis lis fis fis Bit 1 Is LSB of Word EN A EE A O A SA nm SAO AA ES LEES ERR See Also Address Descriptions www kepware com TIWAY Host Adapter Driver Help 12 Data Types Description HONTE Boolean Single bit Word Unsigned 16 bit value bit O is the low bit bit 15 is the high bit Signed 16 bit value bit O is the low bit bit 14 is the high bit bit 15 is the sign bit Unsigned 32 bit value bit O is the low bit bit 31 is the high bit Signed 32 bit value bit O is the low bit bit 30 is the high bit bit 31 is the sign bit Float 32 bit floating point value The driver interprets two consecutive registers as a floating point value by making the second register the high word and the first reg ister the low word Long is the same as Double in the TISOFT programming software Float is the same as Real in the TISOFT programming software www kepware com TIWAY Host Adapter Driver Help Address Descriptions Address specifications vary depending on the model in
60. or An existing read macro already has this macro number num Read macro not loaded XML Loading Error Invalid value found Link macro not loaded XML Loading Error Invalid value found Read macro not loaded XML Loading Error Link macro linked to missing read macro lt num gt Link macro not loaded XML Loading Error Read macro s missing from file Link macro s not loaded Address Validation The following error warning messages may be generated Click on the link for a description of the message Address Validation Address lt address gt is out of range for the specified device or register Array size is out of range for address lt address gt Array support is not available for the specified address lt address gt Data Type lt type gt is not valid for device address lt address gt Device address lt address gt contains a syntax error Device address lt address gt is Read Only Missing address Address lt address gt is out of range for the specified device or register Error Type Warning Possible Cause A tag address that has been specified statically references a location that is beyond the range of supported loca tions for the device Solution Verify the address is correct if itis not re enter it in the client application Array size is out of range for address lt address gt Error Type Warning Possible Cause A tag address that has been specified statically is requesting an
61. orrect address type www kepware com TIWAY Host Adapter Driver Help Macro Status amp Control Addressing The driver supports the following macro addresses Fonmat Address Description Data Types Access InitializingMacros True while driver is creating setting up macros N A Boolean Read Only in the UHA _MacroMemAvail Memory available for macros N A Long Read Only DWord MacroBuffAvail Number of macro buffers available N A Short Word Read Only _SourcelDAvail Number of Source IDs available N A Short Word Read Only SourcelIDActive Source ID Source ID active 1 254 Boolean Read Only Enables macro num Enable disable given macro 1 254 Boolean Write Only EnableStatus macro num Response code from last macro enable disable 1 254 Short Word Read Only of given macro __BufferNum macro num Buffer number for given macro 1 254 Short Word Read Only MRSW macro num Last MRSW for given macro 1 254 Short Word Read Only For more information refer to Macro Enable Disable Status For more information refer to Macro Response Status Word MRSW UNILink Macros Macros are TIWAY network requests that are stored and scheduled for independent processing by the HIU Because macros are Read requests except for Link Macros which also involve a write request they are ideal for performing non real time monitoring of network data By moving non critical monitori
62. ously mentioned both the Trigger and Action Macro must be initially disabled Thus when beginning to use macros the Trigger Macro must be manually enabled using the Enable Trigger Macro num gt address Defining Macros Macro Setup This channel level dialog is the breakout point for defining Read and Link Macros It has two purposes first to listthe macros defined and second to provide an interface to add edit and remove Read and Link Macros The image below shows the Macro Setup dialog Channel Properties xj Network Interface Write Optimizations Adapter HIU General Communications Network Manager Channel ChannelB Macro Setup m Read Macros Relssue 17 1000 4500 500 Add Edit Remove m Link Macros Remove Add Edit Cancel Apply Help Note Adding and editing macros utilizes the same dialog used to define or redefine Removing a macro simply removes the defined macro from the list and more importantly from the driver All listed macros will be down loaded to the device Defining Read Macros Read Macros are defined and redefined through the common interface shown below www kepware com TIWAY Host Adapter Driver Help 24 r Read Macro User defined macro number Secondary Address Address Type i v y Starting Address Ending Address 500 500 Source ID Re Issue Delay 1 1000 msec Freeze Macro and Response
63. ry 39 Error lt code gt Block deactivated o oooocccccccccccccccccccco coc ee Unable to read macro with source id lt id gt macro num on device name gt Task Error 39 ECO e E it A nora Crea ed e O PINS Unable to read macro with source id id macro num on device name gt Adapter 37 Error lt code gt E E ooo A eth BER Dalen oe medo de E Rr Unable to read macro with source id lt id gt macro num on device name gt Task Error 40 lt code gt Tag deactivated ccc cece ccc ccc ccc ce cece cece eee esee esses sese www kepware com TIWAY Host Adapter Driver Help Unable to read tag lt address gt on device device name Task Error lt code gt 34 Unable to read tag lt address gt on device device name gt Task Error lt code gt Tag deac 34 E neos to nobel A Suaasnelit liomo sb Acl feit Rl mico A Unable to set comm parameters on COMn 30 Unable to write tag lt address gt on device device name gt Framing Error 35 Unable to write tag lt address gt on device device name gt Task Error lt code gt 35 Unable to write tag lt address gt on device device name gt Adapter Error lt code gt 35 Unable to write tag lt address gt on device device name Secondary Error lt code gt 35 Unable to write tag lt address gt on device device name gt
64. sd astas ed gu Te oer 33 Unable to read block starting at lt address gt on device lt device name gt Framing Error 33 Unable to read block starting at lt address gt on device device name Secondary Error lt code gt 33 Unable to read block starting at lt address gt on device device name gt Secondary Error lt code gt Block be T CDM 33 Unable to read tag lt address gt on device lt device name gt Task Error code 34 Unable to read tag lt address gt on device device name gt Task Error lt code gt Tag deactivated 34 WEEN ar mcm T 34 Unable to write to lt address gt on device lt device name gt 34 Unable to write tag lt address gt on device device name gt Adapter Error lt code gt 35 Unable to write tag lt address gt on device device name gt Framing Error 35 Unable to write tag lt address gt on device device name gt Secondary Error lt code gt 35 Unable to write tag lt address gt on device device name gt Task Error lt code gt 35 Macro Specific Messages 36 Adapter reporting macro link error Error 0x2020 Trigger Macro cannot be configured for auto enable 36 Macro tag address
65. serial port assigned to a channel is being used by another application Solution 1 Verify that the correct port has been assigned to the channel 2 Shut down any other applications that are using the COM port assigned to this channel Error opening COMn Error Type Fatal Possible Cause The specified COM port could not be opened due an internal hardware or software problem on the target com puter Solution Verify that the COM port is functional and may be accessed by other Windows applications Unable to set comm parameters on COMn Error Type Fatal Possible Cause The serial parameters for the specified COM port are not valid Solution Verify the serial parameters and make any necessary changes www kepware com TIWAY Host Adapter Driver Help Device Status Messages The following error warning messages may be generated Click on the link for a description of the message Device Status Messages Device device name gt is not responding Device lt device name is not responding Error Type Serious Possible Cause 1 The secondary with the specified network address is not connected to the TIWAY network 2 The serial connection between the device and the Host PC is broken 3 The response from the device took longer to receive than the amount of time specified in the Request Timeout device setting 4 The communications parameters for the serial connection are incorrect Solution
66. ses for use with a Series 500 NIM only The default data type for each address type is shown in bold Note For more information on applicable PLCs consult device specific documentation www kepware com TIWAY Host Adapter Driver Help Address Type Format Range Data Types Access Loop Gain LKC lt loop gt 1 256 Float Read Write Loop Reset LTI lt loop gt 1 256 Float Read Write Loop Rate LTD lt loop gt 1 256 Float Read Write Loop High Alarm Limit LHA lt loop gt 1 256 Float Read Write Loop Low Alarm Limit LLA lt loop gt 1 256 Float Read Write Loop Process Variable LPV lt loop gt 1 256 Float Read Write Loop PV High Limit LPVH lt loop gt 1 256 Float Read Write Loop PV Low Limit LPVL lt loop gt 1 256 Float Read Write Loop Orange Dev Alarm Limit LODA lt loop gt 1 256 Float Read Write Loop Yellow Dev Alarm Limit LYDA lt loop gt 1 256 Float Read Write Loop Sample Rate LTS lt loop gt 1 256 Float Read Write Loop Setpoint LSP lt loop gt 1 256 Float Read Write Loop Output LMN lt loop gt 1 256 Float Read Write Loop Status V Flags Reference the Loop VFlag address 1 256 Long DWord Read Write in V Memory as specified in the Loop Bit 1 32 Boolean Loop V Flag Bit Definitions Loop Control C Flags LCF lt loop gt Long DWord Read Write LCF lt loop gt lt bit gt Boolean LCF Bit Definitions Loop Ramp Soak Status Flags LRSF lt loop gt Short Word Read Only LRSF lt loop gt lt bit gt Boolean LRSF Bit D
67. sk read Read Loop Task 0x76 and Read Analog Alarm Task 0x79 are used to read loop and alarm tags that are not accessible through the Read Block NIM Primitive 0x20 This tag will be invalidated but will remain in the scan list See Also Task Error Codes Unable to read tag lt address gt on device device name gt Task Error lt code gt Tag deactivated Error Type Warning Possible Cause 1 The address does not exist in the device 2 The device could not perform the read operation Note The secondary device lt device name gt returned a task specific error during the last task read Read Loop Task 0x76 and Read Analog Alarm Task 0x79 are used to read loop and alarm tags that are not accessible through the Read Block NIM Primitive 0x20 Based on the error the tag will be deactivated removed from the scan list See Also Task Error Codes Write Errors The following error warning messages may be generated Click on the link for a description of the message Write Errors Unable to write to lt address gt on device device name gt Unable to write tag lt address gt on device device name gt Adapter Error lt code gt Unable to write tag lt address gt on device device name gt Framing Error Unable to write tag lt address gt on device device name gt Secondary Error lt code gt Unable to write tag lt address gt on device device name gt Task Error lt code gt
68. store and forward process thus the re issue delay has no meaning for the Action Macro Repetitive The Action Macro must be non repetitive Automatically The Trigger Macro as well as the Action Macro must be initially disabled www kepware com TIWAY Host Adapter Driver Help 26 Enabled Macro Enable Disable Status raaes o Macrosuccessfullyenabled disabled q Macro buffer number requested has not been allocated Macro buffer number specified has a different Source ID than the one specified Macro buffer specified is the Action Macro in a Link Macro pair that cannot be explicitly enabled or disabled Incorrect command issued The macro has not been downloaded yet Macro buffer specified is the Trigger Macro in a Link Macro pair that cannot be explicitly enabled at this time because the Action Macro response has not returned The specified macro buffer cannot be enabled because the sec ondary device associated with it is offline Macro Response Status Word MRSW The MRSW indicates the status of the macro response as well as the number of times the macro has been updated Each defined macro has its own MRSW The table below shows some possible values MRSW Values hex 0000 This macro has not been executed since the last time it was enabled 0001 to 7FFF The number of times a repetitive macro response has been updated 8000 to FFFF Termination Code The macro is disabled due to either an error an
69. t macro buffers cannot be explicitly deleted Users must de allocate the Source ID or reset the adapter to recover macro buffers The macro buffer number in the command string has not been allocated Verify the macro buffer number and issue the ALLOCATE MACRO STORAGE BUFFFERS command if necessary The macro buffer number in the command string is already enabled This error will be returned when users try to redefine or initialize the response buffer of a macro that is currently enabled The Source ID in the macro buffer did not match the Source ID in the command string Check the Source ID number and reissue the command with the correct value The INITIALIZE MACRO RESPONE BUFFER command is not valid because this is a non repetitive macro The exception flag was set on this macro Too much data was requested in the GATHER MACRO RESPONSE command The Action Macro is enabled The Action Macro Primitive must be either Primitive 30 or Primitive BO The data types in the Trigger Macro do not match the data types defined in the Action Macro A macro link already exists between the macro buffers specified No macro link exists between the specified macro buffers The Trigger Macro is enabled and must be explicitly disabled before the macro link can be terminated The Trigger Macro Primitive must be either Primitive 20 or Primitive AO Users cannot explicitly define the number of NM buffers to allocate to the HIU because the default number of buff
70. t Read Write Alarm Setpoint ASP lt alarm gt 1 256 Float Read Write Alarm Error AERR lt alarm gt 1 256 Float Read Only Alarm High High Alarm Limit AHHA lt alarm gt 1 256 Float Read Write Alarm Low Low Alarm Limit ALLA lt alarm gt 1 256 Float Read Write Alarm Rate of Change Alarm ARCA lt alarm gt 1 256 Float Read Write Alarm Setpoint High Limit ASPH lt alarm gt 1 256 Float Read Write Alarm Setpoint Low Limit ASPL lt alarm gt 1 256 Float Read Write Alarm Alarm Deadband AADB lt alarm gt 1 256 Float Read Write Alarm Raw High Alarm Limit AHAR lt alarm gt 1 256 Short Word Read Write Alarm Raw Low Alarm Limit ALAR lt alarm gt 1 256 Short Word Read Write Alarm Raw Process Variable APVR lt alarm gt 1 256 Short Word Read Write Alarm Raw Orange Deviation AODAR lt alarm gt 1 256 Short Word Read Write Alarm Raw Yellow Deviation AYDAR lt alarm gt 1 256 Short Word Read Write Alarm Raw Setpoint ASPR lt alarm gt 1 256 Short Word Read Write Alarm Raw Alarm Deadband ADBR lt alarm gt 1 256 Short Word Read Write Alarm Raw Error AERRR lt alarm gt 1 256 Short Word Read Only Alarm Raw High High Alarm Limit AHHAR lt alarm gt 1 256 Short Word Read Write Alarm Raw Low Low Alarm Limit ALLAR lt alarm gt 1 256 Short Word Read Write Alarm Raw Setpoint Low Limit ASPLR lt alarm gt 1 256 Short Word Read Write Alarm Raw Setpoint High Limit ASPHR lt alarm gt 1 256 Short Word Read Write Alarm MSW of Alarm C Flags ACFH lt alarm gt 1 256 Short Word Read
71. t TCP lt address gt 1 65536 Short Word Read Write Timer Counter Current TCC lt address gt 1 65536 Short Word Read Write Drum Step Preset DSP lt address gt 1 256 Byte Read Write Drum Step Current DSC address 1 256 Byte Read Write Drum Count Preset DCP lt drum gt lt step gt drum 1 256 Short Word Read Write step 1 16 For more information refer to Addressing Options Addresses of this type may be used as arrays To specify an array address append rows cols to the end of an address If only cols is specified rows will default to 1 The maximum array size which is determined by the multiplication of rows and columns is 64 Words Note The maximum array size for SS and alarm types is specified in DWords thus the maximum array size is 32 DWords Furthermore the actual number of addresses available for each type depends on the configuration of the PLC If the driver finds that an address is not present in the device at Runtime the driver will post an error message and remove the tag from its scan list SS Bit Definitions Secondary System Status Data Element Format Word Z1 LSW ABCD EFGH DKL MNOP Element SS bit Description B 18 Bo ode Y Ef e li j www kepware com TIWAY Host Adapter Driver Help N o ji NIH F i 29 REE NIN uje FIA NIN CIN Zl Z WIN ojo x x xl xl x o Ww TU Ww N Each bit set to 1 indicates that
72. t used set to O P J46 Not used set to 0 ACF Bit Definitions Analog Alarm Control Flag Data Element Format ABCD EFGH DKL MNOP QRST UVWX YZab cdef Element ACFbit Description F 1 PV scale 20 offset 2 Take square root of PV EL e Monitor HIGH LOW alarm 3 4 Monitor HIGH HIGH LOW LOW alarm fe s Monitor deviation alarms 6 Monitor rate of change alarm Monitor broken transmitter alarm 8 0 Local setpoint 1 Remote setpoint gems Unused setto 0 I J 10 Unused set to 0 UK fin uwsed stto0 12 Unused set to 0 13 Unused set to 0 Unused set to 0 15 Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Unused set to 0 Special function program number Special function program number Special function program number Special function program number Special function program number Special function program number Special function program number Special function program number Gn m GOL M ae K 19 E m A P 16 Hd co AIO m M x s lt c lu NININ Noe aJa P 23 win ojw Vel Kee OIJOIVIN lt NININININ N Ww eo w N Note If a bitis set to 1 the corresponding action is enabled If a bit is set to 0 the corresponding action is dis abled Loop Addressing The driver supports the following PID Loop addres
73. the baud rate selected matches that of the host adapter Make sure that odd parity and 7 data bits are selected Make sure that RTS DTR flow control is selected Ln 5 LU M K H Secondary device lt device name gt no longer connected to network Recon necting secondary This message will appear if a secondary device the driver was previously communicating with is disconnected from the TIWAY network The driver will periodically attempt to reconnect to the device to reestablish com munication This message will be accompanied by a Device is not responding error message See Also Device device name gt is not responding Read Errors The following error warning messages may be generated Click on the link for a description of the message Read Errors Unable to read block starting at lt address gt on device device name gt Adapter Error lt code gt Unable to read block starting at lt address gt on device device name Adapter Error lt code gt Block deactivated Unable to read block starting at lt address gt on device device name gt Framing Error Unable to read block starting at lt address gt on device device name gt Secondary Error lt code gt Unable to read block starting at lt address gt on device device name gt Secondary Error lt code gt Block deactivated Unable to read tag lt address gt on device device name gt Task Error lt code gt Unable to re
74. the corresponding bitin Word 2 is a reported status Word 2 MSW ABCD EFGH DKL MNOP Status Bit SSbit Descipion 1 NIM in LOCAL mode 1 P C Sytem in LOCAL mode Undefined Undefined Undefined Undefined 10 Undefined 11 Undefined 1 Undefined 1 Undefined 14 Undefined 15 Undefined Undefined Alarm Addressing The driver supports the following Analog Alarm addresses for use with a Series 500 NIM only The default data type for each address type is shown in bold Note For more information on applicable PLCs refer to device specific documentation Address Type Format Range Data Types Access Alarm Variable Flag AVF alarm 1 256 Short Word Read Only AVF lt alarm gt lt bit gt Bit 1 16 Boolean AVF Bit Definitions Alarm Control Flag ACF lt alarm gt 1 256 Long DWord Read Write ACF lt alarm gt lt bit gt Bit 1 32 Boolean ACF Bit Definitions Alarm PV High Limit APVH lt alarm gt 1 256 Float Read Write Alarm PV Low Limit APVL lt alarm gt 1 256 Float Read Write www kepware com TIWAY Host Adapter Driver Help Alarm Process Variable APV alarm 1 256 Float Read Write Alarm High Alarm Limit AHA lt alarm gt 1 256 Float Read Write Alarm Low Alarm Limit ALA lt alarm gt 1 256 Float Read Write Alarm Orange Dev Alarm Limit AODA lt alarm gt 1 256 Float Read Write Alarm Yellow Dev Alarm Limit AYDA lt alarm gt 1 256 Float Read Write Alarm Sample Rate ATS lt alarm gt 1 256 Floa
75. ware com TIWAY Host Adapter Driver Help az XML Loading Error Link macro linked to missing read macro lt num gt Link macro not loaded Error Type Warning Possible Cause 1 The linked read macro does not exist 2 The read macro has an incorrect macro number ReadMacroNumber 3 The link macro has an incorrect trigger macro TriggerMacroNumber Solution 1 Verify that the linked read macro exists in the XML file 2 Verify that the trigger macro corresponds to the desired read macro See Also Adapter Error Codes UNILink Macros Macro Addressing XML Loading Error Read macro s missing from file Link macro s not loaded Error Type Warning Possible Cause The read macro does not exist in the XML file Solution 1 Verify that there is a ReadMacroList element in the XML file 2 Verify that there is a valid ReadMacro element in the XML file See Also Adapter Error Codes UNILink Macros Macro Addressing Error Codes The following error codes may be generated Click on the link for a description of the specific error codes Adapter Error Codes Secondary Error Codes Task Error Codes MRSW Termination Codes Adapter Error Codes 0x0001 The command timed out by the HIU function The NM function is possibly offline due to a malfunction or its maximum poll delay is longer than the host command timeout in the HIU This error could be the result of a global connect or global disconnect 0x0002 A TI
76. y executing Ramp soak step number currently executing Ramp soak step number currently executing Ramp soak step number currently executing Ramp soak step number currently executing Ramp soak step number currently executing mim ojo ul UO ARP GOIR r o COIN OD I 9 mixje Bele WIN Fe ul Bele A v m o UHA Status amp Control Addressing The driver supports the following UHA status and control addresses The default data type for each address type is shown in bold Address Description Format Range Data Types Access www kepware com TIWAY Host Adapter Driver Help 2 Error communicating with adapter _AdapterError Read Only Secondary connected to network _SecondaryLog lt sec id 1 254 Boolean Read Only Software Reset of UHA _SoftReset N A Boolean Write Only HardwareReset of UHA _HardReset N A Boolean Write Only Note 1 _AdapterError will notify users when there is a loss of communication between the OPC Server and the UHA Note 2 _Error for each device secondary will notify users when there is a loss of communication between the UHA and the secondary in question Macro Addressing Macro Data Addressing Applicable to Standard amp Trigger Macros Only Macros are independent network requests stored and scheduled by the HIU function The TIWAY Host Adapter Driver not only allows for macro creation and download but also provides direct access to macro memory for read ing It is import

Download Pdf Manuals

image

Related Search

Related Contents

APC Smart 2200VA LCD 230V  Falmec Altair  IBM 46M0907  Samsung DVD-HR775 راهنمای محصول  Life Fitness tr 8500 User's Manual  dépistage du cancer colorectal conseils clés pour la bonne  Photometer-System MD100  Configuração de Serviço Primme Acesso PB  Samsung SGH-E690 service manual  Total RNA isolation User manual  

Copyright © All rights reserved.
Failed to retrieve file