Read Microsoft Word - Differences_IEC_Interfaces.doc text version

CoDeSys@CHIP Differences IEC Interfaces V1.00

CoDeSys@CHIP

Differences IEC Interfaces

© 2007 Beck IPC GmbH

Page 1 of 44

CoDeSys@CHIP Differences IEC Interface V1.00

1 2

INTRODUCTION......................................................................................................................................... 6 IEC LIBRARIES........................................................................................................................................... 7 2.1 OVERVIEW ............................................................................................................................................... 7 2.2 SYSLIBCALLBACK.LIB ............................................................................................................................. 7 2.2.1 Enumeration: RTS_EVENT............................................................................................................. 7 2.2.2 Enumeration: RTS_EVENT_FILTER.............................................................................................. 7 2.2.3 Enumeration: RTS_EVENT_SOURCE............................................................................................ 7 2.2.4 Function: SysCallbackRegister ....................................................................................................... 8 2.2.5 Function: SysCallbackUnregister ................................................................................................... 8 2.3 SYSLIBCOM.LIB ....................................................................................................................................... 8 2.3.1 Struct: COMSETTINGS .................................................................................................................. 8 2.3.2 Struct: COMSETTINGSEX ............................................................................................................. 8 2.3.3 Enumeration: PORTS...................................................................................................................... 8 2.3.4 Function: SysComOpen................................................................................................................... 8 2.3.5 Function: SysComClose .................................................................................................................. 9 2.3.6 Function: SysComRead ................................................................................................................... 9 2.3.7 Function: SysComWrite .................................................................................................................. 9 2.3.8 Function: SysComSetSettings.......................................................................................................... 9 2.3.9 Function: SysComSetSettingsEx.................................................................................................... 10 2.3.10 Function: SysComGetVersion2300 ............................................................................................... 10 2.4 SYSLIBDIR.LIB ...................................................................................................................................... 10 2.5 SYSLIBEVENT.LIB .................................................................................................................................. 10 2.5.1 Function: SysEventCreate............................................................................................................. 10 2.5.2 Function: SysEventDelete ............................................................................................................. 10 2.5.3 Function: SysEventSet................................................................................................................... 10 2.5.4 Function: SysEventWait ................................................................................................................ 11 2.6 SYSLIBFILE.LIB ..................................................................................................................................... 11 2.6.1 Function: SysFileOpen.................................................................................................................. 11 2.6.2 Function: SysFileClose ................................................................................................................. 11 2.6.3 Function: SysFileRead .................................................................................................................. 11 2.6.4 Function: SysFileWrite ................................................................................................................. 12 2.6.5 Function: SysFileDelete................................................................................................................ 12 2.6.6 Function: SysFileRename ............................................................................................................. 12 2.6.7 Function: SysFileGetSize .............................................................................................................. 12 2.6.8 Function: SysFileGetTime............................................................................................................. 12 2.6.9 Function: SysFileSetPos ............................................................................................................... 13 2.6.10 Function: SysFileGetPos............................................................................................................... 13 2.6.11 Function: SysFileEOF................................................................................................................... 13 2.6.12 Function: SysFileCopy.................................................................................................................. 13 2.7 SYSLIBPLCCTRL.LIB .............................................................................................................................. 13 2.7.1 Enumeration: RESET_MODE....................................................................................................... 13 2.7.2 Function: SysStartPlcProgram ..................................................................................................... 14 2.7.3 Function: SysStopPlcProgram ...................................................................................................... 14 2.7.4 Function: SysResetPlcProgram .................................................................................................... 14 2.7.5 Function: SysGetPlcLoad ............................................................................................................. 14 2.7.6 Function: SysShutdownPlc............................................................................................................ 14 2.7.7 Function: SysEnableScheduling.................................................................................................... 14 2.7.8 Function: SysRestoreRetains......................................................................................................... 15 2.7.9 Function: SysSaveRetains ............................................................................................................. 15 2.7.10 Function: SysWdgEnable .............................................................................................................. 15 2.8 SYSLIBPORTS.LIB .................................................................................................................................. 15 2.8.1 Function: SysPortIn ...................................................................................................................... 15 2.8.2 Function: SysPortInW ................................................................................................................... 15 2.8.3 Function: SysPortInD ................................................................................................................... 16 2.8.4 Function: SysPortOut.................................................................................................................... 16 2.8.5 Function: SysPortOutW ................................................................................................................ 16 2.8.6 Function: SysPortOutD................................................................................................................. 16 2.9 SYSLIBSEM.LIB...................................................................................................................................... 16 2.9.1 Function: SysSemCreate ............................................................................................................... 16

© 2007 Beck IPC GmbH

Page 2 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.9.2 Function: SysSemDelete................................................................................................................ 17 2.9.3 SysSemEnter.................................................................................................................................. 17 2.9.4 Function: SysSemTry..................................................................................................................... 17 2.9.5 Function: SysSemLeave................................................................................................................. 17 2.10 SYSLIBSOCKETS.LIB .............................................................................................................................. 17 2.10.1 Struct: INADDR ............................................................................................................................ 17 2.10.2 Struct: SOCKADDRESS................................................................................................................ 17 2.10.3 Struct: SOCKET_FD_SET ............................................................................................................ 17 2.10.4 Struct: SOCKET_LINGER ............................................................................................................ 17 2.10.5 Struct: SOCKET_TIMEVAL.......................................................................................................... 17 2.10.6 Function: SysSockCreate .............................................................................................................. 18 2.10.7 Function: SysSockClose ................................................................................................................ 18 2.10.8 Function: SysSockSetOption ......................................................................................................... 18 2.10.9 Function: SysSockGetOption ........................................................................................................ 19 2.10.10 Function: SysSockBind.............................................................................................................. 19 2.10.11 Function: SysSockGetHostName............................................................................................... 19 2.10.12 Function: SysSockGetHostByName .......................................................................................... 19 2.10.13 Function: SysSockInetNtoa ....................................................................................................... 20 2.10.14 Function: SysSockInetAddr ....................................................................................................... 20 2.10.15 Function: SysSockHtons............................................................................................................ 20 2.10.16 Function: SysSockHtonl ............................................................................................................ 20 2.10.17 Function: SysSockNtohs............................................................................................................ 20 2.10.18 Function: SysSockNtohl ............................................................................................................ 21 2.10.19 Function: SysSockListen ........................................................................................................... 21 2.10.20 Function: SysSockAccept .......................................................................................................... 21 2.10.21 Function: SysSockConnect ........................................................................................................ 21 2.10.22 Function: SysSockShutdown...................................................................................................... 22 2.10.23 Function: SysSockIoctl.............................................................................................................. 22 2.10.24 Function: SysSockGetLastError................................................................................................ 22 2.10.25 Function: SysSockGetLastErrorSync ........................................................................................ 22 2.10.26 Function: SysSockSetIPAddress................................................................................................ 22 2.10.27 Function: SysSockSelect............................................................................................................ 23 2.10.28 Function: SysSockRecv ............................................................................................................. 23 2.10.29 Function: SysSockSend ............................................................................................................. 23 2.10.30 Function: SysSockRecvFrom..................................................................................................... 24 2.10.31 Function: SysSockSendTo ......................................................................................................... 24 2.11 SYSLIBSTR.LIB ...................................................................................................................................... 24 2.11.1 Function: SysStrLen ...................................................................................................................... 24 2.11.2 Function: SysStrCpy...................................................................................................................... 25 2.11.3 Function: SysStrCmp..................................................................................................................... 25 2.11.4 Function: SysStrCmpI ................................................................................................................... 25 2.11.5 Function: SysStrCmpN.................................................................................................................. 25 2.11.6 Function: SysStrCmpNI................................................................................................................. 25 2.12 SYSLIBTIME.LIB .................................................................................................................................... 25 2.12.1 Struct: SystemTimeDate ................................................................................................................ 25 2.12.2 Struct: SysTime64.......................................................................................................................... 26 2.12.3 FunctionsBlock: CurTime ............................................................................................................. 26 2.12.4 FunctionsBlock: CurTimeEx ......................................................................................................... 26 2.13 BECKRTL.LIB ......................................................................................................................................... 26 2.13.1 Function: BeckRtlGetCodeArea0Address ..................................................................................... 26 2.13.2 Function: BeckRtlGetCodeArea0Size ........................................................................................... 26 2.13.3 Function: BeckRtlGetInputAddress............................................................................................... 26 2.13.4 Function: BeckRtlGetInputSize ..................................................................................................... 27 2.13.5 Function: BeckRtlGetOutputAddress ............................................................................................ 27 2.13.6 Function: BeckRtlGetOutputSize .................................................................................................. 27 2.13.7 Function: BeckRtlGetMemoryAddress.......................................................................................... 27 2.13.8 Function: BeckRtlGetRetainAddress............................................................................................. 27 2.13.9 Function: BeckRtlGetRetainSize ................................................................................................... 28 2.13.10 Function: BeckRtlGetRtsVersionString..................................................................................... 28 2.13.11 Function: BeckRtlGetTargetID ................................................................................................. 28 2.13.12 Function: BeckRtlMemCpy ....................................................................................................... 28 2.13.13 Function: BeckRtlMemCmp ...................................................................................................... 28

