background image

SSI interface

SSI_Set_Bits

ADwin

132

ADwin-Gold II

 , Manual February 2013

SSI_Set_Bits

SSI_Set_Bits

 sets for an SSI counter the amount of bits which generate a

complete encoder value. 

The number of bits should be equal to the resolution of the encoder.

Syntax

#Include

 

ADwinGoldII.inc / GoldIITiCo.inc

 

SSI_Set_Bits

(

dcdr_no

,

bit_no

)

Parameters

Notes

The resolution (amount of bits) of the SSI encoder should be similar to
the amount of bits which are transferred.

See also

SSI_Mode

SSI_Read

SSI_Set_Clock

SSI_Start

SSI_Status

Valid for

Gold II-CNT

Example

Rem Please select the appropriate include for ADbasic / 

TiCoBasic

#Include

 

ADwinGoldII.inc / GoldIITiCo.inc

Rem Decoder 1 runs with 2.5 MHz, Decoder 2 with 1.0 MHz

Init:

SSI_Set_Clock

(

1

,

10

)

'clock rate for decoder 1

SSI_Set_Clock

(

2

,

25

)

'clock rate for decoder 2

SSI_Mode

(

11b

)

'Set continuous-mode (encoders 

'1+2)

SSI_Set_Bits

(

1

,

10

)

'10 encoder bits for encoder 1

SSI_Set_Bits

(

2

,

25

)

'25 encoder bits for encoder 2

Event:

Par_1

 

=

 

SSI_Read

(

1

)

'Read out position value 

'

(

encoder 1

)

Par_2

 

=

 

SSI_Read

(

2

)

'Read out position value 

'

(

encoder 

2

)

T11 TiCo

dcdr_no

Number (1…4) of the SSI decoder whose resolu-
tion is to be set.

LONG

bit_no

Amount of bits (1…32) of the bits which are to be
read for the encoder (corresponds to the encoder
resolution).

LONG

Summary of Contents for ADwin-Gold II

Page 1: ...ADwin Gold II Manual ADwin Gold II Manual February 2013...

Page 2: ...y 2013 For any questions please don t hesitate to contact us Hotline 49 6251 96320 Fax 49 6251 5 68 19 E Mail info ADwin de Internet www ADwin de J ger Com putergesteuerte Messtechnik GmbH Rheinstra e...

Page 3: ...5 4 LS Bus 17 5 5 Time Critical Tasks 17 6 DA Add On 19 7 CNT Add On 20 7 1 Counter Hardware 20 7 2 Counter Software 22 7 3 Using Event Counter 24 7 4 Using PWM Counter 26 7 5 SSI decoder 28 7 6 PWM...

Page 4: ...t interface 177 15 11 EtherCAT interface 182 15 12 Real time clock 186 15 13 Storage media ADbasic 189 15 14 Storage media TiCoBasic 196 Annex A 1 A 1 Technical Data A 1 A 2 Hardware Addresses A 6 A 3...

Page 5: ...ADwin Gold II Manual February 2013 V ADwin...

Page 6: ...ion Information refers to further information in this documentation or to other sources such as manuals data sheets literature etc C ADwin File names and paths are placed in angle brackets and charact...

Page 7: ...program parameters must be performed only by appropriately qualified personnel Qualified personnel are persons who due to their education experience and trai ning as well as their knowledge of applica...

Page 8: ...r of the ADwin sys tem executes all tasks which require real time processing concurrently Real time operating system The operating system for the DSP of the ADwin system has been optimized to achieve...

Page 9: ...er sends data to the PC without request The data transfer to the PC is always a response to an instruction coming from the PC Thus embedding the ADwin system into various programming languages and sta...

Page 10: ...o processor can access all inputs and out puts and therefore perform special tasks as conversion communication protocol SPI signal generator loop control etc According to the task the TiCo processor c...

Page 11: ...ely processed after wards see ADbasic manual chapter Structure of the ADbasic Program Watchdog The operation of ADwin Gold II can be controlled with a watchdog counter If a pro grammed signal is missi...

Page 12: ...d for period width measurement as impulse counters or as up down counters with clock direction or four edge evaluation for quadrature encoders 4 decoders for use with incremental encoders with SSI int...

Page 13: ...arth the shielding on its way to the machine the better the shielding will be Use cables with shielding on both ends for signal lines Here too you should reduce the bleeding off of interferences via t...

Page 14: ...connector male For using the system with an external power supply unit you need the subminiature con nector described above The connector is provided by the following manufacturer under the article n...

Page 15: ...the status line ADwin is booted show that the operating system has been loaded and ADbasic can connect the ADwin system If not please check the connectors first Programs with ADbasic Programming the A...

Page 16: ...mA applies to all pins together The inputs and outputs of the ADwin Gold II basic version is described on the following pages 16 analog inputs via 2 multiplexers page 11 2 analog outputs page 13 32 di...

Page 17: ...quire to do so See also ADbasic manual 5 1 1 Analog Inputs 2 Multiplexers The system has 16 analog inputs IN1 IN16 The inputs with odd numbers 1 3 15 are allocated to multiplexer 1 those with even num...

Page 18: ...ol ADwin Gold II provides a sequential control for each ADC which can consecutively read measurement values of several or all input channels of an ADC Thus the proces sor can be discharged a lot and o...

Page 19: ...e output number If it is not in the value range the maximum or minimum values are output 5 1 3 Calculation Basis Voltage range The voltage range of the ADwin Gold II at the analog inputs and outputs i...

Page 20: ...l ULSB is the smallest digitally displayable voltage difference and is equivalent to the voltage of the least significant bit LSB The measured value of the 18 bit ADC can be returned with 16 bit or wi...

Page 21: ...t input can start processes being completely and immediately processed see also ADbasic manual chapter Program Structure The event input has an internal pull down resistance 4 7k In addition to the ex...

Page 22: ...table shows how the inputs and outputs IN OUT are configured when you use the value of the first column as instruction argument 5 3 Watchdog The correct operation of ADwin Gold II can be controlled wi...

Page 23: ...directional serial bus with 5MHz clock rate Low Speed The bus is a in house design to access external modules The first module available is HSM 24V which can process 24 Volt signals on 32 digital cha...

