background image

SHPIPCBPB

.Dvñ

Ä.Dv'ä

Software Manual

Industrial PC

L-force Controller 3241C - Backplane Bus

Programming Interface I/O-System 1000

L-force

Controls

Содержание L-Force 3241C

Страница 1: ...SHPIPCBPB Dv Dv Software Manual Industrial PC L force Controller 3241C Backplane Bus Programming Interface I O System 1000 L force Controls...

Страница 2: ......

Страница 3: ...nication 11 3 4 1 SDO communication 11 3 4 2 SDO functions 12 3 4 3 SDO indexes 13 3 4 4 SDO block structure 15 3 4 5 Memory requirements for SDO 17 3 4 6 PDO communication 18 3 4 7 PDO functions 19 3...

Страница 4: ...Contents 2...

Страница 5: ...y means of an interface DLL BpbDrvApi dll the connection of the individual application to the backplane bus device driver BpbDrvXp sys and the I O system is enabled Up to 64 I O compound modules can b...

Страница 6: ...2 Architecture 4 2 Architecture In the following illustration the architecture of the backplane bus to the application is shown in a detailed manner Abb 1 Structure of the backplane bus driver...

Страница 7: ...the interface DLL The following functions are provided Function Description BpbApiOpen Log on application on application interface BpbApiClose Log off application on application interface BpbApiGetVer...

Страница 8: ...r all further functions Parameters in LPTSTR szAppName Name of the application to be registered out PHANDLE hOpen Pointer to open context handle for identification Return values S_OK Successful E_LOAD...

Страница 9: ...identification out PSTRING pszVersion Version of the backplane bus driver Return values S_OK Successful E_HANDLE Incorrect handle is invalid BpbGetError function In the status register an error status...

Страница 10: ...the name Bit 0 bit 1 Controller Status of the controller Bit 2 bit 3 Group1 Status of group 1 Bit 4 bit 5 Group2 Status of group 2 Bit 6 bit 7 Group3 Status of group 3 The byte is divided according t...

Страница 11: ...ter a reset BpbSetOperational should be called to start cyclic communication Parameter in HANDLE hOpen Pointer to open context handle for identification Return values S_OK Successful E_HANDLE Incorrec...

Страница 12: ...reOperational BpbSetOperational function The BpbSetOperational function implicitly executes the BpbReset function Parameter in HANDLE hOpen Pointer to open context handle for identification in ULONG u...

Страница 13: ...troller then responds accordingly If the SDOs can be written to the corresponding FIFO of the backplane bus they are transmitted A definite job number is assigned to each SDO by the driver in order to...

Страница 14: ...text handle for identification out PUCHAR pReadBuffer SDO memory area in WORD usBufferSize Size of the memory area out PWORD pusActualSdoSize Size of the memory area assigned Return values S_OK Succes...

Страница 15: ...or ID of the BPB master 80d String 14 for version of Nios SW build major minor micro Software version 100A h 81d String 14 for the master version of the BPB master 0d Number of disks Indexes 0 1FFF Mo...

Страница 16: ...0x002 DI_4X_NPN 0x004 DI_8X_NPN 0x007 DO_2X 0x101 DO_4X 0x104 DO_8X 0x106 DO_2X_2A 0x102 DO_2X_NPN 0x103 DO_4X_NPN 0x105 DO_8X_NPN 0x107 AI_2X_U 0x401 AI_4X_U 0x404 AI_2X_I 0x402 AI_4X_I 0x405 AO_2X_U...

Страница 17: ...Bits Description FIFO Index WORD 16 31 Index of the parameter Subindex BYTE 8 15 Subindex of the parameter Control BYTE 0 7 Bit 7 0 read 1 write Bit 0 6 job number 1 DWORD Via the index and subindex...

Страница 18: ...WORD 1 WORD 1 DWORD WORD 4 WORD WORD 3 WORD 1 DWORD WORD 6 WORD WORD 5 WORD 1 DWORD For the sequence of the values in the 2 and all following DWORD ascending byte addresses are selected respectively...

Страница 19: ...e transmitted n DWORDs Notes All SDOs are to be stored in a DWORD aligned manner Job is completed automatically by the driver 3 4 5 Memory requirements for SDO For SDO there are also two directions L...

Страница 20: ...of a group is only transmitted from to the BPB controller if the group status is RUNNING During the INIT group status the values are read as 0 directly in the driver not from the BPB controller By the...

Страница 21: ...pen Pointer to open context handle for identification in PUCHAR pWriteBuffer PDO memory area in USHORT usBufferSize Size of the memory area out PUSHORT pusSdoWritten Number of PDOs written Return valu...

Страница 22: ...1byte 64 AI AO 2x12bits 4 bytes 2x16bits 256 AI AO 4x12bits 8 bytes 4x16bits 512 Reading and writing are different with the regard to the maximum amount of data During reading according to the table...

Страница 23: ...red number of bytes in the PI is determined on the basis of a look up table Inputs blue outputs green Abb 5 Dividing the disks into inputs and outputs With the information determined the memory mappin...

Страница 24: ...3 API functions 22 INPUTS OUTPUT Abb 7 Memory image of inputs and outputs in the address area...

Страница 25: ...urns the following possible error codes Errors are returned as a bit mask i e several error codes can be linked with each other in each case Error list for the status register Error byte in the status...

Страница 26: ...ore timeout of group 2 writing 109 6D Error BPB controller DPRAM semaphore timeout of group 3 writing 116 74 Error BPB driver DPRAM semaphore timeout of group 1 reading 117 75 Error BPB driver DPRAM s...

Страница 27: ...e Error number Description Dec Hex 0 0 No error OK 8 8 Telegram timeout 40 28 Subindex out of range 63 3F Group number out of range 200 C8 SDO timeout FATAL Error 254 FE Subindex not supported 255 FF...

Страница 28: ...2 digital outputs 0 5 A NPN 2 bits EPM S304 4 digital outputs 0 5 A NPN 4 bits EPM S305 8 digital outputs 0 5 A NPN 8 bits EPM S306 2 digital outputs 2 A 2 bits EPM S309 4 digital outputs 2 A 4 bits...

Страница 29: ...12 bytes input 10 bytes output EPM S601 2 counters 32 bits 24 V DC reading setting 12 bytes input 12 bytes output EPM S602 1 counter 32 bits 5 V DC reading setting 8 bytes input 10 bytes output EPM S...

Страница 30: ...Windows System32 The programming interface is preinstalled in the WES2009 for the 3241 controller 4 3 Include and library files The following include and library files are to be integrated in the indi...

Страница 31: ...plane bus SDO Service data object PDO Process data object DS401 CanOpen profile for generic IO modules DPRAM Dual Ported RAM DWORD 32 bit date WORD 16 bit date BYTE 8 bit date PCI Peripheral Component...

Страница 32: ...Germany Service Lenze Service GmbH Breslauer Stra e 3 D 32699 Extertal Germany 49 0 51 54 82 0 00 80 00 24 4 68 77 24 h helpline 49 0 51 54 82 28 00 49 0 51 54 82 11 12 Lenze Lenze de Service Lenze d...

Отзывы: