Vision VTB-101 Guida Utente

Navigare online o scaricare Guida Utente per no Vision VTB-101. Vision VTB-101 User guide Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 125
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti

Sommario

Pagina 1

www.promax.it

Pagina 2 - Rev. 3.00.0

10 VTB USER GUIDE 3.4 Functions Manager In this Tree View are showed all the STRUCTURE and FUNCTIONS grouped per page. Just open the nodes to v

Pagina 3 - 1 INTRODUCTION

100 VTB USER GUIDE Reset It simulates a RESET of the HARDWARE. WARNING: The application will be restarted. Save the list of variables on file It i

Pagina 4 - 3 DEVELOPMENT ENVIRONMENT

101 VTB USER GUIDE Errors are sampled by directly by the target hardware in REAL TIME and they are displaied in TEMPORAL order. It is also possibl

Pagina 5 - 3.1 Toolbar

102 VTB USER GUIDE Scope Enable the digital scope (see relative section) DEBUG.NET options It allows to set some DEBUG options. Block Read Delay

Pagina 6

103 VTB USER GUIDE Display the content of TASK PLC WARNING: in TASK PLC it isn't possible to set a Break-Point. 13.2 Writing of a variable It

Pagina 7

104 VTB USER GUIDE 13.4 Firmware update With DEBUG application it is possible to update the FIRMWARE of the hardware in use. WARNING: FIRMWARE upd

Pagina 8 - 3.2 Project Manager

105 VTB USER GUIDE 13.5 Digital Scope DEBUG.NET provides a SCOPE application to further support of debugging. DIGITAL SCOPE is able to monitor the

Pagina 9 - 3.3 Objects manager

106 VTB USER GUIDE Selects the variable to connect to a channel. The variable must be in the WATCH window. Enables or disables the TRACK of a chan

Pagina 10 - 3.6 Text Table Manager

107 VTB USER GUIDE 14 CANOPEN CONFIGURATOR The CanOpen Configurator software, is a tool that is included in the VTB IDE package and allow to descr

Pagina 11 - 4.1 General Options

108 VTB USER GUIDE 14.3 Main interface Tool bar Menu bar Configuration panel Characteristics of PDO

Pagina 12 - (OBSOLETE)

109 VTB USER GUIDE Can Open Configurator interface, appear as a standard Windows style application, with classics menu and tool bar. Then there is

Pagina 13 - 4.3 Field-Bus Protocol

11 VTB USER GUIDE 4 CONFIGURATION OF VTB From Menu Tools Options This command is used to configure some options of the VTB environment and th

Pagina 14

110 VTB USER GUIDE Configuration panel The Configuration panel it's the real work area of the application. It shows the actual net

Pagina 15

111 VTB USER GUIDE The tree structure displays the composition of the configured CanOpen net. The root it's the project name and every branch

Pagina 16 - 5 TASKS MANAGED BY VTB

112 VTB USER GUIDE Change PDO configuration Now, let's see how we can change or add a PDO configuration in a slave device. To change the PDO

Pagina 17 - 5.1 Task Plc

113 VTB USER GUIDE With a double-click on one of it, will open a form where we can see and set the object that we want to manage. It shows the name

Pagina 18 - 5.4 Page Task

114 VTB USER GUIDE 14.4 PDO characteristics panel This panel make a summary of PDO properties. On the upper edge, it shows the number of devices

Pagina 19

115 VTB USER GUIDE 14.5 Project management How to add a node To add a node in a project, we have two main possibility: • add a node using a EDS

Pagina 20 - 6.1 Numeric Values

116 VTB USER GUIDE Opening a project Starting the Configuratore inside VTB IDE, it will automatically open the configuration related to the VTB pr

Pagina 21 - 6.2 Internal Variable

117 VTB USER GUIDE Open a configuration The “+lib” button (see 109), gives the access to the library, where a particular configuration can be sele

Pagina 22 - 6.3 Pointers

118 VTB USER GUIDE There are displayed three I/O slaves, old Promax devices named CanIo and CanAx, that have the RX1

Pagina 23

119 VTB USER GUIDE The first one is the “packed” PDO, this PDO will be read from all three slaves for the output state. But how can they split its

Pagina 24 - 6.4 Bit

12 VTB USER GUIDE Standard Mode OBSOLETE Debug Mode OBSOLETE Debug Standard OBSOLETE Debug.NET It forces the use of the new DEBUG.NET appli

Pagina 25 - 6.5 Arrays

120 VTB USER GUIDE Index 1 INTRODUCTION ...

Pagina 26

121 VTB USER GUIDE 7 OPERATORS ...

Pagina 27 - 6.7 System Variables

122 VTB USER GUIDE SER_PUTBLK ... 48

Pagina 28 - 6.8 Static Variables

123 VTB USER GUIDE IMS_READ ... 63

Pagina 29 - 6.9 Fixed Variables

124 VTB USER GUIDE TEMPERATURE READING ON NG35 ... 79 11.10 Functions for NGMsX -

Pagina 30 - 6.10 Delegates

125 VTB USER GUIDE 12.1 Enabling the creation of the COMPONENT NGFRAMEWORK ... 96 12.2 Exporting VARIABLES ...

Pagina 31 - 6.11 DEFINE

13 VTB USER GUIDE 4.3 Field-Bus Protocol These options allow to select the Field-Bus protocols used by the target hardware. For the moment the p

Pagina 32 - 6.13 Structures

14 VTB USER GUIDE function open_cancfgerr(nodes as char) as void nodes = Total number of nodes in the CanOpen configuration. Thi

Pagina 33 - 7 OPERATORS

15 VTB USER GUIDE 4.4 Target Hardware Configuration An application must always refer to the target hardware. That allows VTB to preconfigure fo

Pagina 34 - 7.2 Notes on Expressions

16 VTB USER GUIDE 5 TASKS MANAGED BY VTB VTB provides the programmer for TASKS wich can be combined to create an application. Two of these are i

Pagina 35 - 8.4 TAN

17 VTB USER GUIDE 5.1 Task Plc This task is the higest priority one: it is deterministic and run at fixed time making it suitable to manage situ

Pagina 36 - 8.7 ACOS

18 VTB USER GUIDE 5.2 Task Time TASK TIME, like TASK PLC, works at fixed time. It deffers from that for two features: a) it has a lower priprity

Pagina 37 - 8.9 ABS

19 VTB USER GUIDE Also there is a section MASTER EVENT but it has been left only for compatibility with older versions and therefore it must not be

Pagina 38 - 8.10 FABS

2 VTB USER GUIDE The information contained in this document are for informational purposes only and are subject to change without notice and should

Pagina 39 - 9.2 LABEL

20 VTB USER GUIDE 6 VARIABLES TYPE VTB can manage several types of variables which can be used in programming phase. Commonly all VARIABLES will b

Pagina 40 - 9.4 GOTO

21 VTB USER GUIDE 6.2 Internal Variable These variables are allocated in the VOLATILE MEMORY (RAM) of the system and are zeroed at reset. The po

Pagina 41 - 9.7 SELECT-CASE-ENDSELECT

22 VTB USER GUIDE 6.3 Pointers VTB is able to manage the pointers to variables too. Pointers defines the address of allocation memory of the var

Pagina 42 - 9.8 FOR-NEXT-STEP-EXITFOR

23 VTB USER GUIDE It's also possible to declare pointers to data STRUCTURES. Example This structure is been declared Used variables: poin

Pagina 43 - 9.9 WHILE-LOOP-EXITWHILE

24 VTB USER GUIDE 6.4 Bit This type of variable can have only two values: 0 or 1, normally associated to a state OFF/ON or FALSE/TRUE. The variabl

Pagina 44 - 10 FUNZIONI

25 VTB USER GUIDE 6.5 Arrays The arrays can be declared in the INTERNAL or STATIC variables and they can be defined as any type except the BIT on

Pagina 45