Page 24: ...he waiting times caused by the standard instructions for other purposes If you apply these instructions skillfully you may be able to execute faster measurements It is important to set the Start_Conv...

Page 25: ...OUT1 OUT8 as to the 37 pin D SUB socket ANALOG OUT see figure Fig 12 Pin assignment ANALOG OUT of DA add on Programming You program the additional DACs like the DAC 1 and DAC 2 see chapter 5 1 and ch...

Page 26: ...ta of the evaluating units are provided in latches be read out Up down counter external clock input With event counting incrementing decrementing of the counter is caused by external square wave signa...

Page 27: ...sig nal can be read The counters are controlled by ADbasic instructions via control register instructions see below At the inputs A CLK B DIR and CLR LATCH TTL alike signals are necessary In any case...

Page 28: ...lear counter Cnt_Clear 4 Enable counter Cnt_Enable For further processing of the values in the ADbasic program transfer the values into the latch register and read them out there If you disable or ena...

Page 29: ...or down can reliably be derived from the Sign of the difference new counter value minus old counter value and not from the comparison of the counter values Overflow For programming please remember th...

Page 30: ...ignal can be static for a fixed count direction or dynamic for changing directions The signals at the inputs A CLK and B DIR can be individually inverted with Cnt_ Mode Programming example Include ADw...

Page 31: ...re not incremented Changing the phase shift will have an effect on the maximum input frequency If it differs from 90 degrees the maximum input frequency of 5 0 MHz decreases for instance to 45 degrees...

Page 32: ...n There are several registers assigned to each PWM counter being described below If like in the example above PWM counters are evaluated with standard instructions Cnt_Get_PW and Cnt_Get_PW_HL no furt...

Page 33: ...ters with Cnt_Sync_Latch and then evaluated The calculation depends on the set reference edge Gold II Bus CLR LATCH 1 0k Latch 1 pos Latch 2 pos Latch 2 neg SW Latch G 100MHz Latch 1 neg 32 Bit PWM Co...

Page 34: ...ade with the routine below which you have programmed in the ADbasic process REM Par_1 Gray value To be converted REM Par_2 Flag indicating a new Gray value REM Par_9 Result of the Gray To binary conve...

Page 35: ...ctions description see chapter 15 starting from page 136 The instructions The instructions are in the include file ADwinGoldII INC More information can be found in the online help 8 7 6 5 4 3 2 1 15 1...

Page 36: ...31 Depending on your requirements you can order both interfaces either as high speed or low speed version Switching in operation is not possible The inputs of the CAN interfaces are located on the con...

Page 37: ...nstructions which are directly accessing the controller s registers Message Messages sent via CAN bus are data telegrams with up to 8 bytes which are charac terized by so called identifiers The CAN co...

Page 38: ...he data faster than you are receiving them A data loss is indicated by a flag The message object 15 has an additional buffer so that 2 messages can be stored there Assigning messages The allocation of...

Page 39: ...ncoming messages without having to control the message input polling You can enable the interrupts of several message objects Which object has caused the interrupt can be seen in the interrupt registe...

Page 40: ...s are described more detailed Handshake Handshake The interface is operated in 4 modes 1 RS232 without handshake 2 RS232 with software handshake Xon Xoff 3 RS232 hardware handshake RTS CTS The signals...

Page 41: ...gramming of the interface depend on this controller The controller is easily programmed with ADbasic instructions The instructions are in the include file ADwinGoldII INC More information can be found...

Page 42: ...nterfaces with each other REM befor starting the program Include adwpext inc Dim DATA_1 1000 As Long Transmitted data Dim DATA_2 1000 As Long Received data Dim lauf As Long Control variable Init For r...

Page 43: ...until it receives the value 55 Now the interface REM becomes active and sends the value 44 Include ADwgcan inc Dim ret_val val As Long Init RS_Reset REM Initialization of the interfaces REM 38400 Bau...

Page 44: ...e status ST Fig 24 Profibus Meaning of LEDs Projecting the Profibus You are projecting the Profibus with a configuration tool suitable for the bus master The following process description uses a Profi...

Page 45: ...n tool master Configure the outputs as seen from the master first and then the inputs If there are inputs initialized in ADbasic you have to configure outputs as correspondent in the configuration too...

Page 46: ...2 This norm is provided by the Profibus user organization Profibus Nutzerorganisation e V Haid und Neu Str 7 76131 Karlsruhe Germany Phone 49 72196 58590 Fax 49 72196 58589 Order number 0 042 Operatin...

Page 47: ...he DeviceNet network status NP and module status MS module stands for the node here Fig 26 DeviceNet Meaning of LEDs Projecting the DeviceNet You are projecting the DeviceNet with a configuration tool...

Page 48: ...page 178 or in the online help Initialization must be run with low priority since it takes some seconds if it were a pro cess with high priority the PC interrupts the communication after a time time...

Page 49: ...communication errors ERR Fig 27 EtherCAT Meaning of LEDs If both LEDs RUN and ERR turn red a serious error has occurred in the interface Please inform the support of J ger Messtechnik you find the add...

Page 50: ...bus member to the EtherCAT bus Using TwinCAT System Manager you mark the EtherCAT master and select the menu entry Scan boxes from the context menu right mouse click A list of all current bus members...

Page 51: ...out For the same reason reading and writing data should be run with low priority Specifications The fieldbus node is in agreement with the international standard IEC 61158 and IEC 61784 2 More inform...

Page 52: ...rating mode Behavior Init The EtherCAT slave is being initialized by the bus master PreOp The interface is part of the data exchange inputs and outputs are not active SafeOp The interface can receive...

Page 53: ...ached with erased memory card after running Media_Erase Real time clock The add on provides a real time clock which can be used to assign a specified time to measurements With simple instructions date...

Page 54: ...d powering up anew the boot loader option is enabled again By programming the Flash EEPROM without processes and only with the file ADwin11 btl the system will only be booted after power up but no pro...

Page 55: ...mounting kits for enclosures ADwin Gold II pow On the secondary side ADwin Gold II pow provides 12 Volt at a maximum load of 2 Ampere The power supply unit is rated for the highest load and maximum ex...