© 2007 Beck IPC GmbH Page 3 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.13.14 Function: BeckRtlMemSet......................................................................................................... 29 2.13.15 Function: BeckRtlGetPOUSegment .......................................................................................... 29 2.14 EASYIP.LIB ............................................................................................................................................ 29 2.14.1 Struct: EasyPaket .......................................................................................................................... 29 2.14.2 Struct: EasyStatus ......................................................................................................................... 29 2.14.3 Array: IPTable .............................................................................................................................. 29 2.14.4 Program: EasyIP_Start_CB.......................................................................................................... 29 2.14.5 Program: EasyIP_Stop_CB .......................................................................................................... 29 2.14.6 Program: Easy_Init....................................................................................................................... 30 2.14.7 Program: Easy_DeInit .................................................................................................................. 30 2.14.8 Program: Easy_Server.................................................................................................................. 30 2.14.9 Function: Easy_SetIPAddr............................................................................................................ 30 2.14.10 Function: Easy_SetTimeout ...................................................................................................... 30 2.14.11 Function: Easy_SR.................................................................................................................... 31 2.14.12 Function: Easy_S ...................................................................................................................... 31 2.14.13 Function: Easy_R...................................................................................................................... 32 2.14.14 Function: IPFrom4Chars.......................................................................................................... 32 2.15 I2C.LIB ................................................................................................................................................... 32 2.15.1 Function: I2cInit ........................................................................................................................... 32 2.15.2 Function: I2cScan ......................................................................................................................... 33 2.15.3 Function: I2cSendByte .................................................................................................................. 33 2.15.4 Function: I2cReceiveByte ............................................................................................................. 33 2.15.5 Function: I2cSendBlock ................................................................................................................ 33 2.15.6 Function: I2cReceiveBlock ........................................................................................................... 34 2.15.7 Function: I2cRestart ..................................................................................................................... 34 2.15.8 Function: I2cRelease..................................................................................................................... 34 2.15.9 Function: I2cSelectPins ................................................................................................................ 34 2.16 INT86.LIB ............................................................................................................................................... 34 2.16.1 Struct: REGS ................................................................................................................................. 34 2.16.2 Struct: SREGS ............................................................................................................................... 34 2.16.3 Function: INT86............................................................................................................................ 35 2.17 RS485.LIB.............................................................................................................................................. 35 2.17.1 Enumeration: RS485_BREAK....................................................................................................... 35 2.17.2 Enumeration: RS485_FLOWCTRL............................................................................................... 35 2.17.3 Enumeration: RS485_MODE........................................................................................................ 35 2.17.4 Enumeration: RS485_PARITY ...................................................................................................... 35 2.17.5 Enumeration: RS485_PORTS ....................................................................................................... 35 2.17.6 Function: Rs485ComOpen............................................................................................................ 36 2.17.7 Function: Rs485GetStatus............................................................................................................. 36 2.17.8 Function: Rs485ComClose ........................................................................................................... 36 2.17.9 Function: Rs485FlushOutput........................................................................................................ 36 2.17.10 Function: Rs485PurgeOutput ................................................................................................... 36 2.17.11 Function: Rs485PurgeInput ...................................................................................................... 37 2.17.12 Function: Rs485SetMode .......................................................................................................... 37 2.17.13 Function: Rs485SendBreak....................................................................................................... 37 2.17.14 Function: Rs485SendBlock ....................................................................................................... 37 2.17.15 Function: Rs485SetFlowcontrol................................................................................................ 38 2.17.16 Function: Rs485ReceiveBlock................................................................................................... 38 2.17.17 Function: Rs485SendByte ......................................................................................................... 38 2.17.18 Function: Rs485ReceiveByte..................................................................................................... 38 2.17.19 Function: Rs485IsByteAvailable............................................................................................... 38 2.18 RTOS.LIB ................................................................................................................................................ 39 2.18.1 Struct: MSG_EX............................................................................................................................ 39 2.18.2 Function: RtosGetRebootReason .................................................................................................. 39 2.18.3 Function: RtosIpconfig.................................................................................................................. 39 2.18.4 Function: RtosDhcpUse ................................................................................................................ 39 2.18.5 Function: RtosGetDhcpStat .......................................................................................................... 39 2.18.6 Function: RtosGetBootstrapVersion ............................................................................................. 40 2.18.7 Function: RtosGetVersion............................................................................................................. 40 2.18.8 Function: RtosGetVersionString ................................................................................................... 40 2.18.9 Function: RtosGetMacAddress ..................................................................................................... 40 2.18.10 Function: RtosGetDevicenames ................................................................................................ 40

© 2007 Beck IPC GmbH Page 4 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.18.11 Function: RtosGetLinkstate....................................................................................................... 41 2.18.12 Function: RtosReboot................................................................................................................ 41 2.18.13 Function: RtosServers ............................................................................................................... 41 2.18.14 Function: RtosGetPPPIP .......................................................................................................... 41 2.18.15 Function: RtosGetIniEntry ........................................................................................................ 42 2.18.16 Function: RtosSetIniEntry......................................................................................................... 42 2.18.17 Function: RtosCreateMsg ......................................................................................................... 42 2.18.18 Function: RtosDeleteMsg.......................................................................................................... 42 2.18.19 Function: RtosSendMsg ............................................................................................................ 43 2.18.20 Function: RtosGetMsg .............................................................................................................. 43 2.18.21 Function: RtosFindMsg............................................................................................................. 43 2.19 SPI.LIB .................................................................................................................................................... 43 2.19.1 Function: SpiInit ........................................................................................................................... 43 2.19.2 Function: SpiTransmit................................................................................................................... 44 2.19.3 Function: SpiReceive..................................................................................................................... 44 2.19.4 Function: SpiSelectPins ................................................................................................................ 44

© 2007 Beck IPC GmbH

Page 5 of 44

CoDeSys@CHIP Differences IEC Interface V1.00

1

Introduction

With this Release of the CoDeSys@CHIP SDK Beck Edition 07 2007, the previous Beta releases (Beck Editions 01 2006 and 10 2006 and 05 2007) became obsolete. The IEC Platforms, based on the Embedded RTS for the SC1x3 IPC@CHIP® processor family (in V1.10 ß1 and V1.11 ß2) are no longer supported and are replaced by new IEC Platforms based on the Full RTS in this release. The Embedded RTS is now only supported for the SC1x IPC@CHIP® processor family. This document describes the necessary steps a customer has to take for a migration of an existing IEC Program, based on an Embedded IEC Platform into a new one, based on a Full IEC Platform. In general: The IEC Libraries have been reviewed and some interfaces of individual functions have been changed. Goal was to use as much as possible the interfaces provided by 3S in their IECLibraries. In the rest of this document, the differences in the IEC Libraries are described. This will provide the most important help in the migration of an existing IEC Program from an Embedded IEC Platform to a new Full IEC Platform. Basic knowledge of IEC Programming is necessary for a correct understanding of this document and a successful migration. For more detailed information is referenced to the CoDeSys Online Help.

© 2007 Beck IPC GmbH

Page 6 of 44

CoDeSys@CHIP Differences IEC Interface V1.00

2

2.1

IEC Libraries

Overview

Embedded Full Comment 3S Library 3S Library 3S Library 3S Library See Par. 2.2 See Par. 2.3 See Par. 2.4 See Par. 2.5 See Par. 2.6 NOT Supported NOT Supported See Par. 2.7 See Par. 2.8 See Par. 2.9 See Par. 2.10 See Par. 2.11 See Par. 2.12 See Par. 2.13, Only for OEM Customers See Par. 2.14 See Par. 2.15 See Par. 2.16 See Par. 2.17 See Par. 2.18 See Par. 2.19 3S Library

Library Standard.lib AnalyzationNew.lib Iecsfc.lib Util.lib SysLibCallback.lib SysLibCom.lib SysLibDir.lib SysLibEvent.lib SysLibFile.lib SysLibIecTasks.lib SysLibInt.lib SysLibPlcCtrl.lib SysLibPorts.lib SysLibSem.lib SysLibSockets.lib SysLibStr.lib SysLibTime.lib BeckRtl.lib EasyIP.lib i2c.lib int86.lib rs485.lib rtos.lib spi.lib NetVarUdp_LIB_V23.lib

2.2

2.2.1

SysLibCallback.lib

Enumeration: RTS_EVENT

New defines added in Full. 2.2.2 Enumeration: RTS_EVENT_FILTER

Values of defines modified in Full. 2.2.3 Enumeration: RTS_EVENT_SOURCE

Not changed.

© 2007 Beck IPC GmbH

Page 7 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.2.4 Function: SysCallbackRegister No Funct Parm Retval Funct Parm Retval BOOL: SysCallbackRegister INT: iPOUIndex RTS_EVENT: Event BOOL: TRUE (Success), FALSE (Error) BOOL: SysCallbackRegister INT: iPOUIndex RTS_EVENT: Event BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded

Full

2.2.5

Function: SysCallbackUnregister No Funct Parm Retval Funct Parm Retval BOOL: SysCallbackUnregister INT: iPOUIndex RTS_EVENT: Event BOOL: TRUE (Success), FALSE (Error) BOOL: SysCallbackUnregister INT: iPOUIndex RTS_EVENT: Event BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded

Full

2.3

2.3.1

SysLibCom.lib

Struct: COMSETTINGS

Not changed. 2.3.2 Struct: COMSETTINGSEX

New in Full. 2.3.3 Enumeration: PORTS Yes Enum Enum PORTS: SYSPORTEXT (1), SYSPORTCOM, SYSPORTSER2, SYSPORTSER3 PORTS: COM1 (1), COM2, COM3, COM4, COM5, COM6, COM7, COM8

Changed: Embedded Full

2.3.4

Function: SysComOpen No Funct Parm Retval Funct Parm Retval DWORD: SysComOpen PORTS: Port DWORD: "-1" (Error), >=0 (Handle opened Port) DWORD: SysComOpen PORTS: Port DWORD: "FFFF" (Error), >=0 (Handle opened Port)

Changed: Embedded

Full

© 2007 Beck IPC GmbH

Page 8 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.3.5 Function: SysComClose No Funct Parm Retval Funct Parm Retval BOOL: SysComClose DWORD: dwHandle BOOL: TRUE (Success), FALSE (Error) BOOL: SysComClose DWORD: dwHandle BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded

Full

2.3.6

Function: SysComRead No Funct Parm DWORD: SysComRead DWORD: dwHandle DWORD: dwBufferAddress DWORD: dwBytesToRead DWORD: dwTimeout (not used, must be zero) DWORD: 0 (Error), >0 (number of read bytes) DWORD: SysComRead DWORD: dwHandle DWORD: dwBufferAddress DWORD: dwBytesToRead DWORD: dwTimeout (not used, must be zero) DWORD: 0 (Error), >0 (number of read bytes)

Changed: Embedded

Full

Retval Funct Parm

Retval

2.3.7

Function: SysComWrite No Funct Parm DWORD: SysComWrite DWORD: dwHandle DWORD: dwBufferAddress DWORD: dwBytesToWrite DWORD: dwTimeout (not used, must be zero) DWORD: 0 (Error), >0 (number of written bytes) DWORD: SysComWrite DWORD: dwHandle DWORD: dwBufferAddress DWORD: dwBytesToWrite DWORD: dwTimeout (not used, must be zero) DWORD: 0 (Error), >0 (number of written bytes)

Changed: Embedded

Full

Retval Funct Parm

Retval

2.3.8

Function: SysComSetSettings No Funct Parm Retval Funct Parm Retval BOOL: SysComSetSettings DWORD: dwHandle Pointer to COMSETTINGS: ComSettings BOOL: TRUE (Success), FALSE (Error) BOOL: SysComSetSettings DWORD: dwHandle Pointer to COMSETTINGS: ComSettings BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded

Full

© 2007 Beck IPC GmbH

Page 9 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.3.9 Function: SysComSetSettingsEx New Funct Funct Parm Retval NOT Available BOOL: SysComSetSettingExs DWORD: dwHandle Pointer to COMSETTINGSEX: ComSettingsExt BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded Full

2.3.10 Function: SysComGetVersion2300 Changed: Embedded Full New Funct Funct Parm Retval NOT Available DWORD: SysComGetVersion2300 BOOL: bDummy DWORD: Returns always 0

2.4

SysLibDir.lib

This library was not in the Embedded RTS. In the Full RTS, only the functions "SysDirOpen" and "SysDirRead" supported.

2.5

2.5.1

SysLibEvent.lib

Function: SysEventCreate New Funct Funct Parm Retval NOT Available DWORD: SysEventCreate STRING: stName DWORD: Returns Handle to created Event

Changed: Embedded Full

2.5.2

Function: SysEventDelete New Funct Funct Parm Retval NOT Available BOOL: SysEventDelete DWORD: dwHandle BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded Full

2.5.3

Function: SysEventSet New Funct Funct Parm Retval NOT Available BOOL: SysEventSet DWORD: dwHandle BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded Full

© 2007 Beck IPC GmbH

Page 10 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.5.4 Function: SysEventWait New Funct Funct Parm Retval NOT Available BOOL: SysEventWait DWORD: dwHandle DWORD: dwTimeOut BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded Full

2.6

2.6.1

SysLibFile.lib

Function: SysFileOpen No Funct Parm Retval Funct Parm Retval DWORD: SysFileOpen STRING: FileName STRING [20]: Mode DWORD: 0 (Error), >0 (Handle of opened file) DWORD: SysFileOpen STRING: FileName STRING [20]: Mode DWORD: 0 (Error), >0 (Handle of opened file)

Changed: Embedded

Full

2.6.2

Function: SysFileClose No Funct Parm Retval Funct Parm Retval BOOL: SysFileClose DWORD: File BOOL: TRUE (Success), FALSE (Error) BOOL: SysFileClose DWORD: File BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded

Full

2.6.3

Function: SysFileRead No Funct Parm DWORD: SysFileRead DWORD: File DWORD: Buffer DWORD: Size DWORD: Number of bytes read DWORD: SysFileRead DWORD: File DWORD: Buffer DWORD: Size DWORD: Number of bytes read

Changed: Embedded

Full

Retval Funct Parm

Retval

© 2007 Beck IPC GmbH

Page 11 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.6.4 Function: SysFileWrite No Funct Parm DWORD: SysFileWrite DWORD: File DWORD: Buffer DWORD: Size DWORD: Number of bytes written DWORD: SysFileWrite DWORD: File DWORD: Buffer DWORD: Size DWORD: Number of bytes written

Changed: Embedded

Full

Retval Funct Parm

Retval

2.6.5

Function: SysFileDelete No Funct Parm Retval Funct Parm Retval BOOL: SysFileDelete STRING: FileName BOOL: TRUE (Success), FALSE (Error) BOOL: SysFileDelete STRING: FileName BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded

Full

2.6.6

Function: SysFileRename No Funct Parm Retval Funct Parm Retval BOOL: SysFileRename STRING: FileOldName STRING: FileNewName BOOL: TRUE (Success), FALSE (Error) BOOL: SysFileRename STRING: FileOldName STRING: FileNewName BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded

Full

2.6.7

Function: SysFileGetSize No Funct Parm Retval Funct Parm Retval DINT: SysFileGetSize STRING: FileName DINT: -1 (Error), >= 0 (FileSize) DINT: SysFileGetSize STRING: FileName DINT: -1 (Error), >= 0 (FileSize)

Changed: Embedded

Full

2.6.8

Function: SysFileGetTime No Funct Parm Retval Funct Parm Retval BOOL: SysFileGetTime STRING: FileName Pointer to FILETIME: ftFileTime BOOL: TRUE (Success), FALSE (Error) BOOL: SysFileGetTime STRING: FileName Pointer to FILETIME: ftFileTime BOOL: TRUE (Success), FALSE (Error)

Page 12 of 44

Changed: Embedded

Full

© 2007 Beck IPC GmbH

CoDeSys@CHIP Differences IEC Interface V1.00 2.6.9 Function: SysFileSetPos No Funct Parm Retval Funct Parm Retval BOOL: SysFileSetPos DWORD: File DWORD: Pos BOOL: TRUE (Success), FALSE (Error) BOOL: SysFileSetPos DWORD: File DWORD: Pos BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded

Full

2.6.10 Function: SysFileGetPos Changed: Embedded No Funct Parm Retval Funct Parm Retval DINT: SysFileGetPos DWORD: File DINT: Current file position DINT: SysFileGetPos DWORD: File DINT: Current file position

Full

2.6.11 Function: SysFileEOF Changed: Embedded No Funct Parm Retval Funct Parm Retval BOOL: SysFileEOF DWORD: File BOOL: TRUE (EOF), FALSE (Not EOF) BOOL: SysFileEOF DWORD: File BOOL: TRUE (EOF), FALSE (Not EOF)

Full

2.6.12 Function: SysFileCopy Changed: Embedded No Funct Parm Retval Funct Parm Retval UDINT: SysFileCopy STRING: FileDest STRING: FileSource UDINT: Number of bytes copied UDINT: SysFileCopy STRING: FileDest STRING: FileSource UDINT: Number of bytes copied

Full

2.7

2.7.1

SysLibPlcCtrl.lib

Enumeration: RESET_MODE

Not changed.

© 2007 Beck IPC GmbH

Page 13 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.7.2 Function: SysStartPlcProgram Yes Funct Parm Retval Funct Parm Retval BOOL: SysStartPlcProgram BOOL: bDummy (must be TRUE) BOOL: TRUE (Success), FALSE (Error) BOOL: SysStartPlcProgram BOOL: bDummy (must be TRUE) BOOL: Returns always TRUE

Changed: Embedded

Full

2.7.3

Function: SysStopPlcProgram Yes Funct Parm Retval Funct Parm Retval BOOL: SysStopPlcProgram BOOL: bDummy (must be TRUE) BOOL: TRUE (Success), FALSE (Error) BOOL: SysStopPlcProgram BOOL: bDummy (must be TRUE) BOOL: Returns always TRUE

Changed: Embedded

Full

2.7.4

Function: SysResetPlcProgram No Funct Parm Retval Funct Parm Retval BOOL: SysResetPlcProgram RESET_MODE: rmRESETMODE BOOL: Returns always TRUE BOOL: SysResetPlcProgram RESET_MODE: rmRESETMODE BOOL: Returns always TRUE