26 VTB USER GUIDE 6.6 VCB Variables (CanOpen or EtherCAT) The variables of type VCB are common variables which reflect the state of variables allo

Pagina 46 - 11 SYSTEM FUNCTIONS

27 VTB USER GUIDE 6.7 System Variables Variables of type System are variables already defined by operative system, therefore we must not to declar

Pagina 47

28 VTB USER GUIDE 6.8 Static Variables The variables of type STATIC are declared in NON-VOLATILE RAM: they aren't zeroed at reset and mainta

Pagina 48

29 VTB USER GUIDE 6.9 Fixed Variables The variables of type FIXED are allocated at a fixed address in the internal memory of the device which, unl

Pagina 49

3 VTB USER GUIDE 1 INTRODUCTION VTB is an integrated development environment for OBJECT oriented programming on PROMAX platforms. This environmen

Pagina 50

30 VTB USER GUIDE 6.10 Delegates This type of variables is used to call a function by a variable. First of all the address of the function to call

Pagina 51

31 VTB USER GUIDE 6.11 DEFINE DEFINES are complex equivalences. They are composed by the NAME and the VALUE. The name identifies the DEFINE, the VA

Pagina 52

32 VTB USER GUIDE 6.12 Text Tables OBSOLETE 6.13 Structures The STRUCTURES can be declared only as INTERNAL variables. The fields of a structure

Pagina 53 - MOVETO

33 VTB USER GUIDE 7 OPERATORS The operators of VTB are common to other compilers. 7.1 Logic and Mathematical Operators These are all the logic

Pagina 54

34 VTB USER GUIDE 7.2 Notes on Expressions VTB manages the mathematical expressions completely. Anyway we have to make WARNING when in the express

Pagina 55 - LINETO

35 VTB USER GUIDE 8 MATH FUNCTIONS VTB manages a wide SET of mathematical functions. 8.1 SIN Return the sinus of an angle in a FLOAT value. Hard

Pagina 56 - ARCTO

36 VTB USER GUIDE Example: Used variables: angle float ctan float angle = 1.3 ‘ Define the angle in radians. ctan = 1 / Tan (angle) ‘ Cal

Pagina 57

37 VTB USER GUIDE 8.8 ATAN2 It's similar to atan but it returns a value from -π and +π . Hardware All Syntax Atan2 (y, x) as float The

Pagina 58

38 VTB USER GUIDE 8.10 FABS Return the absolute FLOAT value Hardware All Syntax FAbs (numero) as float The argument number can be a FLOAT val

Pagina 59 - 11.5 CANOPEN FUNCTIONS

39 VTB USER GUIDE 9 INSTRUCTIONS TO CONTROL THE PROGRAM FLOW In VTB there are a lot of instruction to control the program flow. They are similar

Pagina 60

4 VTB USER GUIDE 3 DEVELOPMENT ENVIRONMENT The development environment of VTB has an common intuitive interface like all Windows applications. It

Pagina 61 - PXCO_NMT

40 VTB USER GUIDE Label Label1 . Label Label2 9.3 GOSUB-RETURN Allow to pass the control to a SOUBRUTINE and to return at the next program instru

Pagina 62 - 11.6 DATA SAVING FUNCTIONS

41 VTB USER GUIDE 9.5 INC Increments a variable of any type. Syntax Inc varname The argument varname can be any variable declared in the program.

Pagina 63 - 11.7 ETHERNET FUNCTIONS

42 VTB USER GUIDE Example Used variables: var1 int var2 int var3 int Select var1 case 10 ‘ if var1=10 ... case var2+var3 ‘ if var1=var2

Pagina 64 - PXETH_ADD_PROT

43 VTB USER GUIDE For var1=0 to var1<8 ‘ Repeat 8 times ... Next var1 For var1=1 to var1<var4 step var3 ... Next var1 For var2=1 to

Pagina 65 - PXETH_RX

44 VTB USER GUIDE 10 FUNZIONI VTB manages functions with the same syntax as VISUAL BASIC. It exist a limitation in the declaration of internal var