Page 56: ...les like HSM24V are described in a separate man ual or in the online help The TiCo processor of the ADwin Gold II system can also access the inputs outputs and interfaces The description of ADbasic in...

Page 57: ...This section describes the following instructions Event_Config page 52 Event_Enable page 53 Set_LED page 54 Watchdog_Init page 55 Watchdog_Reset page 56 Watchdog_Standby_Value page 57 Watchdog_Status...

Page 58: ...the appropriate include file for ADbasic TiCoBasic INCLUDE ADwinGoldII inc GoldIITiCo inc Init Rem Configure event input for Rem minimum time 15 ns neg edge event signal after 4 edges Event_Config 0...

Page 59: ...used in parallel because both instructions set the used event source See also Event_Config En_CAN_Interrupt Valid for Gold II Example INCLUDE ADwinGoldII inc Init Rem Set CAN interface 2 as event sou...

Page 60: ...D is normally switched on and off by process 15 To use Set_ LED the process should therefore be stopped See also Valid for Gold II Example Rem Select the appropriate include file for ADbasic TiCoBasic...

Page 61: ...hdog counting TTL level low watchdog stopped counter value 0 is reached If bit 2 is not set or the watchdog counter is disabled the output Watch dog Out can be set with Watchdog_Standby_Value See also...

Page 62: ...d and executes the functions being set by Watchdog_Init Set the active watchdog timer at least once to the start value see Watchdog_Init within the counting time in order to keep your system working I...

Page 63: ...does not set the output or is disabled see Watchdog_Init After power up the output Watchdog Out is set to TTL level Low See also Watchdog_Init Watchdog_Reset Watchdog_Status Valid for Gold II Example...

Page 64: ...the sy stem assumes a malfunction and and executes the functions being set by Watchdog_Init If the watchdog counter is disabled bit 0 0 bit 1 has no function See also Watchdog_Init Watchdog_Reset Wat...

Page 65: ...ts on ADwin Gold II DAC page 60 Start_DAC page 61 Write_DAC page 62 ADC page 63 ADC24 page 65 Read_ADC page 67 Read_ADC24 page 68 Set_Mux1 page 69 Set_Mux2 page 71 Start_Conv page 73 Wait_EOC page 74...

Page 66: ...C Write_DAC Valid for Gold II Gold II DA4 Gold II DA8 Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Rem Digital P controller Dim set_to...

Page 67: ...old II Gold II DA4 Gold II DA8 Example REM Simultaneous output of two different signal waveforms REM on outputs DAC 1 and 2 Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwi...

Page 68: ...ogram from the PC Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Dim i As Long Declaration Dim Data_1 1000 Data_2 1000 Data_3 1000 As Long Dim D...

Page 69: ...you indicate a non existing input channel the measurement result will be undefined In the following examples the instructions Set_Mux1 2 Start_Conv Wait_EOC and Read_ADC should be used instead of ADC...

Page 70: ...lease select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim iw As Long Declaration Event Measure analog input 1 iw ADC 1...

Page 71: ...tling time and conversion time are given on page 17 If you indicate a non existing input channel the measurement result will be undefined In the following examples you should use the instructions Set_...

Page 72: ...lease select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim iw As Long Declaration Event Measure analog input 1 iw ADC24...

Page 73: ...e include for ADbasic TiCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Event Set multiplexer ADC1 to channel 3 ADC2 to channel 4 Set_Mux1 001b Set_Mux2 001b Rem i...

Page 74: ...TiCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim val1 val2 As Long Event Set multiplexer ADC12 1 to channel 3 ADC12 2 to channel 4 Set_Mux1 001b Set_Mux2 001b...

Page 75: ...page 17 It is preferable to use a binary code suffix b for the bit pattern This will make it easier to display the bit pattern than if you use a decimal or hexadecimal representation although it is st...

Page 76: ...clude for ADbasic TiCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim val As Long Event Set_Mux1 11010b Set multiplexer 1 channel and gain Rem interrupt IO acces...

Page 77: ...page 17 It is preferable to use a binary code suffix b for the bit pattern This will make it easier to display the bit pattern than if you use a decimal or hexadecimal representation although it is st...

Page 78: ...lude for ADbasic TiCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim val As Long Event Set_Mux2 01100b Set multiplexer 2 channel and gain Rem interrupt IO access...

Page 79: ..._EOC Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim val1 As Long Event Set_M...

Page 80: ...DwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim val As Long Event Set_Mux2 001b Set MUX 2 to channel 4 Rem interrupt IO access for MUX settling time IO_Sleep 200 Rem use waitin...

Page 81: ...id for Gold II T11 TiCo adc_no Number 1 2 of the ADC LONG mode Operating mode of the sequential control 0 Single conversion default no sequential con trol 1 Mode single shot single conversion cycle 2...

Page 82: ...or sequential control of ADC 2 Seq_Mode 2 2 continuous mode Seq_Set_Delay 2 125 waiting time 4 5 s 125 20ns 2 s Seq_Set_Gain 2 0 gain factor 1 Rem select all channels selection is valid only for activ...

Page 83: ...rt Seq_Status Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Dim Data_1 16 As Long At DM_Local Dim i As Long Init Rem...

Page 84: ..._Set_Gain Seq_Select Seq_Start Seq_Status Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Dim Data_1 16 As Long At DM_L...

Page 85: ...in Seq_Select Seq_Start Seq_Status Valid for Gold II Example Include ADwinGoldII inc Dim Data_1 16 As Long At DM_Local Init Rem settings for sequential controls Seq_Mode 1 2 Seq_Mode 2 2 continuous mo...

Page 86: ...too short for an accurate measure ment You can change the waiting time until the next conversion with the parameter mux_time Setting the waiting time influences the accuracy of the measurement at a h...

Page 87: ...s for sequential control of ADC 2 Seq_Mode 2 2 continuous mode Seq_Set_Delay 2 125 waiting time 4 5 s 125 20ns 2 s Seq_Set_Gain 2 0 gain factor 1 Rem select all channels selection is valid only for ac...

Page 88: ...Dim Data_1 16 As Long At DM_Local Dim i As Long Init Rem settings for sequential control of ADC 2 Seq_Mode 2 2 continuous mode Seq_Set_Delay 2 125 waiting time 4 5 s 125 20ns 2 s Seq_Set_Gain 2 0 gain...