Changed: Embedded

Full

2.7.5

Function: SysGetPlcLoad Yes Funct Parm Retval Funct Parm Retval DWORD: SysGetPlcLoad DINT: bDummy DWORD: Undefined DWORD: SysGetPlcLoad DINT: bDummy DWORD: Returns always "0" NOT IMPLEMENTED

Changed: Embedded

Full

NOT Supported

2.7.6

Function: SysShutdownPlc Yes Funct Parm Retval Funct Parm Retval BOOL: SysShutdownPlc NOT IMPLEMENTED BOOL: bDummy BOOL: Returns always FALSE (Error) BOOL: SysShutdownPlc Not Supported BOOL: bDummy BOOL: TRUE (Shutdown started or in progress), FALSE (No Shutdown)

Changed: Embedded

Full

2.7.7

Function: SysEnableScheduling New Funct Funct Parm Retval NOT Available BOOL: SysEnableScheduling BOOL: bEnable BOOL: Returns always TRUE

Changed: Embedded Full

Not Supported

© 2007 Beck IPC GmbH

Page 14 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.7.8 Function: SysRestoreRetains Yes Funct Parm Retval Funct Parm Retval BOOL: SysRestoreRetains NOT IMPLEMENTED STRING: stFileName BOOL: Returns always FALSE (Error) DINT: SysRestoreRetains STRING: stFileName DINT: <0 (Error), 0 (No Program), 1 (Success)

Changed: Embedded

Full

2.7.9

Function: SysSaveRetains Yes Funct Parm Retval Funct Parm Retval DINT: SysSaveRetains NOT IMPLEMENTED STRING: stFileName DINT: Returns always "0" (Error) DINT: SysSaveRetains STRING: stFileName DINT: <0 (Error), 0 (No Program), 1 (Success)

Changed: Embedded

Full

2.7.10 Function: SysWdgEnable Changed: Embedded Yes Funct Parm BOOL: SysWdgEnable NOT IMPLEMENTED BOOL: bEnamble BYTE: byIECTaskIndex Pointer to STRING: stIECTaskName BOOL: returns always FALSE (Error) BOOL: SysWdgEnable Not Supported BOOL: bEnamble BYTE: byIECTaskIndex Pointer to STRING: stIECTaskName BOOL: TRUE (Success), FALSE (Error)

Full

Retval Funct Parm

Retval

2.8

2.8.1

SysLibPorts.lib

Function: SysPortIn No Funct Parm Retval Funct Parm Retval BYTE: SysPortIn WORD: wPort BYTE: returns read BYTE BYTE: SysPortIn WORD: wPort BYTE: returns read BYTE

Changed: Embedded

Full

2.8.2

Function: SysPortInW No Funct Parm Retval Funct Parm Retval WORD: SysPortInW WORD: wPort WORD: returns read WORD WORD: SysPortInW WORD: wPort WORD: returns read WORD

Changed: Embedded

Full

© 2007 Beck IPC GmbH

Page 15 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.8.3 Function: SysPortInD No Funct Parm Retval Funct Parm Retval DWORD: SysPortInD WORD: wPort DWORD: returns read DWORD DWORD: SysPortInD WORD: wPort DWORD: returns read DWORD

Changed: Embedded

Full

2.8.4

Function: SysPortOut No Funct Parm Retval Funct Parm Retval BOOL: SysPortOut WORD: wPort BYTE: byData BOOL: Returns always TRUE (Success) BOOL: SysPortOut WORD: wPort BYTE: byData BOOL: Returns always TRUE (Success)

Changed: Embedded

Full

2.8.5

Function: SysPortOutW No Funct Parm Retval Funct Parm Retval BOOL: SysPortOutW WORD: wPort WORD: wData BOOL: Returns always TRUE (Success) BOOL: SysPortOutW WORD: wPort WORD: wData BOOL: Returns always TRUE (Success)

Changed: Embedded

Full

2.8.6

Function: SysPortOutD No Funct Parm Retval Funct Parm Retval BOOL: SysPortOutD WORD: wPort DWORD: dwData BOOL: Returns always TRUE (Success) BOOL: SysPortOutD WORD: wPort DWORD: dwData BOOL: Returns always TRUE (Success)

Changed: Embedded

Full

2.9

2.9.1

SysLibSem.lib

Function: SysSemCreate New Funct Funct Parm Retval NOT Available DWORD: SysSemCreate BOOL: bDummy DWORD: -1 (Error), >=0 (Handle created Semaphore)

Changed: Embedded Full

© 2007 Beck IPC GmbH

Page 16 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.9.2 Function: SysSemDelete New Funct Funct Parm Retval NOT Available BOOL: SysSemDelete DWORD: dwHandle BOOL: TRUE (Success), FALSE (Error)

Changed: Embedded Full

2.9.3

SysSemEnter New Funct Funct Parm Retval NOT Available BOOL: SysSemEnter DWORD: dwHandle BOOL: TRUE (Entered), FALSE (Error)

Changed: Embedded Full

2.9.4

Function: SysSemTry New Funct Funct Parm Retval NOT Available BOOL: SysSemTry DWORD: dwHandle BOOL: TRUE (Entered), FALSE (Error)

Changed: Embedded Full

2.9.5

Function: SysSemLeave New Funct Funct Parm Retval NOT Available BOOL: SysSemLeave DWORD: dwHandle BOOL: TRUE (Left), FALSE (Error)

Changed: Embedded Full

2.10 SysLibSockets.lib

2.10.1 Struct: INADDR Not changed. 2.10.2 Struct: SOCKADDRESS Not changed. 2.10.3 Struct: SOCKET_FD_SET New in Full (Not used in library).

2.10.4 Struct: SOCKET_LINGER New in Full (Not used in library).

2.10.5 Struct: SOCKET_TIMEVAL New in Full (Not used in library).

© 2007 Beck IPC GmbH

Page 17 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.10.6 Function: SysSockCreate Changed: Embedded No Funct Parm DINT: SysSockCreate DINT: diAddressFamily DINT: diType DINT: diProtocol DINT: -1 (Error), >=0 (Socket Descriptor) DINT: SysSockCreate DINT: diAddressFamily DINT: diType DINT: diProtocol DINT: -1 (Error), >=0 (Socket Descriptor)

Full

Retval Funct Parm

Retval

2.10.7 Function: SysSockClose Changed: Embedded No Funct Parm Retval Funct Parm Retval BOOL: SysSockClose DINT: diSocket BOOL: TRUE (Success), FALSE (Error) BOOL: SysSockClose DINT: diSocket BOOL: TRUE (Success), FALSE (Error)

Full

2.10.8 Function: SysSockSetOption Changed: Embedded No Funct Parm BOOL: SysSockSetOption DINT: diSocket DINT: diLevel DINT: diOption DWORD: pOptionValue DINT: diOptionLength BOOL: TRUE (Success), FALSE (Error) DINT: diSocket DINT: diLevel DINT: diOption DWORD: pOptionValue DINT: diOptionLength DINT: diSocket BOOL: TRUE (Success), FALSE (Error)

Full

Retval Funct Parm

Retval

© 2007 Beck IPC GmbH

Page 18 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.10.9 Function: SysSockGetOption Changed: Embedded No Funct Parm BOOL: SysSockGetOption DINT: diSocket DINT: diLevel DINT: diOption DWORD: pOptionValue DWORD: piOptionLength BOOL: TRUE (Success), FALSE (Error) BOOL: SysSockGetOption DINT: diSocket DINT: diLevel DINT: diOption DWORD: pOptionValue DWORD: piOptionLength BOOL: TRUE (Success), FALSE (Error)

Full

Retval Funct Parm

Retval

2.10.10 Function: SysSockBind Changed: Embedded No Funct Parm BOOL: SysSockBind DINT: diSocket DWORD: pSockAddrAddress DINT: diSockAddrSize BOOL: TRUE (Success), FALSE (Error) BOOL: SysSockBind DINT: diSocket DWORD: pSockAddr DINT: diSockAddrSize BOOL: TRUE (Success), FALSE (Error)

Full

Retval Funct Parm

Retval

2.10.11 Function: SysSockGetHostName Changed: Embedded No Funct Parm Retval Funct Parm Retval BOOL: SysSockGetHostName STRING: stHostName DINT: diNameLength BOOL: TRUE (Success), FALSE (Error) BOOL: SysSockGetHostName Pointer to STRING: stHostName DINT: diNameLength BOOL: TRUE (Success), FALSE (Error)

Full

2.10.12 Function: SysSockGetHostByName Changed: Embedded Yes Funct Parm Retval Funct Parm Retval DWORD: SysSockGetHostByName Pointer to STRING: stHostName DWORD: IP Address as DWORD DWORD: SysSockGetHostByName Pointer to STRING: stHostName DWORD: "FFFF" (Error), >0 (IP Address as DWORD)

Full

© 2007 Beck IPC GmbH