Pagina 66 - 11.8 DISK DRIVER FUNCTIONS

45 VTB USER GUIDE 10.2 Declaration of the function internal variables Syntax Dim varname as type The syntax of instruction dim is composed by t

Pagina 67

46 VTB USER GUIDE 11 SYSTEM FUNCTIONS VTB provides a wide LIBRERY to a complete management of the hardware devices. Some function can be available

Pagina 68

47 VTB USER GUIDE SER_PUTCHAR Sends a character to the serial port. Hardware All Syntax SER_PUTCHAR (int CodeChar) Parameters CodeChar Co

Pagina 69

48 VTB USER GUIDE SER_PRINTF Formatting print of a FLOAT value. It is the same as ser_printl but use a float value Hardware All Syntax SE

Pagina 70

49 VTB USER GUIDE 11.2 MISCELLANEOUS API FUNCTIONS GET_TIMER Reads the system timer in units of TASK PLC (scan time). Hardware All Syntax

Pagina 71

5 VTB USER GUIDE 3.1 Toolbar Open Project - From menu File → Open project It opens an existing project. New Project -

Pagina 72

50 VTB USER GUIDE ALLOC Dynamic allocating of memory area. Hardware NG35 Syntax ALLOC (Long Mem) as long Parameters Mem Total amount of

Pagina 73 - REAL TIME CLOCK (RTC)

51 VTB USER GUIDE 11.3 API FUNCTIONS FOR MANAGING OF STRINGS VTB doesn't use STRING variables, to manage them there are some apposite function

Pagina 74 - NG_DO – DIGITAL OUTPUTS