Page 89: ...ugh the input channels are selected together with Seq_ Select the sequential controls of the ADCs work independently ADC 1 converts inputs with odd numbers only ADC 2 inputs with even num ber The chan...

Page 90: ...for sequential control of ADC 2 Seq_Mode 2 2 continuous mode Seq_Set_Delay 2 125 waiting time 4 5 s 125 20ns 2 s Seq_Set_Gain 2 0 gain factor 1 Rem select all channels selection is valid only for acti...

Page 91: ...iate include for ADbasic TiCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim Data_1 1600 As Long At DM_Local Dim i As Long Init Rem settings for sequential contr...

Page 92: ...I inc GoldIITiCo inc Dim Data_1 16 As Long At DM_Local Dim i As Long Init Rem settings for sequential control of ADC 1 Seq_Mode 1 1 single shot mode Seq_Set_Delay 1 125 waiting time 4 5 s 125 20ns 2 s...

Page 93: ...gin_Edge page 90 Digin_FIFO_Clear page 91 Digin_FIFO_Enable page 92 Digin_FIFO_Full page 94 Digin_FIFO_Read page 95 Digin_FIFO_Read_Timer page 96 Digin_Long page 97 Digin_Word1 page 98 Digin_Word2 pag...

Page 94: ...at you use the binary representation suffix b It shows the allocation of bits to channel groups more clearly than decimal or hexadecimal representations which can still be used if desired See also Dig...

Page 95: ...ts in groups of 8 See also Conf_DIO Digin_Edge Digin_Long Digin_Word1 Digin_Word2 Di gout Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII...

Page 96: ...O_Full Digin_ FIFO_Read Digin_FIFO_Read_Timer Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Init Conf_DIO 1100b chann...

Page 97: ...d II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Dim Data_1 10000 Data_2 10000 As Long Dim num i index As Long Init Conf_DIO 1100b ch...

Page 98: ...a level has been changed If an edge has occurred a pair of values is copied into an internal FIFO array Value 1 contains the level status of all channels as bit pattern Value 2 contains a time stamp w...

Page 99: ...000 Data_2 10000 As Long Dim i num index As Long Init Conf_DIO 1100b channels 0 15 as inputs Digin_FIFO_Enable 0 edge control off Digin_FIFO_Clear clear FIFO Digin_FIFO_Enable 10011b control channels...

Page 100: ...IFO_Clear Digin_FIFO_Enable Digin_FIFO_Read Digin_ FIFO_Read_Timer Digin_Edge Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITi...

Page 101: ...Digin_FIFO_Enable Digin_FIFO_Full Digin_ FIFO_Read_Timer Digin_Edge Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Di...

Page 102: ...ach the original timer value after about 43 seconds 10ns 232 For compa rison of time this overflow must be considered so the timer value must be queried regularly in the program before a overflow has...

Page 103: ...s and DIO16 DIO31 as outputs It is preferable to use a binary code suffix b for the bit pattern This will make it easier to display the bit pattern than if you use a decimal or hexadecimal representat...

Page 104: ...d DIO16 DIO31 as outputs It is preferable to use a binary code suffix b for the bit pattern This will make it easier to display the bit pattern than if you use a decimal or hexadecimal representation...

Page 105: ...nd DIO16 DIO31 as outputs It is preferable to use a binary code suffix b for the bit pattern This will make it easier to display the bit pattern than if you use a decimal or hexadecimal representation...

Page 106: ...onf_DIO Digin Digout_Bits Digout_Long Digout_Word1 Digout_ Word2 Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Dim va...

Page 107: ..._Long Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Dim value As Long Init REM Configure inputs and outputs Conf_DIO...

Page 108: ...also Conf_DIO Digin_Long Digout Digout_Bits Digout_Word1 Digout_ Word2 Get_Digout_Long Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII in...

Page 109: ...Digout_Bits Digout_Long Get_Digout_ Long Digout_Set Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc DIM value As Long I...

Page 110: ...Bits Digout_Long Get_Digout_ Long Digout_Reset Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc DIM value As Long Init R...

Page 111: ..._Bits See also Conf_DIO Digin_Word1 Digout Digout_Bits Digout_Long Digout_ Word2 Get_Digout_Word1 Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwi...

Page 112: ...Bits See also Conf_DIO Digin_Word2 Digout Digout_Bits Digout_Long Digout_ Word1 Get_Digout_Word2 Valid for Gold II Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwin...

Page 113: ..._Digout_Long will re turn an undefined value Conf_DIO configures digital channels as in puts or outputs in groups of 8 See also Conf_DIO Digin_Long Digout_Bits Digout_Long Get_Digout_Word1 Get_Digout_...

Page 114: ...ll re turn an undefined value Conf_DIO configures digital channels as in puts or outputs in groups of 8 See also Conf_DIO Digin_Word1 Digout_Bits Digout_Word1 Get_Digout_ Long Get_Digout_Word1 Get_Dig...

Page 115: ...ll re turn an undefined value Conf_DIO configures digital channels as in puts or outputs in groups of 8 See also Conf_DIO Digin_Word1 Digout_Bits Digout_Word2 Get_Digout_ Long Get_Digout_Word1 Get_Dig...

Page 116: ...counter inputs of ADwin Gold II Cnt_Clear page 111 Cnt_Enable page 113 Cnt_Get_Status page 114 Cnt_Get_PW page 115 Cnt_Get_PW_HL page 116 Cnt_Latch page 117 Cnt_Mode page 119 Cnt_PW_Latch page 121 Cnt...

Page 117: ...so the counters start counting from 0 Please pay attention to set Cnt_Mode parameter pattern to bit 1 0 for the appropriate counters Else with bit 1 1 the counter inputs A B have also to be set to TTL...

Page 118: ...rs 1 2 diff 3 4 single ended Rem Counter 1 Mode clock direction enable CLR input Cnt_Mode 1 10000b Cnt_Mode 2 0 Set all counters to external clock Cnt_Clear 11b reset counters 1 2 to 0 Rem start count...

Page 119: ...iCoBasic Dim old_1 new_1 As Long Dim old_2 new_2 As Long Init old_1 0 initialize old_2 0 Cnt_SE_Diff 0011b counters 1 2 diff 3 4 single ended Rem Counter 1 Mode clock direction enable CLR input Cnt_Mo...

