Personal Data

Username:
mike-at-gms
Joined:
2020-03-12 15:12:46
Location:
United States / EST
Gender:
Male

Projects

  • No projects to display.

User Activity

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Thank you, the checkbounds function identified an array problem. I still do not understand the exception (or why it was not thrown when the array was created) other than my code would 'sometimes' try to access restricted memory. The exception has not returned yet to verify all this, but I have a tool to find problems if it comes back.

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Update: I took a working project and migrated changes in small parts. I tested each change and then copied the working project to a different folder. At some point, the project started throwing the exception. I tried to compare files but the .bootinfo was not helpful. HOWEVER, I then copied the 'working' project back to the original folder. The exception remains. I have verified that the two .project files are exactly the same. If I open the 'working' project in the sub folder, it works. Same .project...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    The project is large and proprietary. The steps involved to trigger the exception also require a TCP client that is specific to this application. The general steps are: PLC starts, initialization complete, TCP Listener initialized, client begins TCP communication. During handshaking, an acknowledgement of the connection is retuned. While adding the ACK to a queue the exception is thrown. The TCP communications code has not changed for months. I can connect and communicate every time until the 'magic'...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    I have project in 3.5 SP15 64bit that has been working fine for months. Today, I made a seemingly innocent change and suddenly I am getting the following exception: SOURCEPOSITION App=[Application] area=3, offset=1422839 EXCEPTION [<excpt>PriviledgedInstruction</excpt>] occurred: App=[<app>Application</app>], Task=[<task>CommunicationTask</task>] The exception occurs on the same line of code (which has not changed for weeks) no matter what I do. Undoing the last change does not fix the problem. I...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Thank you @i-campbell. Using testBools[x] in the mapping does work. I am trying to pass these points along to a client over a network and I would like to just send a bunch of Bytes (without manually converting them). The BOOL type does not map nicely to Bytes. I would like to do something like: InputBytes : ARRAY[0..9] OF BYTE; and then use 'InputBytes[0].2' in the mapping. However, this will not even compile. Using an array of BOOL makes the network sending messy. The benefit of the Union is that...

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hi, I am trying to cleanup some variable mapping. I have an I/O device that has its points defined as BIT. I would like to map these into an array of something but I cannot use an array of BIT. Mapping to an array allows me to access bits through a common FB so I only need to map the points once. I have created a Union based on a Forum response (https://forge.codesys.com/forge/talk/Engineering/thread/9613d49992/) and it seems to do what I would like. However, when I map the bits to my device, I get...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hi, I am trying to cleanup some variable mapping. I have an I/O device that has its points defined as BIT. I would like to map these into an array of something but I cannot use an array of BIT. Mapping to an array allows me to access bits through a common FB so I only need to map the points once. I have created a Union based on a Forum response (https://forge.codesys.com/forge/talk/Engineering/thread/9613d49992/) and it seems to do what I would like. However, when I map the bits to my device, I get...

  • Posted a comment on discussion Motion πŸ‡¬πŸ‡§ on CODESYS Forge

    I did not know about the device configuration option, thank you. I have an 'axis' function block that encapsulates all the functionality of an axis. All the MC function blocks are included and cyclically called based on inputs to the main FB. My motion FB's are all called the same way, which is why this error is so frustrating. I cannot see any difference between my calls to MC_Power or MC_MoveAbsolute and my call to MC_Home. I would expect a different error if my drive object was not configured...

View All