Softmotion not working with simulation mode
CODESYS Forge
talk
(Thread)
Softmotion not working with simulation mode
Last updated: 2024-05-13
wiki Discussion
wildcard
wiki
(Discussion)
Forum for wiki comments
Last updated: 2024-05-13
blog Discussion
wildcard
blog
(Discussion)
Forum for blog comments
Last updated: 2024-05-13
(no subject)
wildcard
wiki
(Thread)
Last updated: 2024-05-13
Home
wildcard
wiki
(WikiPage)
Project Members: wildcard (admin)
Last updated: 2024-05-13
Post by wildcard on Modbus Client Request Not Processed
CODESYS Forge
talk
(Post)
Hi, does anyone has a solution for this issue. I've the same problem. I've implemented a very simple client based on the Modbus Examples and connected the soft PLC to a Modbus Simulator. PROGRAM ModbusClient VAR initDone : BOOL := FALSE; errorID : ModbusFB.Error; client : ModbusFB.ClientTCP; timeout : UDINT := 500000; replyTimeout : UDINT := 200000; aUINT : ARRAY [0..8] OF UINT; clientRequestReadHoldingRegisters : ModbusFB.ClientRequestReadHoldingRegisters; clientRequestsCnt : UINT := 0; clientRequestsProcessCnt : UINT := 0; ipAddress : ARRAY[0..3] OF BYTE := [10,54,0,72]; END_VAR IF NOT initDone THEN initDone := TRUE; client(aIPaddr:=ipAddress, udiLogOptions:=ModbusFB.LoggingOptions.All); client(xConnect:=TRUE, ); clientRequestReadHoldingRegisters(rClient:=client, udiTimeOut:=timeout, uiUnitId:=1, uiStartItem:=0, uiQuantity:=4, pData:=ADR(aUINT[0]), udiReplyTimeout:=replyTimeout); clientRequestReadHoldingRegisters.xExecute := TRUE; clientRequestsCnt := 0; END_IF clientRequestReadHoldingRegisters(rClient:=client, udiTimeOut:=timeout, uiUnitId:=1, uiStartItem:=0, uiQuantity:=4, pData:=ADR(aUINT[0]), udiReplyTimeout:=replyTimeout, xExecute := TRUE); IF clientRequestReadHoldingRegisters.xError THEN clientRequestsCnt := clientRequestsCnt +1 ; errorID := clientRequestReadHoldingRegisters.eErrorID; END_IF clientRequestReadHoldingRegisters(rClient:=client, udiTimeOut:=timeout, uiUnitId:=1, uiStartItem:=0, uiQuantity:=4, pData:=ADR(aUINT[0]), udiReplyTimeout:=replyTimeout, xExecute := NOT clientRequestReadHoldingRegisters.xExecute); When the system is running I do get the following on the logs: 2024-05-13T10:18:07.443Z: Cmp=MODBUS lib, Class=1, Error=0, Info=0, pszInfo= Client.RequestProcessed ClientRequest,16#0164ADC561A0 unitId=1 fc=ReadHoldingRegisters id=2070 state=Error 2024-05-13T10:18:07.443Z: Cmp=MODBUS lib, Class=1, Error=0, Info=0, pszInfo= ClientRequest,16#0164ADC561A0 unitId=1 fc=ReadHoldingRegisters id=2070 change state Error -> None timestamp=63843421226 2024-05-13T10:18:08.444Z: Cmp=MODBUS lib, Class=1, Error=0, Info=0, pszInfo= ClientRequest,16#0164ADC561A0 unitId=1 fc=ReadHoldingRegisters id=2071 change state None -> Init timestamp=63844421420 2024-05-13T10:18:09.444Z: Cmp=MODBUS lib, Class=1, Error=0, Info=0, pszInfo= ClientRequest,16#0164ADC561A0 unitId=1 fc=ReadHoldingRegisters id=2071 change state Init -> Error timestamp=63845421675 But the errorID is jumping between OK and RequestNotProcessed. Any help is very appreciated which gives me a hint what I'm doing wrong. Thanks
Last updated: 2024-05-13
Post by rajesh008 on i can't declear the address in GVL - codesys SP19 Patch5
CODESYS Forge
talk
(Post)
The “_AB AT %IW0:word; ” if i called the value then im getting this error. like below "the declartion of the variable with an address assignment cannot be used in a PRG or GVL with the attribute 'subsequent'" This is happening when the GVL is selected in Redundancy Configuration. if i un-select the address declaration is working fine
Last updated: 2024-05-13
wiki Discussion
rajesh008
wiki
(Discussion)
Forum for wiki comments
Last updated: 2024-05-13
blog Discussion
rajesh008
blog
(Discussion)
Forum for blog comments
Last updated: 2024-05-13
(no subject)
rajesh008
wiki
(Thread)
Last updated: 2024-05-13
Home
rajesh008
wiki
(WikiPage)
Project Members: rajesh008 (admin)
Last updated: 2024-05-13
i can't declear the address in GVL - codesys SP19 Patch5
CODESYS Forge
talk
(Thread)
i can't declear the address in GVL - codesys SP19 Patch5
Last updated: 2024-05-13
wiki Discussion
otrubert
wiki
(Discussion)
Forum for wiki comments
Last updated: 2024-05-13
blog Discussion
otrubert
blog
(Discussion)
Forum for blog comments
Last updated: 2024-05-13
(no subject)
otrubert
wiki
(Thread)
Last updated: 2024-05-13
Home
otrubert
wiki
(WikiPage)
Project Members: otrubert (admin)
Last updated: 2024-05-13
wiki Discussion
kuegerls
wiki
(Discussion)
Forum for wiki comments
Last updated: 2024-05-13
blog Discussion
kuegerls
blog
(Discussion)
Forum for blog comments
Last updated: 2024-05-13
(no subject)
kuegerls
wiki
(Thread)
Last updated: 2024-05-13
Home
kuegerls
wiki
(WikiPage)
Project Members: kuegerls (admin)
Last updated: 2024-05-13
Post by kuegerls on CSV Utility SL
CODESYS Forge
talk
(Post)
Hello, I want to read a CSV file using the CSV Utility SL library, but I encounter an 'invalid_handle' error during initialization. What could be the cause? For my test program see the screenshot. I have purchased a license, and it is also installed on my PLC. Thank you in advance. Best regards, Stefan.
Last updated: 2024-05-13
blog Discussion
walkercope
blog
(Discussion)
Forum for blog comments
Last updated: 2024-05-13
wiki Discussion
walkercope
wiki
(Discussion)
Forum for wiki comments
Last updated: 2024-05-13
Home
walkercope
wiki
(WikiPage)
Project Members: walkercope (admin)
Last updated: 2024-05-13
(no subject)
walkercope
wiki
(Thread)
Last updated: 2024-05-13