Page 120: ...lso Cnt_Clear Cnt_Enable Cnt_Get_PW Cnt_Get_PW_HL Cnt_Latch Cnt_Mode Cnt_PW_Latch Cnt_Read Cnt_Read_Latch Cnt_SE_Diff Valid for Gold II CNT Example T11 TiCo counter_ no Counter number 1 4 LONG ret_val...

Page 121: ...Latch Cnt_SE_ Diff Valid for Gold II CNT Example Include ADwinGoldII Inc Init Cnt_SE_Diff 0 all counters single ended TTL Cnt_Mode 1 0 Counter 1 PWM at input A Cnt_Mode 2 0 Counter 2 PWM at input A Cn...

Page 122: ...iCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim old_1 new_1 As Long Dim old_2 new_2 As Long Init old_1 0 initialize old_2 0 Cnt_SE_Diff 0 all counters single...

Page 123: ...attern Parameters Notes After Cnt_Latch has been executed the bit pattern is automatically re set to 0 zero Latch A is read out into a variable with Cnt_Read_Latch command Valid for Gold II CNT See al...

Page 124: ...rs 1 2 diff 3 4 single ended Rem Counter 1 Mode clock direction enable CLR input Cnt_Mode 1 10000b Cnt_Mode 2 0 Set all counters to external clock Cnt_Clear 11b reset counters 1 2 to 0 Rem start count...

Page 125: ...4 LONG pattern Bit pattern to set the operating mode of a counter LONG Bit no Meaning Bit 0 Counter mode Bit 0 mode clock direction Bit 1 mode A B Bit 1 Clear mode Signal condition which clears the c...

Page 126: ...old_2 new_2 As Long Init old_1 0 initialize old_2 0 Cnt_SE_Diff 0011b counters 1 2 diff 3 4 single ended Rem Counter 1 Mode clock direction enable CLR input Cnt_Mode 1 10000b Cnt_Mode 2 0 Set all coun...

Page 127: ...for ADbasic TiCoBasic Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim old_1 new_1 As Long Dim old_2 new_2 As Long Init old_1 0 initialize old_2 0 Cnt_SE_Diff 0 all co...

Page 128: ...c Include ADwinGoldII inc for ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim old_1 new_1 As Long Dim old_2 new_2 As Long Init old_1 0 initialize old_2 0 Cnt_SE_Diff 0011b counters 1 2 diff 3 4 s...

Page 129: ...LONG ret_val Content of the counter register LONG reg_no Register 0 Latch 1 for positive edges 1 Latch 2 for positive edges 2 Latch 3 for positive edges 3 Latch 1 for negative edges 4 Latch 2 for neg...

Page 130: ...or ADbasic Rem Include GoldIITiCo inc for TiCoBasic Dim old_1 new_1 As Long Dim old_2 new_2 As Long Init old_1 0 initialize old_2 0 Cnt_SE_Diff 0011b counters 1 2 diff 3 4 single ended Rem Counter 1 M...

Page 131: ...inc Cnt_SE_Diff pattern Parameter Notes After start up counter inputs are set to input mode single ended See also Cnt_Clear Cnt_Enable Cnt_Get_Status Cnt_Latch Cnt_Mode Cnt_ Read Cnt_Read_Latch Valid...

Page 132: ...tion Cnt_Clear 0001b set counter 1 to 0 Cnt_Enable 0001b start counter 1 old_1 0 initialize old_2 0 error 0 reset error flag Event Par_1 Cnt_Read 1 read counter 1 Rem read status register and mask out...

Page 133: ...both a VR counter and a PWM counter For each set bit both counter contents copied simultaneously The instruction therefore has the same function as Cnt_Latch and Cnt_PW_Latch to gether The buffers can...

Page 134: ...able 0001b Cnt_Mode 1 0b mode clock dir Cnt_Clear 0Fh Cnt_Enable 0F0Fh enable standard and PWM counters Cnt_PW_Latch 0Fh copy PWM counter values oldpw 0 oldcnt 0 frequency 0 Event REM latch values of...

Page 135: ...9 SSI interface ADwin 15 5 SSI interface This section describes instructions to access SSI decoders of ADwin Gold II SSI_Mode page 130 SSI_Read page 131 SSI_Set_Bits page 132 SSI_Set_Clock page 133 SS...

Page 136: ...Status Valid for Gold II CNT Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Rem Decoder 1 runs with 2 5 MHz Decoder 2 with 1 0 MHz Init...

Page 137: ...oldIITiCo inc Rem Decoder 1 runs with 500 kHz Dim m n y As Long Init SSI_Set_Clock 1 50 clock rate for decoder 1 SSI_Mode 1 Set continuous mode encoder 1 SSI_Set_Bits 1 23 23 encoder bits for encoder...

Page 138: ...Gold II CNT Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Rem Decoder 1 runs with 2 5 MHz Decoder 2 with 1 0 MHz Init SSI_Set_Clock 1 1...

Page 139: ...horter the cable length See also SSI_Mode SSI_Read SSI_Set_Bits SSI_Start SSI_Status Valid for Gold II CNT Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII i...

Page 140: ...ect the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Rem Both decoders run with 100 kHz Init SSI_Set_Clock 1 250 clock rate for decoder 1 SSI_Set_Clock 2 250 clock...

Page 141: ...with 100 kHz Init SSI_Set_Clock 1 250 clock rate for decoder 1 SSI_Set_Clock 2 250 clock rate for decoder 2 SSI_Mode 0 Set single shot mode all counters SSI_Set_Bits 1 23 23 encoder bits for encoder 1...

Page 142: ...y 2013 15 6 PWM Outputs This section describes instructions to access PWM outputs of ADwin Gold II PWM_Enable page 137 PWM_Get_Status page 138 PWM_Init page 139 PWM_Latch page 141 PWM_Reset page 142 P...

Page 143: ...e PWM outputs are disabled at once or after the next end of period depends on the setting which was done with PWM_Init parameter mode See also PWM_Get_Status PWM_Init PWM_Latch PWM_Reset PWM_ Standby_...

