Jump to content

Lost_Scavenger

MrPLC Member
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Country
    Canada

Lost_Scavenger's Achievements

  1. Hi, I am saving data in a CSV for a project and I wanted to associate time to my data. To do so, I used _CurrentTime internal variable as a time mark. In simulation, _CurrentTime is a direct increment of my scan time (2ms). When I run the code on my PLC, the _CurrentTime is refreshed at every 100ms. I can output about 10 data in the file per 100ms. This is a problem since about 10 data points are associated with the same time point now. Is this normal ? Am I missing something ? I understand that writing to the file will be slower in real life due to delays and SD card speed which will affect my number of point per sec, but the refresh time of a system variable ? I tried to look for an answer, but nothing comes up. I don't understand why it's not resfreshed since the code is executed faster than 2ms. Is there any other way to synchronise time with execution time ? Any help on this would be greatly appreciated.
  2. Thank you, your thread did solve my problem. Here are the things I had to change in order to make it run properly: 1- Use sREQUEST_PATH_EX type for the RqPath variable. 2- Change ServiceDat and RespServiceDat for Byte arrays. Precisely an array of 4 for ServiceDat and 10 for RespServiceDat 3- Set logical format of Instance ID to 16bit and Attribute ID to 8bit 4- Change data type of UINT to UDINT for attribute, instance and class. I will test further if the Clearlink receive and execute the CIP message, but sor far, the FB is at done and no error emerges.
  3. The device I'm connected with is a clearlink from teknic. Thanks for the help, I took a peek at your thread, now my rung is executed. I changed the req path format from _sREQUEST_PATH to _sREQUEST_PATH_EX as adviced by PMCR and now it executes. I will test further to see if it works now, but I have no error code so far.
  4. Hi, I am trying to use CIPUCMMSend FB, but when it's executed, nothing happens. I would be happy if I had an error code or something to work with. I succesfully established an implicit connection with the same device and it's working fine. I don't understand since every input value of the function block seems fine and the ethernet port is ready. Has anyone had this issue ? I'm really confused as why it's not executed. My PLC is a NX1P2 and I am using Sysmac Lite ver 1.60 I'm sorry if it is obvious, it's my first time using this block. I searched here and some place else, but I could not find any answers. Thanks,
×
×
  • Create New...