Page 19 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.10.13 Function: SysSockInetNtoa Changed: Embedded Yes Funct Parm BOOL: SysSockInetNtoa INADDR: InAddr STRING: stIPAddr DINT: diIPAddrSize BOOL: TRUE (Success), FALSE (Error) BOOL: SysSockInetNtoa INADDR: InAddr STRING: stIPAddr DINT[16]: diIPAddrSize BOOL: Returns always TRUE (Success)

Full

Retval Funct Parm

Retval

2.10.14 Function: SysSockInetAddr Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: SysSockInetAddr STRING: stIPAddr DWORD: IP Address as DWORD DWORD: SysSockInetAddr STRING: stIPAddr DWORD: IP Address as DWORD

Full

2.10.15 Function: SysSockHtons Changed: Embedded No Funct Parm Retval Funct Parm Retval WORD: SysSockHtons WORD: wHost WORD: Converted wHost Value WORD: SysSockHtons WORD: wHost WORD: Converted wHost Value

Full

2.10.16 Function: SysSockHtonl Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: SysSockHtonl DWORD: dwHost DWORD: Converted dwHost Value DWORD: SysSockHtonl DWORD: dwHost DWORD: Converted dwHost Value

Full

2.10.17 Function: SysSockNtohs Changed: Embedded No Funct Parm Retval Funct Parm Retval WORD: SysSockNtohs WORD: wNet WORD: Converted wNet Value WORD: SysSockNtohs WORD: wNet WORD: Converted wNet Value

Full

© 2007 Beck IPC GmbH

Page 20 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.10.18 Function: SysSockNtohl Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: SysSockNtohl DWORD: dwNet DWORD: Converted dwNet Value DWORD: SysSockNtohl DWORD: dwNet DWORD: Converted dwNet Value

Full

2.10.19 Function: SysSockListen Changed: Embedded No Funct Parm Retval Funct Parm Retval BOOL: SysSockListen DINT: diSocket DINT: diMaxConnections BOOL: TRUE (Success), FALSE (Error) BOOL: SysSockListen DINT: diSocket DINT: diMaxConnections BOOL: TRUE (Success), FALSE (Error)

Full

2.10.20 Function: SysSockAccept Changed: Embedded No Funct Parm DINT: SysSockAccept DINT: diSocket DWORD: pSockAddr DWORD: piSockAddrSize DINT: -1 (Error), >=0 (Socket Descriptor of new connection) DINT: SysSockAccept DINT: diSocket DWORD: pSockAddr DWORD: piSockAddrSize DINT: -1 (Error), >=0 (Socket Descriptor of new connection)

Full

Retval Funct Parm

Retval

2.10.21 Function: SysSockConnect Changed: Embedded No Funct Parm BOOL: SysSockConnect DINT: diSocket DWORD: pSockAddr DINT: diSockAddrSize BOOL: TRUE (Success), FALSE (Error) BOOL: SysSockConnect DINT: diSocket DWORD: pSockAddr DINT: diSockAddrSize BOOL: TRUE (Success), FALSE (Error)

Full

Retval Funct Parm

Retval

© 2007 Beck IPC GmbH

Page 21 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.10.22 Function: SysSockShutdown Changed: Embedded No Funct Parm Retval Funct Parm Retval BOOL: SysSockShutdown DINT: diSocket DINT: diHow BOOL: TRUE (Success), FALSE (Error) BOOL: SysSockShutdown DINT: diSocket DINT: diHow BOOL: TRUE (Success), FALSE (Error)

Full

2.10.23 Function: SysSockIoctl Changed: Embedded Yes Funct Parm DINT: SysSockIoctl DINT: diSocket DINT: diCommand DWORD: piParameter DINT: dependent on Command DINT: SysSockIoctl DINT: diSocket DINT: diCommand DWORD: piParameter DINT: dependent on Command, <0 (Error)

Full

Retval Funct Parm

Retval

2.10.24 Function: SysSockGetLastError Changed: Embedded Full New Funct FunBl Par I Par O NOT Available DWORD: SysSockGetLastError BOOL: bEnable DINT: diSocket BOOL: bDone BOOL: bBusy BOOL: bError WORD: wErrorId DWORD: dwLastError

2.10.25 Function: SysSockGetLastErrorSync Changed: Embedded Full New Funct Funct Parm Retval NOT Available DINT: SysSockGetLastErrorSync DINT: diSocket DINT: 0 (No Error), Else Error code (See RTOS Docu)

2.10.26 Function: SysSockSetIPAddress Changed: Embedded Full New Funct Funct Parm Retval NOT Available BOOL: SysSockSetIPAddress STRING: stCardName STRING: stIPAddress BOOL: Returns always FALSE

NOT Supported

© 2007 Beck IPC GmbH

Page 22 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.10.27 Function: SysSockSelect Changed: Embedded Full New Funct Funct Parm NOT Available DINT: SysSockSelect DINT: diWidth DWORD: fdRead DWORD: fdWrite DWORD: fdExcept DWORD: ptvTimeout DINT: Returns always 0

NOT Supported

Retval

2.10.28 Function: SysSockRecv Changed: Embedded No Funct Parm DINT: SysSockRecv DINT: diSocket DWORD: pbyBuffer DINT: diBufferSize DINT: diFlags DINT <0 (Error), >= 0 (Number of bytes received) DINT: SysSockRecv DINT: diSocket DWORD: pbyBuffer DINT: diBufferSize DINT: diFlags DINT <0 (Error), >= 0 (Number of bytes received)

Full

Retval Funct Parm

Retval

2.10.29 Function: SysSockSend Changed: Embedded No Funct Parm DINT: SysSockSend DINT: diSocket DWORD: pbyBuffer DINT: diBufferSize DINT: diFlags DINT <0 (Error), >= 0 (Number of bytes sent) DINT: SysSockSend DINT: diSocket DWORD: pbyBuffer DINT: diBufferSize DINT: diFlags DINT <0 (Error), >= 0 (Number of bytes sent)

Full

Retval Funct Parm

Retval

© 2007 Beck IPC GmbH

Page 23 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.10.30 Function: SysSockRecvFrom Changed: Embedded No Funct Parm DINT: SysSockRecvFrom DINT: diSocket DWORD: pbyBuffer DINT: diBufferSize DINT: diFlags DWORD: pSockAddr DINT: diSockAddrSize DINT <0 (Error), >= 0 (Number of bytes received) DINT: SysSockRecvFrom DINT: diSocket DWORD: pbyBuffer DINT: diBufferSize DINT: diFlags DWORD: pSockAddr DINT: diSockAddrSize DINT <0 (Error), >= 0 (Number of bytes received)

Full

Retval Funct Parm

Retval

2.10.31 Function: SysSockSendTo Changed: Embedded No Funct Parm DINT: SysSockSendTo DINT: diSocket DWORD: pbyBuffer DINT: diBufferSize DINT: diFlags DWORD: pSockAddr DINT: diSockAddrSize DINT <0 (Error), >= 0 (Number of bytes sent) DINT: SysSockSendTo DINT: diSocket DWORD: pbyBuffer DINT: diBufferSize DINT: diFlags DWORD: pSockAddr DINT: diSockAddrSize DINT <0 (Error), >= 0 (Number of bytes sent)

Full

Retval Funct Parm

Retval

2.11 SysLibStr.lib

2.11.1 Function: SysStrLen Changed: Embedded Full New Funct Funct Parm Retval NOT Available DINT: SysStrLen STRING: sString1 DINT: Number of chars in sString1 (without terminating "\0")

© 2007 Beck IPC GmbH

Page 24 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.11.2 Function: SysStrCpy Changed: Embedded Full New Funct Funct Parm Retval NOT Available DWORD: SysStrCpy STRING: sString1 STRING: sString2 DWORD: Returns pointer to sString1 (Destination)

2.11.3 Function: SysStrCmp Changed: Embedded Full New Funct Funct Parm Retval NOT Available DINT: SysStrCmp STRING: sString1 STRING: sString2 DINT: <0 (String1 < String2), 0 (String1 = String2), >0 (String1 > String2)

2.11.4 Function: SysStrCmpI Changed: Embedded Full New Funct Funct Parm Retval NOT Available DINT: SysStrCmpI STRING: sString1 STRING: sString2 DINT: <0 (String1 < String2), 0 (String1 = String2), >0 (String1 > String2)

2.11.5 Function: SysStrCmpN Changed: Embedded Full New Funct Funct Parm NOT Available DINT: SysStrCmpN STRING: sString1 STRING: sString2 DINT: diChars DINT: <0 (String1 < String2), 0 (String1 = String2), >0 (String1 > String2)

Retval

2.11.6 Function: SysStrCmpNI Changed: Embedded Full New Funct Funct Parm NOT Available DINT: SysStrCmpNI STRING: sString1 STRING: sString2 DINT: diChars DINT: <0 (String1 < String2), 0 (String1 = String2), >0 (String1 > String2)

Retval

2.12 SysLibTime.lib

2.12.1 Struct: SystemTimeDate Not changed.

© 2007 Beck IPC GmbH

Page 25 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.12.2 Struct: SysTime64 Not changed.

2.12.3 FunctionsBlock: CurTime Changed: Embedded Full No Fun Bl Par IO Fun Bl Par IO VOID: CurTime SysTime64: SystemTime VOID: CurTime SysTime64: SystemTime