Page 144: ...de ADwinGoldII inc GoldIITiCo inc ret_val PWM_Get_Status Parameters Notes See also PWM_Enable PWM_Init PWM_Latch PWM_Reset PWM_Standby_ Value PWM_Write_Latch Valid for Gold II CNT Example T11 TiCo ret...

Page 145: ...in See also PWM_Enable PWM_Get_Status PWM_Latch PWM_Reset PWM_ Standby_Value PWM_Write_Latch Valid for Gold II CNT T11 TiCo pwm_ output Number 1 6 of PWM output LONG startdela y Start delay in units o...

Page 146: ...fine freq1 FPar_1 Define freq2 FPar_2 Define pw1 FPar_3 Define pw2 FPar_4 Dim channel As Long Init freq1 1000 1000 Hz freq2 2000 2000 Hz pw1 50 50 pw2 70 70 PWM_Reset 011b stop channels 1 und 2 For ch...

Page 147: ...when PWM_Latch is processed the latch values are started to be output The time when the output of the new values starts at once or after the next end of period depends on the setting which was done wi...

Page 148: ...rn Parameters Notes The output will be stopped immediately even when PWM_Init has set a different stop mode See also PWM_Enable PWM_Get_Status PWM_Init PWM_Latch PWM_ Standby_Value PWM_Write_Latch Val...

Page 149: ...TL outputs If a PWM output is disabled with PWM_Enable the output is set to de fault level from pattern The default level will also be set after the PWM output has stopped After power up the outputs a...

Page 150: ...n the setting of the parameter startvalue from the instruction PWM_Init startvalue 1 Set dutycycle to the value of the duty cycle startvalue 0 Set dutycycle to the inverse duty cycle dutycycle 100 dut...

Page 151: ...escribes instructions to access CAN interfaces of ADwin Gold II CAN_Msg page 146 En_CAN_Interrupt page 148 En_Receive page 149 En_Transmit page 150 Get_CAN_Reg page 151 Init_CAN page 152 Read_Msg page...

Page 152: ...llowing functions Enter the data bytes to be transferred and their number into the field CAN_Msg before transferring them with Transmit See also En_CAN_Interrupt En_Receive En_Transmit Get_CAN_Reg Ini...

Page 153: ...g Define pi 3 14159265 Dim i As Long Init Init_CAN 1 Initialize CAN controller 1 REM Enable message object 6 REM for sending with the identifier 40 11 bit En_Transmit 1 6 40 0 REM Create bit pattern o...

Page 154: ...See also CAN_Msg En_Receive En_Transmit Valid for Gold II CAN Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Init Init_CAN 1 Initialize...

Page 155: ...ages with the identifier you have specified See also CAN_Msg En_Transmit Get_CAN_Reg Valid for Gold II CAN Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII i...

Page 156: ...et_CAN_Reg Valid for Gold II CAN Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Init Init_CAN 1 Initialize CAN Controller 1 Rem Initiali...

Page 157: ...ter list of the CAN controller in the Intel AN82527 datasheet See also Set_CAN_Baudrate Set_CAN_Reg Valid for Gold II CAN Example Rem Please select the appropriate include for ADbasic TiCoBasic Includ...

Page 158: ...gister Bus Configuration is set to 0 The transfer rate for the CAN bus is set to 1 MBit s All message objects are disabled You have to execute this instruction before you access the CAN control ler wi...

Page 159: ...Parameters Notes To receive a message you have to follow the correct order Once Enable the message object with En_Receive for receiving As often as needed Check for a received message and save to CAN_...

Page 160: ...1 1 40 0 Initialize the message object 1 to receive CAN messages with identifier 40 Event REM If the message is changed read out the received data REM from object 1 and transfer the identifier to para...

Page 161: ...kes sure the message is consistent If a new message arrives while reading an old message the re is no mixture of old and new message To receive a message follow these steps Enable the message object f...

Page 162: ...1 1 40 0 Initialize the message object 1 to receive CAN messages with identifier 40 Event REM If the message is changed read out the received data REM from object 1 and transfer the identifier to para...

Page 163: ...ng mode to 0 One sample per bit Select the settings in such a way that the sample point is always between 60 and 72 of the total bit length Set the jump width for synchroniziation to 1 In special case...

Page 164: ...troller can be found in the Intel AN82527 datasheet See also Set_CAN_Baudrate Get_CAN_Reg Valid for Gold II CAN Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGol...

Page 165: ...Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc REM Send a 32 Bit FLOAT value here Pi as sequence of REM 4 bytes in a message object REM Receivi...

Page 166: ...2013 15 8 RSxxx interface This section describes instructions to access RSxxx interfaces of ADwin Gold II Check_Shift_Reg page 161 Get_RS page 162 Read_FIFO page 163 RS485_Send page 164 RS_Init page 1...

Page 167: ...r you have more experi ence about how the controller operates data sheet of the manufacturer Texas Instruments For more common applications more comfortable instructions are availabe in the include fi...

Page 168: ...use this instruction only after you have more experi ence about how the controller operates data sheet of the manufacturer Texas Instruments For more common applications more comfortable instructions...

Page 169: ...II CAN Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Init RS_Reset RS_Init 1 9600 0 8 0 1 Initialization of RSxxx interface 1 with 960...

Page 170: ...r The RSxxx interface transfers data to the bus which are read by other devices Sender receiver The RSxxx interface can transfer data to the bus and back at the same time Thus the sent data can be che...

Page 171: ...after you have executed a hardware reset with RS_Reset If transfer protocol RS485 is set the transfer direction must be set too with RS485_Send You find a list of standard baud rates on page 35 fig 23...

Page 172: ...Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Init RS_Reset Reset RSxxx controller RS_Init 1 9600 0 8 0 1 Initialization of RSxxx interface 1...

Page 173: ...described to which values the registers have been set after the hardware reset After a hardware reset an initialization with RS_Init must follow in or der to initialize the controller and to set the i...

Page 174: ...d to use this instruction only after you have more experi ence about how the controller operates data sheet of the manufacturer TL16C754 from Texas Instruments For more common applications more comfor...

Page 175: ...Init RS_Reset RS485_Send Valid for Gold II CAN Example Rem Please select the appropriate include for ADbasic TiCoBasic Include ADwinGoldII inc GoldIITiCo inc Dim val As Long Init RS_Reset RS_Init 1 96...

