MrPLC Member
  • Content count

  • Joined

  • Last visited

Everything posted by Stefan009

  1. Hi. In one of the projects, last time i have opened it, i fixed the 150 or so variable mappings on the hmi and could compile. But after closing sysmac and then later open the same project, almost all variables gets market pink and "Variable mapping" is cleared out. I have re-added the variable mapping several times before, and it seems to vanish between sysmac restarts   Any idea why this happens and how to make it stop? Because re-adding 150 mappings takes forever.   I also get this when i re-adding  
  2.   Thanks, took an hour or two to re-do all the variables and with the saving, because first save try always popped up the same error message about double variable, and then the second save just after, worked.
  3. Sysmac TON Reset

    This is how i made a timer so re-triggers every second.    
  4. Hi, im currently re-doing a previous employees code, and cannot ask him specifically. The flow meter sents 4-20mA depending on 0-120 litres per minute the sensor say. In the omron code he first scales the mA value with 0-8000 (X0 = 0, X1 = 8000). Then he takes this output and scales the 0-20mA to 0-PreviousScaleValue on X0-X1. Any ideas why he used 8000 and not just the 4-20mA / 0-120 lpm?    
  5. Ah ok. The few Analog cards i have worked with previously only outputed the actual mA value, i did check around the settings for this card but didnt see any reference for the 8000 in there that could give a clue. Then the code makes sense now that i know the card outputs 0-8000 from the 4-20mA input.
  6. NA5 Compile error

    The problem was a simple little dot in the variable name. Took "forever" to find.
  7. NA5 Compile error

    Hi, i added a few bool tags in the panel and connected them to the plc. Now when i compile the panel i get these wierd errors in the output window:   I have tried to restart sysmac to see if it just was a temp error, but it still comes back. Afaik, i have not added any symbols between the working compile and the current one, only added the variable to a button with a SetVariable And added 2 other real variables to 2 DataDisplay:s.   Any ideas what is actually wrong here?
  8. Hi. I have been thru the F1 manual and the toolbox in sysmac, i cannot figure out how to convert the elapset time from a TON, to anything the NA5 panel wants to display. Any suggestion? (Want to show how long a certain step has run for)
  9. TON.ET To any other format?

    Thanks. I was trying with both label and datetime components and forgot about the data display.
  10. Hi. I want to get the full date and time into the plc, where i want to calculate when current step and full sequence is expected to finish and then later present it back on the screen. I tried to map the _HMI_DateTime to the controller, but it does not get added to the controller.
  11. Get full date & time into the plc?

    Thanks, never looked into global events, and have been looking for a timer somewhere in the controls / toolbox. The PLC iirc ONLY have the time, but i need even date because there are some processes that can take a full day to complete.
  12. Hi. I have this project with NJ501-1300, in the ethercat settings we add a air valve called EX260-SEC1. When this unit is alone in the ethercat settings, it works without a problem, as expected. But when we add the servos that goes into the machine (ED1F CoE Drive (HiWin)) (Or Ezi-Servo2 ALL), then the air valve goes into error, even if the other ethercat devices are disabled.   We have tried both sysmac 1.45 and 1.47, the plc has 1.43 firmware. We have tried to create a new emptyh project and using different computers, the same error pops up when anything else than the air valve are added to the ethercat config. Any idea how to solve this?
  13. EtherCat Fault when..

    Hi. The air valve uses auto numbering by default, but then you can force the number via sysmac studio, which it accepts. If its all alone on the ethercat network in sysmac config, it works, but if we add devices and disable those, and only keep the air valve enabled, it does not work at all, no matter which node # you give it. We noticed last thursday, that if we connect one of the other disabled items to the ethercat cables, THEN the valve works (as alone enabled).. We have tried using several node # for the air valve, and it doesnt matter.
  14. I have a similar function based on that code. This reads from a array in the plc   Sub AddFromPLC() Do Until bHMI_UpdateEdit = False Loop Dim sPLC(99) As Object 'sPLC = zHMI_DesignRecipes.DesignName Dim i As Integer = 0 Dim l As Integer = 0 Dim iCount As Integer = 0 For i = 0 To 99 sPLC(i) = zHMI_DesignRecipes.DesignName(i) ' + " " + (i+1).ToString Next DropDown1.SetItems(sPLC) End Sub Sub UpdateIndexInfo() Dim sValue As String = "" sValue = DropDown1.SelectedIndex bHMI_UpdateEdit = True Label2.Text = sValue bHMI_DesignEditIndex =sValue End Sub  
  15. Hi, 4 years later. Is it possible to have this multi dimensional? The combodrop list has a text and a value column when you enter it manually, is it possible programmatically add both those this way?
  16. User Alarm Viewer

    Thanks, when you F1, you get the sysmac operations manual, now atleats i could open the correct pdf to search in.
  17. User Alarm Viewer

    In the useralarmviewer, you can color unack:ed, acked etc of the alarm, i cannot find a way to acknowledge the alarms, only the ClearUserAlarmLog() in the click even for a button. Are the ClearUserAlarmLog() Ack:ing and removing the alarms that are not still active?   When i press F1 in the HMI-part of sysmac i only get tossed to a PDF that is not helpfull at all.
  18. Hi. I have this project where the variable mapping / connection / something gets lots between restarts of sysmac. This is on the HMI, it was working after i re-entered all variable mappins again after a 5th time, saved, compiled, sent to bitbucket. Now after the reboot, i just open the screen and its all ill pink all over the place. Why do sysmac(?) keep removing all variable mappings? And how do i make sysmac work with me instead of against me?  
  19. The image is from the HMi global variables, its always visible afaik.
  20. NX1P2 data exchange with another Omron PLC

    If the second CPU is only there for the sql communication, then another option to go would be something like Ignition. Unless the other cpu is meant to do some cpu work in/for a machine. And for what i have seen the prices on the omron stuff, a ignition license would be cheaper now days.
  21. Modbus timeout "on desk" setup

    Aa i understood the "other guy" with these units from this manufacturer, it talks modbus-ish, but its on way, so i believe the NX_Send/Recv is the only way to talk to these devices because the send package has to be formatted in a certain way.   The Recive option had timeout which i set to 3 seconds instead of default 2(?), and the NX_SerialBufClear default was 2 seconds, changed to 3, lets see if this reduces and/or removes the timeouts since in the logs its often clear or recv that times out.
  22. Hi, i have this  NX1P2 cpu with 2 CIF105's. On one of them i have 6 modbus sensors, i talk to each and one of them in a cycle. Occationally i get a timeout error on a random device. They are connected via a Murr Elektronik M12 signal-splitter Each sensor is connected by a 5 meter cable from the splitter. The timeout seems to happen to random device at random interval, and it can be really long time between the timeouts. I have looked around in the sysmac project to see if i could change the timout setting to something sligthly higher than current (default?) Is there any timeout defaults that can be changed on modbus timeout?
  23. Modbus timeout "on desk" setup

    Almost worked. I delclared a variable as _sSERIAL_SEND_OPTION (According to the help time). TimeOut is not part of this struct. Only sendDelay shows up   EDIT: we are using NX_SerialSend NX_SerialRcv NX_SerialBufClear for the modbus.
  24. Anyone know what could be missing to be able to import this stepper motor to sysmac? This is one of the supplied xml files for the stepper motor.     FASTECH_Ezi-SERVO2_EtherCAT - OMRON.xml
  25. Hi. I have been up, down left and right in sysmac looking for the safety cpu's to add. If i open a project that has these devices, "Safety CPU device" shows in their toolbox window, while my project that does not have any safety added (trying to), does not have the "Safety CPU device" in toolbox. Any idea how to get it to show up so i can add the SCPU?