2.12.4 FunctionsBlock: CurTimeEx Changed: Embedded No Fun Bl Par IO Funct Par IO VOID: CurTimeEx SysTime64: SystemTime SystemTimeDate: TimeDate VOID: CurTimeEx SysTime64: SystemTime SystemTimeDate: TimeDate

Full

2.13 BeckRtl.lib

Important Note: This is a "Hidden" Library and only to be used by OEM Customers. 2.13.1 Function: BeckRtlGetCodeArea0Address Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetCodeArea0Address VOID DWORD: returns address of IEC-CodeArea0 DWORD: BeckRtlGetCodeArea0Address VOID DWORD: returns address of IEC-CodeArea0

Full

2.13.2 Function: BeckRtlGetCodeArea0Size Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetCodeArea0Size VOID DWORD: returns size of IEC-CodeArea0 DWORD: BeckRtlGetCodeArea0Size VOID DWORD: returns size of IEC-CodeArea0

Full

2.13.3 Function: BeckRtlGetInputAddress Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetInputAddress VOID DWORD: returns address of IEC-InputArea DWORD: BeckRtlGetInputAddress VOID DWORD: returns address of IEC-InputArea

Full

© 2007 Beck IPC GmbH

Page 26 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.13.4 Function: BeckRtlGetInputSize Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetInputSize VOID DWORD: returns size of IEC-InputArea DWORD: BeckRtlGetInputSize VOID DWORD: returns size of IEC-InputArea

Full

2.13.5 Function: BeckRtlGetOutputAddress Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetOutputAddress VOID DWORD: returns address of IEC-OutputArea DWORD: BeckRtlGetOutputAddress VOID DWORD: returns address of IEC-OutputArea

Full

2.13.6 Function: BeckRtlGetOutputSize Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetOutputSize VOID DWORD: returns size of IEC-OutputArea DWORD: BeckRtlGetOutputSize VOID DWORD: returns size of IEC-OutputArea

Full

2.13.7 Function: BeckRtlGetMemoryAddress Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetMemoryAddress VOID DWORD: returns address of IEC-MemoryArea DWORD: BeckRtlGetMemoryAddress VOID DWORD: returns address of IEC-MemoryArea

Full

2.13.8 Function: BeckRtlGetRetainAddress Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetRetainAddress VOID DWORD: returns address of IEC-RetainArea DWORD: BeckRtlGetRetainAddress VOID DWORD: returns address of IEC-RetainArea

Full

© 2007 Beck IPC GmbH

Page 27 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.13.9 Function: BeckRtlGetRetainSize Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetRetainSize VOID DWORD: returns size of IEC-RetainArea DWORD: BeckRtlGetRetainSize VOID DWORD: returns size of IEC-RetainArea

Full

2.13.10 Function: BeckRtlGetRtsVersionString Changed: Embedded No Funct Parm Retval Funct Parm Retval STRING: BeckRtlGetRtsVersionString VOID STRING: returns the RTS-Version String STRING: BeckRtlGetRtsVersionString VOID STRING: returns the RTS-Version String

Full

2.13.11 Function: BeckRtlGetTargetID Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: BeckRtlGetTargetID VOID DWORD: returns Target ID DWORD: BeckRtlGetTargetID VOID DWORD: returns Target ID

Full

2.13.12 Function: BeckRtlMemCpy Changed: Embedded No Funct Parm DWORD: BeckRtlMemCpy DWORD: pDest DWORD: pSrc DWORD: len DWORD: returns pDest DWORD: BeckRtlMemCpy DWORD: pDest DWORD: pSrc DWORD: len DWORD: returns pDest

Full

Retval Funct Parm

Retval

2.13.13 Function: BeckRtlMemCmp Changed: Embedded No Funct Parm BOOL: BeckRtlMemCmp DWORD: pDest DWORD: pSrc DWORD: len BOOL: TRUE (Equal), FALSE (not equal) BOOL: BeckRtlMemCmp DWORD: pDest DWORD: pSrc DWORD: len BOOL: TRUE (Equal), FALSE (not equal)

Page 28 of 44

Full

Retval Funct Parm

Retval

© 2007 Beck IPC GmbH

CoDeSys@CHIP Differences IEC Interface V1.00 2.13.14 Function: BeckRtlMemSet Changed: Embedded No Funct Parm DWORD: BeckRtlMemSet DWORD: pDest INT: char DWORD: len DWORD: returns pDest DWORD: BeckRtlMemSet DWORD: pDest INT: char DWORD: len DWORD: returns pDest

Full

Retval Funct Parm

Retval

2.13.15 Function: BeckRtlGetPOUSegment Changed: Embedded Full New Funct Funct Parm Retval NOT Available DWORD: BeckRtlGetPOUSegment UINT: POUIndex DWORD: NULL (Error), Else Address POU Local Data Segment

2.14 EasyIP.lib

2.14.1 Struct: EasyPaket Not changed.

2.14.2 Struct: EasyStatus Not changed.

2.14.3 Array: IPTable Not changed.

2.14.4 Program: EasyIP_Start_CB Changed: Full New Prog Parm VOID: EasyIP_Start_CB DWORD: dwEvent DWORD: dwFilter DWORD: dwSource

2.14.5 Program: EasyIP_Stop_CB Changed: Full New Prog Parm VOID: EasyIP_Stop_CB DWORD: dwEvent DWORD: dwFilter DWORD: dwSource

© 2007 Beck IPC GmbH

Page 29 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.14.6 Program: Easy_Init Changed: Embedded Full No Prog Prog VOID: Easy_Init VOID: Easy_Init

2.14.7 Program: Easy_DeInit Changed: Embedded Full No Prog Prog VOID: Easy_DeInit VOID: Easy_DeInit

2.14.8 Program: Easy_Server Changed: Embedded Full No Prog Prog VOID: Easy_Server VOID: Easy_Server

2.14.9 Function: Easy_SetIPAddr Changed: Embedded No Funct Parm BOOL: Easy_SetIPAddr WORD: TableIndex BYTE: Byte1 BYTE: Byte2 BYTE: Byte3 BYTE: Byte4 BOOL: FALSE (Success), TRUE (Error) BOOL: Easy_SetIPAddr WORD: TableIndex BYTE: Byte1 BYTE: Byte2 BYTE: Byte3 BYTE: Byte4 BOOL: FALSE (Success), TRUE (Error)

Full

Retval Funct Parm

Retval

2.14.10 Function: Easy_SetTimeout Changed: Embedded No Funct Parm Retval Funct Parm Retval WORD: Easy_SetTimeout WORD: TimeOut WORD: undefined WORD: Easy_SetTimeout WORD: TimeOut WORD: undefined

Full

© 2007 Beck IPC GmbH

Page 30 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.14.11 Function: Easy_SR Changed: Embedded No Funct Parm WORD: Easy_SR WORD: TableIndex WORD: OpTypeSend WORD: NumToSend WORD: OpOffLocSend WORD: OpOffRemSend WORD: OpTypeReq WORD: NumToRequest WORD: OpOffLocReq WORD: OpOffRemReq INT: Status WORD: 0 (Success), else Error WORD: Easy_SR WORD: TableIndex WORD: OpTypeSend WORD: NumToSend WORD: OpOffLocSend WORD: OpOffRemSend WORD: OpTypeReq WORD: NumToRequest WORD: OpOffLocReq WORD: OpOffRemReq INT: Status WORD: 0 (Success), else Error

Full

Retval Funct Parm

Retval

2.14.12 Function: Easy_S Changed: Embedded No Funct Parm WORD: Easy_S WORD: TableIndex WORD: OpType WORD: NumToSend WORD: OpOffLoc WORD: OpOffRem INT: Status WORD: 0 (Success), else Error WORD: Easy_S WORD: TableIndex WORD: OpType WORD: NumToSend WORD: OpOffLoc WORD: OpOffRem INT: Status WORD: 0 (Success), else Error

Full

Retval Funct Parm

Retval

© 2007 Beck IPC GmbH

Page 31 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.14.13 Function: Easy_R Changed: Embedded No Funct Parm USINT: Easy_R WORD: TableIndex WORD: OpType WORD: NumToRequest WORD: OpOffLoc WORD: OpOffRem INT: Status WORD: 0 (Success), else Error USINT: Easy_R WORD: TableIndex WORD: OpType WORD: NumToRequest WORD: OpOffLoc WORD: OpOffRem INT: Status WORD: 0 (Success), else Error

Full

Retval Funct Parm

Retval

2.14.14 Function: IPFrom4Chars Changed: Embedded No Funct Parm DWORD: IPFrom4Chars BYTE: Byte1 BYTE: Byte2 BYTE: Byte3 BYTE: Byte4 DWORD: 32Bit value (Byte 4,3,2,1) DWORD: IPFrom4Chars BYTE: Byte1 BYTE: Byte2 BYTE: Byte3 BYTE: Byte4 DWORD: 32Bit value (Byte 4,3,2,1)

Full

Retval Funct Parm

Retval

2.15 i2c.lib

2.15.1 Function: I2cInit Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: I2cInit USINT: dummy USINT: 0 (returns always "0") BYTE: I2cInit BYTE: dummy BYTE: 0 (Error), 1 (Success)

Full

© 2007 Beck IPC GmbH