Page 176: ...inGoldII inc GoldIITiCo inc ret_val Write_Fifo_Full interface Parameters Notes The return value is the same as with Write_Fifo See also Check_Shift_Reg Get_RS Read_FIFO RS_Init RS_Reset RS485_Send Set...

Page 177: ...me As Long Init Rem reset and initialize interface RS_Reset rs_adr RS_Init rs_adr 1 9600 0 8 0 0 Fifo_Clear 1 Fifo_Clear 2 green_led 0 red_led 0 Event Rem sending If Fifo_Full 1 0 Then any data presen...

Page 178: ...s_adr rs_channel red_led And 1 Or Shift_Left green_led And 1 1 If red_led 0 Or green_led 0 Then If Read_Timer led_time 20000000 Then If red_led 0 Then Inc red_led If green_led 0 Then Inc green_led led...

Page 179: ...ld II Manual February 2013 173 Profibus interface ADwin 15 9 Profibus interface This section describes instructions to access a Profibus interface of ADwin Gold I Init_Profibus page 174 Run_Profibus p...

Page 180: ...ofibus LONG in_mod_ cnt Number 0 76 of input areas in the Profibus Slave The max number depends on in_mod_ type LONG in_mod_ type Key number 1 3 16 for the length of input areas 1 1 Byte max value for...

Page 181: ...Dim i As Long Dim error As Long LowInit Processdelay 3000000 set to 100 Hz For i 1 To 10 initialize info array info i 0 Next i Rem initialize profibus interface 38 input data areas of 2 byte Rem and 7...

Page 182: ...byte length are stored in 5 4 20 ar ray elements Valid for Gold II Profibus See also Init_Profibus Example see Init_Profibus T11 out_pd_ arr Array from which the Profibus Slave reads data and writes t...

Page 183: ...II Manual February 2013 177 DeviceNet interface ADwin 15 10DeviceNet interface This section describes instructions to access a DeviceNet interface of ADwin Gold II Init_DeviceNet page 178 Run_DeviceNe...

Page 184: ...max number depends on in_mod_ type LONG in_mod_ type Key number 1 3 16 for the length of input areas 1 1 Byte max value for in_mod_cnt 255 2 2 Byte max value for in_mod_cnt 127 3 4 Byte max value for...

Page 185: ...ine in_arr DATA_3 Dim out_arr 255 As Long At DM_Local Dim in_arr 254 As Long At DM_Local Dim conf_arr 200 As Long At DM_Local Dim info 10 As Long At DM_Local Dim i As Long Dim error As Long LowInit Pr...

Page 186: ...ta areas of 4 byte length are stored in 5 4 20 ar ray elements Valid for Gold II DeviceNet See also Init_DeviceNet Example see Init_DeviceNet T11 out_pd_ arr Array from which the DeviceNet Slave reads...

Page 187: ...ADwin Gold II Manual February 2013 181 DeviceNet interface Run_DeviceNet ADwin...

Page 188: ...CAT interface ADwin 182 ADwin Gold II Manual February 2013 15 11EtherCAT interface This section describes instructions to access an EtherCAT interface of ADwin Gold II ECAT_Init page 183 ECAT_Run page...

Page 189: ...f input areas in the EtherCAT interface The max number depends on in_mod_ type LONG in_mod_ type Key number 1 3 16 for the length of input areas 1 1 Byte max value for in_mod_cnt 254 2 2 Byte max valu...

Page 190: ...error As Long Init Processdelay 3000000 set to 100 Hz For i 1 To 10 initialize info array info i 0 Next i Rem initialize EtherCAT interface 38 input data areas of 2 byte Rem and 76 output data bytes o...

Page 191: ...ray elements Valid for Gold II EtherCAT See also ECAT_Init Example see ECAT_Init T11 in_pd_ arr Array from which the EtherCAT interface reads data and writes them to the EtherCAT bus ARRAY LONG in_pd_...

Page 192: ...l time clock ADwin 186 ADwin Gold II Manual February 2013 15 12Real time clock This section describes instructions to access real time clock interfaces of ADwin Gold II RTC_Get page 187 RTC_Set page 1...

Page 193: ...ters are return values thus you have to use variables as pa rameters See also RTC_Set Valid for Gold II Storage Example Include ADwinGoldII inc Dim year mon day h m s As Long Init Rem read real time c...

Page 194: ...iority See also RTC_Get Valid for Gold II Storage Example Include ADwinGoldII inc LowInit REM Set real time clock to July 4th 2003 9 17 30 Par_1 RTC_Set 3 7 4 9 17 30 T11 year Year 0 99 corresponds to...

Page 195: ...ry 2013 189 Storage media ADbasic ADwin 15 13Storage media ADbasic This section describes instructions to access the memory card of ADwin Gold II Media_Init page 190 Media_Erase page 191 Media_Write p...

Page 196: ...error message timeout The instruction Media_Init is only available in ADbasic but not in Ti CoBasic See also Media_Erase Media_Write Media_Read Valid for Gold II Storage 16 Example Include ADwinGoldII...

Page 197: ...y process Erasing the memory card may increase the data transfer rate for read and write See also Media_Init Media_Write Media_Read Valid for Gold II Storage 16 Example Include ADwinGoldII inc Dim err...

Page 198: ...to an error message timeout The data transfer speed per data block increases with the number of transferred data blocks The array dest_array must be dimensioned with at least count_ blocks128 128 ele...

Page 199: ..._array must equal the data type of the prviously stored values on the memory card If not the values will be wrongly interpreted Values stored on the memory card always have 32 bit length even if the d...

Page 200: ...o an error message timeout The data transfer speed per data block increases with the number of transferred data blocks The array source_array must be dimensioned with at least count_blocks128 128 elem...

Page 201: ...cks Par_52 number of medium data blocks Define val_per_block 128 values per medium data block Define media_info Data_197 array with media information Define sine Data_1 array for sine values Define nd...

Page 202: ...ic ADwin 196 ADwin Gold II Manual February 2013 15 14Storage media TiCoBasic This section describes instructions to access the memory card of ADwin Gold II with the TiCo processor Media_Read page 197...