52 VTB USER GUIDE STRCAT Appends a copy of the source string to the destination string. Hardware All Syntax STRCMP(Char *Dest, Char *Sourc

Pagina 75 - NG_ADC – ANALOG INPUTS

53 VTB USER GUIDE Avalaible formats ###### Print a fixed number of characters 23456 ###.### Force the print of decimal point 123.45

Pagina 76 - NG_DAC – ANALOG OUTPUTS

54 VTB USER GUIDE Char 0 Command not written in the buffer (buffer full) 1 Command written in the buffer Notes Moveto is usually used to inte

Pagina 77 - NG_ENC - ENCODER INPUTS

55 VTB USER GUIDE LINETO Lineto interpolates the axis distributing the vector speed ONLY ON THE AXES OF THE CURRENT WORKING PLANE. The other axi

Pagina 78

56 VTB USER GUIDE ‘ ********************************************************* ‘ Movement function waiting if the buffer is full ‘ ****************

Pagina 79

57 VTB USER GUIDE Function muovi() as Void Dim test as Char Label Move test=px_arcto(vel,2,VectAssi(), Cx, Cy) if test = 0 goto Move endif EndFun

Pagina 80

58 VTB USER GUIDE STOP Stops axis with the programmed deceleration (acc) waiting for the complete execution (axis stopped). STOP is used to stop

Pagina 81

59 VTB USER GUIDE Note Keep in mind these rules: – AXIS MUST BE STOPPED – CHANGING INSTANTLY THE POSITION IT OCCURS A PARTICULAR SEQUENCE TO A

Pagina 82

6 VTB USER GUIDE Background The selected objects is brought to the background of the page. It can be covered by other objects ma

Pagina 83

60 VTB USER GUIDE variable type passed by pointer. Example Used variables: value int Ret char value=100 Ret=pxco_sdodl(1,2000,0,2,value()) '

Pagina 84

61 VTB USER GUIDE PXCO_SDODL or PXCO_SDOUL. The read code will be written in the system variables _SYSTEM_SDOAC0 e _SYSTEM_SDOAC1. Refer to the DS

Pagina 85

62 VTB USER GUIDE Example Used variables: pxco_nmt(2,1) ‘Set in STOP the node 1 READ_EMCY Reads the last EMERGENCY OBJECT frame sent by a CAN

Pagina 86

63 VTB USER GUIDE For example a FLASH memory has a maximum number of writing, block erase, etc. IMS_WRITE Writes in the internal FLASH at the a

Pagina 87

64 VTB USER GUIDE customized protocols. SET_IP Sets the parameters of TCP/IP protocol. Hardware NG35,NGMEVO Syntax SET_IP(ip as *char, s

Pagina 88

65 VTB USER GUIDE PROTOCOL PROCESS FUNCTION This function isn't defined by system but it must be written in the application. The system wil

Pagina 89

66 VTB USER GUIDE 11.8 DISK DRIVER FUNCTIONS Some devices, such as NG35, can manage files by the standard fyle system FAT16 (or FAT32) on optional

Pagina 90

67 VTB USER GUIDE .OpenCreate(handle as int, path as *char) as char Creates a new file opening it in write mode, if it already exists it is ove

Pagina 91 - NGQ NGQx – ANALOG INPUTS

68 VTB USER GUIDE err=disk.OpenRead(1,”\data\table.dat”) ‘ open table.dat in the directory data if err ... endif while 1 err=disk.Read(1,dati(

Pagina 92

69 VTB USER GUIDE .SeekRel(handle as int, offs as long) as char Sets the offset from the current position of the file. Parameters handle Re

Pagina 93

7 VTB USER GUIDE EtherCAT Configurator It launches the EtherCAT configuration tool (see chapter ETHERCAT CONFIGURATOR). DEBUG It launches th

Pagina 94

70 VTB USER GUIDE Syntax .Rename(oldpath as *char, newpath as *char) as char Parameters oldpath Name of file/directory to be renamed newpath N

Pagina 95

71 VTB USER GUIDE bit 1 hidden bit 2 system bit 3 volume bit 4 directory bit 5 arch. .name(13) Short name

Pagina 96 - 12 COMPONENT FOR FRAMEWORK

72 VTB USER GUIDE GETFREE Reads the property of a driver: total dimension and number of free bytes. The informations are written in the structure

Pagina 97 - 12.3 Exporting FUNCTIONS

73 VTB USER GUIDE REAL TIME CLOCK (RTC) When files are created in the relative fields of the FAT the actual date and time are written. For this i

Pagina 98 - 13.1 Button bar

74 VTB USER GUIDE 11.9 INTERFACE FUNCTIONS FOR NG35 This group of functions allows the interfacing to the hardware resource of NG35 systems. Hardw

Pagina 99

75 VTB USER GUIDE NOTES FOR PROGRAMMING WITH DIGITAL I/O To obtain an application program more clear and stable we suggest to call the I/O functi

Pagina 100 - VTB USER GUIDE

76 VTB USER GUIDE NG_DAC – ANALOG OUTPUTS This function allows to update the analog outputs of each channel equipped in the NG35 expansions NG-IO

Pagina 101

77 VTB USER GUIDE NG_ENC - ENCODER INPUTS This function allows to read the quadrature encoder input of each channel equipped on the expansion car

Pagina 102

78 VTB USER GUIDE NG_T0 – ZERO INDEX OF ENCODER This function allows to read the state of the zero index input of each encoder channel equipped i

Pagina 103 - 13.2 Writing of a variable

79 VTB USER GUIDE TEMPERATURE READING ON NG35 The NG35 is equipped with a TEMPERATURE SENSOR which can be useful to monitor the internal tempera

Pagina 104 - 13.4 Firmware update

8 VTB USER GUIDE 3.2 Project Manager The PROJECT MANAGER allows a fast selection and navigation in all the PAGES of the PROJECT. From this AREA w

Pagina 105 - 13.5 Digital Scope

80 VTB USER GUIDE 11.10 Functions for NGMsX - NGMEVO Functions for NGMsX expansion board for NGMEVO Hardware NGMEVO NG_DAC – Analog Outputs

Pagina 106

81 VTB USER GUIDE NG_ENC - ENCODER INPUTS This function allows to read the quadrature encoder input of each channel equipped on the expansion car

Pagina 107 - 14 CANOPEN CONFIGURATOR

82 VTB USER GUIDE 0 OFF 1 ON WARNING: THE INDEX INPUT IS DIFFERENTIAL, THE ON STATE ON OCCURS WHEN ON CH+ THERE IS A VOLTAGE

Pagina 108 - 14.3 Main interface

83 VTB USER GUIDE 11.11 Functions for Analog Outputs on NGQ Functions for NGQ Analog Outputs Hardware NGQ NG_DAC – Analog Outputs NGQ This f

Pagina 109 - Tool bar

84 VTB USER GUIDE 11.12 Functions for NGQx Analog Outputs and encoder inputs Functions for NGQx Analog Outputs and encoder inputs Hardware NGQx

Pagina 110 - Configuration panel

85 VTB USER GUIDE ENCODER ENABLE=true on NGQ INIT Object Syntax NG_ENC(Char Chan, Long *Val) Parameters Chan Number of channel (from 0 to 1) v

Pagina 111 - Configuration Time-out

86 VTB USER GUIDE Parameters Chan Number of channel (from 0 to 1) Stato State of the relay: 0 OFF (contact opened) 1 ON (contact closed) Ex

Pagina 112 - Change PDO configuration

87 VTB USER GUIDE 11.13 INTERFACE FUNCTIONS FOR NGM13-NGMEVO-NGQ-NGQx This group of functions allows the interfacing to the hardware resource of N

Pagina 113 - Parameters

88 VTB USER GUIDE NGQ_INIT PROPERTY-NGQ and NGQx The object provides a complete vision of all the software option to be set for the correct use o

Pagina 114

89 VTB USER GUIDE NG_DI - DIGITAL INPUTS NGQ NGQx This function allows to read the digital input of the NGQ-NGQx The card Index must be 0 Synta

Pagina 115 - 14.5 Project management

9 VTB USER GUIDE 3.3 Objects manager The OBJECTS MANAGER allows a fast selection of the objects to insert in the current page. Inside it there

Pagina 116 - 14.6 Library using

90 VTB USER GUIDE NOTES FOR PROGRAMMING WITH DIGITAL I/O To obtain an application program more clear and stable we suggest to call the I/O functi

Pagina 117 - 14.7 Note on “packed” PDOs

91 VTB USER GUIDE NGQ NGQx – ANALOG INPUTS The NGQ and NGQx, have up to 4 Analog Inputs (only ONE for NGQx). 12 Bit. In THE NGQ if are ENABLED th

Pagina 118

92 VTB USER GUIDE 11.14 STEP/DIR CHANNELS-NGM13-NGMEVO-NGQ-NGPP The system NGM13,NGMEVO,NGQ e NG-PP are equipped with 4 STEP/DIR channels which a

Pagina 119

93 VTB USER GUIDE PP_GETPOS – READING OF ACTUAL POSITION NGPP-NGMEVO This function reads the actual position of a step/dir channel. The value w

Pagina 120

94 VTB USER GUIDE 7) Write in TASK PLC the following CODE: pp_step(0, PosAxis * RappX) 8) Write in MAIN TASK the test code to exe

Pagina 121

95 VTB USER GUIDE 4) Declare the following GLOBAL VARIABLES: PosAxes(2) long - position of the axis Rapp(2) Float - ratio between generated s

Pagina 122

96 VTB USER GUIDE The flag DisableStep allows the stop of steps generation. Then at the moment we need to execute an axis preset, referring to the

Pagina 123

97 VTB USER GUIDE 12.2 Exporting VARIABLES We can export the desired variable to FRAMEWORK and then, on PC, write or read them as normal variables

Pagina 124

98 VTB USER GUIDE 13 APPLICATION DEBUG The DEBUG utility allows to control, both read and write, of all the application variables, to insert BREAK

Pagina 125

99 VTB USER GUIDE Pagina It selects the page of the VARIABLE (if it is a local variable of a page), PAGINA 0 refer to the GLOBAL variables. Conte

Commenti su questo manuale

Nessun commento