Page 32 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.15.2 Function: I2cScan Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: I2cScan BYTE: startAddr BYTE: endAddr USINT: 0 (No slave found), 255 (Timeout), 1-254: Addr first slave found BYTE: I2cScan BYTE: startAddr BYTE: endAddr BYTE: 0 (No slave found or Error), >0 (Addr first slave found)

Full

2.15.3 Function: I2cSendByte Changed: Embedded Yes Funct Parm Retval Funct Parm Retval INT: I2cSendByte BYTE: addr USINT: data INT: 0 (Success), Nonzero (Error) UINT: I2cSendByte BYTE: addr BYTE: data UINT: <256 (Success), >= 256 (Error)

Full

2.15.4 Function: I2cReceiveByte Changed: Embedded Yes Funct Parm Retval Funct Parm Retval UINT: I2cReceiveByte BYTE: addr USINT: more UINT: 0-255 (Byte read), >=256 (256 + Errorcode) UINT: I2cReceiveByte BYTE: addr BYTE: more UINT: 0-255 (Byte read), >=256 (256 + Errorcode)

Full

2.15.5 Function: I2cSendBlock Changed: Embedded Yes Funct Parm INT: I2cSendBlock BYTE: addr DWORD: pData INT: n INT: 0 (Success), Nonzero (Error) UINT: I2cSendBlock BYTE: addr DWORD: pData INT: n UINT: <256 (Success), >=256 (256 + Errorcode)

Full

Retval Funct Parm

Retval

© 2007 Beck IPC GmbH

Page 33 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.15.6 Function: I2cReceiveBlock Changed: Embedded Yes Funct Parm UINT: I2cReceiveBlock BYTE: addr DWORD: pData INT: n UINT: 0 (Success), Nonzero (Error) UINT: I2cReceiveBlock BYTE: addr DWORD: pData INT: n UINT: <256 (Success), >=256 (256 + Errorcode)

Full

Retval Funct Parm

Retval

2.15.7 Function: I2cRestart Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: I2cRestart USINT: dummy USINT: 0 (returns always "0") BYTE: I2cRestart BYTE: dummy BYTE: 0 (Error), 1 (Success)

Full

2.15.8 Function: I2cRelease Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: I2cRelease USINT: dummy USINT: 0 (returns always "0") BYTE: I2cRelease BYTE: dummy BYTE: 0 (Error), 1 (Success)

Full

2.15.9 Function: I2cSelectPins Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: I2cSelectPins USINT: clkPio USINT: dataPio USINT: 0 (returns always "0") BYTE: I2cSelectPins BYTE: clkPio BYTE: dataPio BYTE: 0 (Error), 1 (Success)

Full

2.16 int86.lib

2.16.1 Struct: REGS Not changed.

2.16.2 Struct: SREGS Not changed.

© 2007 Beck IPC GmbH Page 34 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.16.3 Function: INT86 Changed: Embedded No Funct Parm INT: INT86 BYTE: intno Pointer to REGS: regs Pointer to SREGS: sregs INT: 0 (returns always "0") INT: INT86 BYTE: intno Pointer to REGS: regs Pointer to SREGS: sregs INT: 0 (returns always "0")

Full

Retval Funct Parm

Retval

2.17 RS485.lib

2.17.1 Enumeration: RS485_BREAK Not Changed.

2.17.2 Enumeration: RS485_FLOWCTRL Not Changed.

2.17.3 Enumeration: RS485_MODE New in Full.

2.17.4 Enumeration: RS485_PARITY Not Changed.

2.17.5 Enumeration: RS485_PORTS Changed: Embedded Full New Enum Enum Integer Value used as Port number PORTS: RS485_COM1 (1), RS485_COM2, RS485_COM3, RS485_COM4, RS485_COM5, RS485_COM6, RS485_COM7, RS485_COM8

© 2007 Beck IPC GmbH

Page 35 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.17.6 Function: Rs485ComOpen Changed: Embedded Yes Funct Parm WORD: Rs485ComOpen INT: port DINT: baud RS485_PARITY: parity INT: wordlen INT: stopbits WORD: -1 (Error), 0-127 (Status Port) DWORD: Rs485ComOpen RS485_PORTS: port DINT: baud RS485_PARITY: parity INT: wordlen INT: stopbits DWORD: `FFFF', >0 Handle opened Port

Full

Retval Funct Parm

Retval

2.17.7 Function: Rs485GetStatus Changed: Embedded Yes Funct Parm Retval Funct Parm Retval WORD: Rs485GetStatus INT: port WORD: 0-127 (Status Port) INT: Rs485GetStatus DWORD: handle INT: -1 (Error), >=0 (Status)

Full

2.17.8 Function: Rs485ComClose Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: Rs485ComClose INT: port USINT: 0 (returns always "0") BOOL: Rs485ComClose DWORD: handle BOOL: TRUE (Success), FALSE (Error)

Full

2.17.9 Function: Rs485FlushOutput Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: Rs485FlushOutput INT: port USINT: 0 (returns always "0") BOOL: Rs485FlushOutput DWORD: handle BOOL: TRUE (Success), FALSE (Error)

Full

2.17.10 Function: Rs485PurgeOutput Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: Rs485PurgeOutput INT: port USINT: 0 (returns always "0") BOOL: Rs485PurgeOutput DWORD: handle BOOL: TRUE (Success), FALSE (Error)

Page 36 of 44

Full

© 2007 Beck IPC GmbH

CoDeSys@CHIP Differences IEC Interface V1.00 2.17.11 Function: Rs485PurgeInput Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: Rs485PurgeInput INT: port USINT: 0 (returns always "0") Rs485PurgeInput DWORD: handle BOOL: TRUE (Success), FALSE (Error)

Full

2.17.12 Function: Rs485SetMode Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: Rs485SetMode INT: port USINT: mode (1=RS485, 2=RS232) USINT: 0 (returns always "0") BOOL: Rs485SetMode DWORD: handle RS485_MODE: mode BOOL: TRUE (Success), FALSE (Error)

Full

2.17.13 Function: Rs485SendBreak Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: Rs485SendBreak INT: port RS485_BREAK: length USINT: 0 (returns always "0") BOOL: Rs485SendBreak DWORD: handle RS485_BREAK: length BOOL: TRUE (Success), FALSE (Error)

Full

2.17.14 Function: Rs485SendBlock Changed: Embedded Yes Funct Parm UINT: Rs485SendBlock INT: port DWORD: buffer UINT: count UINT: number of bytes transferred UINT: Rs485SendBlock DWORD: handle DWORD: buffer UINT: count UINT: 0 (Error), else number of bytes transferred

Full

Retval Funct Parm

Retval

© 2007 Beck IPC GmbH

Page 37 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.17.15 Function: Rs485SetFlowcontrol Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: Rs485SetFlowcontrol INT: port RS485_FLOWCTRL: flowctrl USINT: 0 (returns always "0") BOOL: Rs485SetFlowcontrol DWORD: handle RS485_FLOWCTRL: flowctrl BOOL: TRUE (Success), FALSE (Error)

Full

2.17.16 Function: Rs485ReceiveBlock Changed: Embedded Yes Funct Parm UINT: Rs485ReceiveBlock INT: port DWORD: buffer UINT: count UINT: Number of bytes received UINT: Rs485ReceiveBlock DWORD: handle DWORD: buffer UINT: count UINT: 0 (Error), else number of bytes received

Full

Retval Funct Parm

Retval

2.17.17 Function: Rs485SendByte Changed: Embedded Yes Funct Parm Retval Funct Parm Retval INT: Rs485SendByte INT: port INT: ch INT: 0 (Error), 1 (Success) INT: Rs485SendByte DWORD: handle BYTE: ch INT: -1 (Access Error), 0 (No Space), 1 (Success)

Full

2.17.18 Function: Rs485ReceiveByte Changed: Embedded Yes Funct Parm Retval Funct Parm Retval INT: Rs485ReceiveByte INT: port INT: -1 (Error), 0-255 (Byte read) INT: Rs485ReceiveByte DWORD: handle INT: -1 (Access Error or no Data), >= 0 (Byte Read)

Full

2.17.19 Function: Rs485IsByteAvailable Changed: Embedded Yes Funct Parm Retval Funct Parm Retval INT: Rs485IsByteAvailable INT: port INT: -1 (Error), 0-255 (Byte read) INT: Rs485IsByteAvailable DWORD: handle INT: -1 (Access Error or no Data), >= 0 (Byte Read)

Page 38 of 44

Full

© 2007 Beck IPC GmbH

CoDeSys@CHIP Differences IEC Interface V1.00

2.18 rtos.lib

2.18.1 Struct: MSG_EX Not Changed.

2.18.2 Function: RtosGetRebootReason Changed: Embedded No Funct Parm Retval Funct Parm Retval USINT: RtosGetRebootReason USINT: dummy USINT: 0=Unknown, 3=Watchdog, 4=Powerfail USINT: RtosGetRebootReason Byte: dummy Byte: 0=Unknown, 3=Watchdog, 4=Powerfail

Full

2.18.3 Function: RtosIpconfig Changed: Embedded No Funct Parm USINT: RtosIpconfig USINT: set DWORD: pIpString DWORD: pSubString DWORD: pGatewayString USINT: 0 (returns always "0") USINT: RtosIpconfig Byte: set pIpString : POINTERtoString pSubString :POINTERtoString pGatewayString : POINTERtoString Byte: 0 (returns always "0")

Full

Retval Funct Parm

Retval

2.18.4 Function: RtosDhcpUse Changed: Embedded No Funct Parm Retval Funct Parm Retval USINT: RtosDhcpUse USINT: onoffrd (0=DHCP Off, 1=DHCP On, 2=Read DHCP State) USINT: 0 (DHCP Off), 1 (DHCP On) USINT: RtosDhcpUse USINT: onoffrd (0=DHCP Off, 1=DHCP On, 2=Read DHCP State) Byte: 0 (DHCP Off), 1 (DHCP On)

Full

2.18.5 Function: RtosGetDhcpStat Changed: Embedded No Funct Parm Retval Funct Parm Retval WORD: RtosGetDhcpStat USINT: dummy WORD: 0 (DHCP in Progress), 1 (Successful configured), 2 (DHCP Failed) WORD: RtosGetDhcpStat Byte: dummy WORD: 0 (DHCP in Progress), 1 (Successful configured), 2 (DHCP Failed)

Full

© 2007 Beck IPC GmbH

Page 39 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.18.6 Function: RtosGetBootstrapVersion Changed: Embedded No Funct Parm Retval Funct Parm Retval WORD: RtosGetBootstrapVersion USINT: dummy WORD: High Byte: Most sign. Digit, Low Byte Least sign. digit WORD: RtosGetBootstrapVersion Byte: dummy WORD: High Byte: Most sign. Digit, Low Byte Least sign. digit

Full

2.18.7 Function: RtosGetVersion Changed: Embedded No Funct Parm Retval Funct Parm Retval DWORD: RtosGetVersion USINT: dummy DWORD: HB-LW: Most sign. Digit, LB-LW Least sign. digit, HW=1 (Beta) DWORD: RtosGetVersion Byte: dummy DWORD: HB-LW: Most sign. Digit, LB-LW Least sign. digit, HW=1 (Beta)

Full

2.18.8 Function: RtosGetVersionString Changed: Embedded No Funct Parm Retval Funct Parm Retval USINT: RtosGetVersionString DWORD: pBuf INT: len USINT: 0 (returns always "0") USINT: RtosGetVersionString pBuf : POINTERtoBYTE INT: len Byte: 0 (returns always "0")

Full

2.18.9 Function: RtosGetMacAddress Changed: Embedded No Funct Parm Retval Funct Parm Retval USINT: RtosGetMacAddress DWORD: pBuf USINT: 0 (returns always "0") USINT: RtosGetMacAddress POINTERtoByte: pBuf Byte: 0 (returns always "0")

Full

2.18.10 Function: RtosGetDevicenames Changed: Embedded No Funct Parm USINT: RtosGetDevicenames DWORD: pChipName DWORD: pIniName DWORD pProductName USINT: 0 (returns always "0") USINT: RtosGetDevicenames ppChipName : POINTER to POINTER to STRING ppIniName : POINTER to POINTER to STRING; ppProductName : POINTER to POINTER to STRING Byte: 0 (returns always "0")

Full

Retval Funct Parm

Retval

© 2007 Beck IPC GmbH

Page 40 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.18.11 Function: RtosGetLinkstate Changed: Embedded No Funct Parm Retval Funct Parm Retval WORD: RtosGetLinkstate USINT: dummy WORD: Bit coded values (See Online Help) WORD: RtosGetLinkstate Byte: dummy WORD: Bit coded values (See Online Help)

Full

2.18.12 Function: RtosReboot Changed: Embedded No Funct Parm Retval Funct Parm Retval USINT: RtosReboot USINT: dummy USINT: Function does not return, system is rebooted USINT: RtosReboot Byte: dummy Byte: Function does not return, system is rebooted

Full

2.18.13 Function: RtosServers Changed: Embedded No Funct Parm Retval Funct Parm Retval USINT: RtosServers USINT: servers (0=FTP, 1=Telnet, 2=WebServer) USINT: stop (0=Start, 1= Stop) USINT: 0 (returns always "0") USINT: RtosServers Byte: servers (0=FTP, 1=Telnet, 2=WebServer) Byte: stop (0=Start, 1= Stop) Byte: 0 (returns always "0")

Full

2.18.14 Function: RtosGetPPPIP Changed: Embedded No Funct Parm Retval Funct Parm Retval USINT: RtosGetPPPIP USINT: client (0=Get PPP server IP, 1= Get PPP client IP) DWORD: pString USINT: 0 (returns always "0") USINT: RtosGetPPPIP USINT: client (0=Get PPP server IP, 1= Get PPP client IP) DWORD: pString USINT: 0 (returns always "0")

Full

© 2007 Beck IPC GmbH

Page 41 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.18.15 Function: RtosGetIniEntry Changed: Embedded No Funct Parm INT: RtosGetIniEntry DWORD: pSection DWORD: pItemname DWORD: pItemtext UINT: len INT: -1 (Chip.ini not found), 0 (Entry not found), else num chars read INT: RtosGetIniEntry pSection : POINTER to STRING; pItemname : POINTER to STRING; pItemtext : POINTER to STRING; UINT: len INT: -1 (Chip.ini not found), 0 (Entry not found), else num chars read

Full

Retval Funct Parm

Retval

2.18.16 Function: RtosSetIniEntry Changed: Embedded No Funct Parm INT: RtosSetIniEntry DWORD: pSection DWORD: pItemname DWORD: pItemtext INT: -1 (Invalid length), 0 (ok) INT: RtosSetIniEntry pSection : POINTER to STRING pItemname : POINTER to STRING; pItemtext : POINTER to STRING; INT: -1 (Invalid length), 0 (ok)

Full

Retval Funct Parm

Retval

2.18.17 Function: RtosCreateMsg Changed: Embedded No Funct Parm Retval Funct Parm Retval INT: RtosCreateMsg DWORD: pMsgEx INT: 0 (ok), else OS error code INT: RtosCreateMsg pMsgEx : POINTER to MSG_EX INT: 0 (ok), else OS error code

Full

2.18.18 Function: RtosDeleteMsg Changed: Embedded No Funct Parm Retval Funct Parm Retval INT: RtosDeleteMsg UINT: msgID INT: 0 (ok), else OS error code INT: RtosDeleteMsg UINT: msgID INT: 0 (ok), else OS error code

Full

© 2007 Beck IPC GmbH

Page 42 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.18.19 Function: RtosSendMsg Changed: Embedded No Funct Parm INT: RtosSendMsg UINT: msgID INT: prio DWORD: pMsg INT: 0 (ok), else OS error code INT: RtosSendMsg UINT: msgID INT: prio pMsg: POINTERtoByte INT: 0 (ok), else OS error code

Full

Retval Funct Parm

Retval

2.18.20 Function: RtosGetMsg Changed: Embedded No Funct Parm Retval Funct Parm Retval INT: RtosGetMsg UINT: msgID DWORD: pMsg INT: 0 (ok), -28 (No message avail), else OS error code INT: RtosGetMsg UINT: msgID DWORD: pMsg INT: 0 (ok), -28 (No message avail), else OS error code

Full

2.18.21 Function: RtosFindMsg Changed: Embedded No Funct Parm Retval Funct Parm Retval INT: RtosFindMsg DWORD: pID DWORD: pName INT: 0 (ok), else OS error code INT: RtosFindMsg pID : POINTER to UINT; pName : POINTER to STRING; INT: 0 (ok), else OS error code

Full

2.19 spi.lib

2.19.1 Function: SpiInit Changed: Embedded Yes Funct Parm USINT: SpiInit USINT: clkPio (not used) USINT: inPio (not used) USINT: outPio (not used) USINT: 0 (ok), 1 (Error) BYTE: SpiInit BYTE: dummy BYTE: 0 (Error), 1 (Success)

Full

Retval Funct Parm Retval

© 2007 Beck IPC GmbH

Page 43 of 44

CoDeSys@CHIP Differences IEC Interface V1.00 2.19.2 Function: SpiTransmit Changed: Embedded Yes Funct Parm Retval Funct Parm Retval USINT: SpiTransmit DWORD: pData UINT: n USINT: 0 (ok), 1 (Error) BYTE: SpiTransmit DWORD: pData UINT: n BYTE: 0 (Error), 1 (Success)

Full

2.19.3 Function: SpiReceive Changed: Embedded Yes Funct Parm Retval Funct Parm Retval INT: SpiReceive DWORD: pData UINT: n USINT: 0 (ok), 1 (Error) BYTE: SpiReceive DWORD: pData UINT: n BYTE: 0 (Error), 1 (Success)

Full

2.19.4 Function: SpiSelectPins Changed: Embedded Full New Funct Funct Parm Not Available BYTE: SpiSelectPins BYTE: clkPio BYTE: inPio BYTE: outPio BYTE: 0 (Error), 1 (Success)

Retval

© 2007 Beck IPC GmbH

Page 44 of 44

Information

Microsoft Word - Differences_IEC_Interfaces.doc

44 pages

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

442647


You might also be interested in

BETA
Microsoft Word - Differences_IEC_Interfaces.doc