Page 203: ...block increases with the number of transferred data blocks The array dest_array must be dimensioned with at least count_ blocks128 128 elements See also Media_Write Valid for Gold II Storage 16 Exampl...

Page 204: ...ta block increases with the number of transferred data blocks The array source_array must be dimensioned with at least count_blocks128 128 elements See also Media_Read Valid for Gold II Storage 16 TiC...

Page 205: ...CoBasic Rem Rem Part 2 TiCoBasic program Rem store measurement values Include GoldIITiCo inc Define val_per_blk 128 values per medium data block Define blk_group 40 number of blocks to write Define bl...

Page 206: ...Power up current Ipower on Ub 12V 3 Valid operation ranges Temperature Tchassis 5 60 C Relative humidity Frel no condensation 0 80 Storage Temperature T 20 70 C Humidity RH no condensation or aggressi...

Page 207: ...69 6 654 54 2 126 IN 1 IN 3 IN 5 IN 7 IN 9 IN 11 IN 13 IN 15 IN 2 IN 4 IN 6 IN 8 IN 10 IN 12 IN 14 IN 16 OUT 1 OUT 3 OUT 5 OUT 7 OUT 2 OUT 4 OUT 6 OUT 8 ANALOG OUT ANALOG IN 1 8 ANALOG IN 9 16 ENET GN...

Page 208: ...IO per DIO line 35 mA ITOTAL all DIGIN or all DIGOUT via VCC GND 70 EVENT Input Edge recognition pos VT Low VCC 5V 1 65 1 9 2 15 V Switching hysteresis VT VT 0 4 0 9 Input current IIH VI 2 7V 1 1 mA I...

Page 209: ...rity INL 2 LSB Differential non linearity DNL 1 Offset Drifta 1 ppm K Error Adjustable Gain Drifta 3 ppm K Error Adjustable a refers to the total voltage range FSR b Full Scale Range Processor Paramet...

Page 210: ...quency fref 100 MHz Accuracy and Drift 20 ppm Counter inputs differentiala a see also data sheet MAX3098 from MAXIM Differential input thresh old voltage VTH 10V VCM 13 2V 200 200 mV Input hysteresis...

Page 211: ...b Cadmium Cd Hexavalent chromium Cr VI Polybrominated biphenyls PBB Polybrominated diphenyl ethers PBDE Mercury Hg The product line ADwin Gold II complies with the requirements of the RoHS directive i...

Page 212: ...50000 0000 49689 4410 49382 7160 48484 8485 47619 0476 47337 2781 47058 8235 46783 6257 45714 2857 45454 5455 44444 4444 43956 0440 43478 2609 42780 7487 42328 0423 42105 2632 41666 6667 41025 6410 40...

Page 213: ...07 6923 12288 7865 12195 1220 12158 0547 12121 2121 12066 3650 12030 0752 12012 0120 11994 0030 11922 5037 11904 7619 11851 8519 11834 3195 11764 7059 11730 2053 11695 9064 11661 8076 11627 9070 11611...

Page 214: ...7 7017 5439 6993 0070 6956 5217 6944 4444 6926 4069 6902 5022 6896 5517 6861 0635 6820 1194 6808 5106 6802 7211 6791 1715 6779 6610 6734 0067 6688 9632 6683 3751 6666 6667 6611 5702 6578 9474 6568 144...

Page 215: ...16 Fig 12 Pin assignment ANALOG OUT of DA add on 19 Fig 13 Block diagram of a counter block 20 Fig 14 Pin assignment of CNT add on 21 Fig 15 Instructions of Gold II CNT counter add on 22 Fig 16 Circle...

Page 216: ...47 RSxxx 34 SSI decoder 28 ADwin system boot 9 ADwin system concept 2 analog in outputs ADC measure a channel 63 ADC24 measure a channel 65 read converted value 16 bit 67 24 bit 68 set multiplexer 1 6...

Page 217: ...ADwin Gold II Manual February 2013 A 12 Annex ADwin B Baud rates for CAN bus 7 block diagram 5 Boot automatical 48 from ADbasic 9 boot an ADwin system 9 Bootloader 48...

Page 218: ...eck_Shift_Reg 161 CLK DIR counter 24 clock and direction 24 CNT add on 20 Cnt_ 111 127 Cnt_Clear 111 Cnt_Enable 113 Cnt_Get_PW 115 Cnt_Get_PW_HL 116 Cnt_Get_Status 114 Cnt_Latch 117 Cnt_Mode 119 Cnt_P...

Page 219: ...e 14 digital channels edge detection unit 15 event input 15 overview 15 digital In outputs clear selected outputs 103 configure 88 read all inputs 97 read back all outputs 107 read back outputs 0 15 1...

Page 220: ...rdware addresses TiCo processor 6 input resistor 15 instructions 52 event counter 24 Event_Config 52 Event_Config 52 Event_Enable 53 Event_Enable 53 F four edge evaluation 25 G Gain factor kV 14 Get_C...

Page 221: ...counter 110 digital channels 87 EtherCAT 182 Profibus 173 177 real time clock 186 RSxxx interface 160 SSI interface 129 storage media ADbasic 189 storage media TiCoBasic 196 system functions event in...

Page 222: ...DC 67 Read_ADC 67 Read_ADC24 68 Read_ADC24 68 Read_FIFO 163 Read_FIFO 163 Read_Msg 153 Read_Msg 153 Read_Msg_Con 155 Read_Msg_Con 155 real time clock 47 resistance internal of signal source 12 revisio...

Page 223: ...8 Set_LED 54 Set_LED 54 Set_Mux1 69 Set_Mux1 69 Set_Mux2 71 Set_Mux2 71 Set_RS 168 Set_RS 168 settling time see multiplexer shielding 7 Software 50 SSI decoder 28 SSI_ 130 135 SSI_Mode 130 SSI_Read 13...

Page 224: ...ruary 2013 W Wait_EOC 74 Wait_EOC 74 watchdog 16 Watchdog_ 55 58 Watchdog_Init 55 Watchdog_Reset 56 Watchdog_Standby_Value 57 Watchdog_Status 58 Write_DAC 62 Write_DAC 62 Write_FIFO 169 Write_FIFO 169...

Reviews: