Jump to content

kratmel

MVP 2023
  • Posts

    1,136
  • Joined

  • Last visited

  • Days Won

    50

Posts posted by kratmel

  1. 12 hours ago, kvlada said:

    Add a few unattended years of service, and that RJ-45 port is seriously filled with things you don't want to be in.

    Duct tape is probably the cheapest solution.

    12 hours ago, kvlada said:

    Siemens solved this problem by putting Ethernet ports on the lower side of PLCs.

    And in fact, in several modern Siemens 1200 series, I already replaced the ethernet controller chip due to a short circuit that completely blocked the operation of the PLC. I don't know the reasons.

    I did not encounter any problems with the ethernet controller in the Unitronics PLC.

    • Upvote 1
  2. It looks like all OK with your NMT status chek.

    You must remember that in rung 23 Mb1112 reset itself...

    It is not possible to check this via online visilogic mode - it is to fast  :)

    You must add increment variable FB (for example DW or ML) to end of rung 23. (Only for testing purpose)

    You can see is it MB1112 manipulate in process of NMT Node Guard.

    If you disconnect Can wire - you can see 255 in MI1113 Status = communication lost.

  3. Unfortunately, I can't see your code in full - but I have some recommendations from experience with SDO and Lenze:

    1) when transferring something through SDO, I had to use the data structure to place the required set of information in the form of an MI vector. (not the ML vector as you have in the pictures). An example of my structures and commands is below

    TPDO_struct.png.2afbb2d4636205dd90b551ac8d99debd.png

    TPDO_MI.png.eef2af4afb154cc1aaea02c96fc1434e.png

    RPDO_MI.png.40267fabb3ed2eec9548274fded4affd.png

    2) When transmitting SDO, it is important to fundamentally prohibit other SDO that may try to be transmitted during the PLC operation. That is, it is necessary to make a counter and transmit the necessary SDOs always in turn (ideally one at a time for 1 cycle of running the PLC program).

    I made a condition that before each transmitted command there is a SDO counter comparison condition. Only then was I able to pass the long chain of SDO to Lenze. This is caused by a write delay in the drive itself. If the queue of commands is too high, it does not have time to process them and transmission becomes sporadic.

    For example, out of 8 commands, with the usual method of transmitting everything in a row, 3-4 passed - the rest were ignored or transmitted sporadicaly. The use of the counter made it possible to transfer everything, and by modifying the algorithm to transfer only those that change, I was able to speed up the work even more.

    SDO.thumb.png.a371ba9327ab8c1bc9071f49ce0d57a4.png

    This is not the best algorithm (it transfers the SDO queue from the message selected by the number to the last one) - but it works with Lenze 8400 and after the required functions began to be performed stably, I left it as it is.

    3) Conclusions - perhaps due to the peculiarities of the processing cycle of the HMI interface, your command is repeated many times in the transfer buffer. Lenze rejects the excess due to slow write (CAN command is fast transmitted but slow applied in Lenze itself) you can see that the transfer is not stable.

    4) regarding PDO, you need to check how Lenze parameter C0001 is configured. It should be 3.

  4. To solve your task, you need to clearly understand what you want to do.

    Unfortunately, your manual is in German and it is difficult for me to immediately give any recommendations.

    The first task of the CANopen network is to bring the necessary devices into a state of normal operation by NMT command.

    However, you should understand that the frequency converter is controlled by signals from the network only when the control source - network is selected in the parameters.

    The best solution is to have the frequency converter connected to the control program from the manufacturer and observe what happens in the process of sending signals from the PLC. With the help of this program, you can save the current state of the parameters and if something goes wrong - return parameters to the previous working state.

    2 hours ago, Tomek said:

    I put in variables. It didn't help. Some settings have disappeared and I cannot put the inverter into operational mode, as if the NMT plc was not sending. I've set the status of the bits that disappeared, but I'm still struggling with the set value. If anyone has any ideas, they're welcome.

    Unfortunately, none of the forum members will be able to understand from your message what you sent to the converter and why nothing works.

     

    Now regarding the theory of network control - in the standard view, we issue a command and get a response.

    In the CANopen network, we have an object dictionary that is created virtually. Accordingly, the master records something in a certain place of the dictionary... and the controlled device takes the information that concerns it from this library.

    In some Lenze electric drives (8400), the address must be calculated as the sum of the parameter number and some offset. Therefore, sometimes there is a problem - that in the process of experiments, we record something in a completely different area of the library (different parameters).

    Put here on the forum the tables with the addresses of the SDO that you want to use and the tables in which  are specified standard  variables used in the PDO of your device.

     

  5. For the experiment, I used a new V700 out of the box.

    Using the STOP - DOWNLOAD - RESET option, I downloaded an example from Visilogic 9.8.65. After turning off the power - everything is OK, the project remained in memory.

    I took out the battery and made sure that the project was lost.

    01.thumb.jpg.b6f70f945c71f47ea339eddbddf5a51a.jpg

    I uploaded the project with the DOWNLOAD ALL and BURN option. I took out, waited and put back the battery - the project remained in place.

    I took out the battery and after waiting  - turned on the panel - the project is in place.

    So we can conclude that something is wrong  with your panels and you should contact the distributor.

    P.S. For the test, I recommend using the stable version 9.8.65 and the firmware from this version.  It is also interesting how SB8 behaves.

    However, I suspect that your new panels may have a newer hardware version than mine new

    02.thumb.jpg.876383288582fe7a7198fa4734168db0.jpg

    03.thumb.jpg.c4674a6b52433e4aa92d0c190c21f18c.jpg

    and 9.8.65 may not support it (but that's just my guess).

    • Thanks 1
  6. Translated...

    Something is not going well, where did I go wrong? According to the instructions, bit 10 in the first bytes is responsible for unlocking the disk. So I set the bits and sent them via SDO and it works. I will add that I used the synch channel. In this telegram, by setting bytes 2 and 3, the set speed is set, so I add a struct block and the first bytes work, but there is no set speed.

    Kratmel, thank you for the helpful files, I have an E82ZAFC communication card.

     

    You need to make sure that network is selected as the speed setting source.

    Also, as far as I remember (several years ago I dealt with such a converter with a 2171 module), 50Hz must be written with the value 500000 in SDO with index 5FD1h (setpoint) and 10000 in SDO 5DF7h (start). That is, the speed setting address is before the start command. I couldn't find any manual quickly. Maybe your module offer a slightly different location of the setpoint.

    Please post used manual or link for CANopen evaluation via E82ZAFC

  7. Some tips about CAN open in pdf

    CAN_open_schneider.pdf

    p.13 - Basics.

    I'm guessing you have an 8200 with a 2171 module installed

    EMF2171IB_2172_BA_Fieldbus_module_type_2171_2172_Systembus(CAN)_EN.pdf

    A few short answers that are in the documents above:

    1.  PDOs (process data objects) for real-time transmission of process data.  SDOs (service data object) for read and write access to the object dictionary

    2. Not if the manufacturer does not require it. For example, to start Schneider servo drives, you need to follow the correct procedure for reading the device status record.

    3. If the SDO is prepared in a PLC, then you should use a Struct (from Visilogic Vector menu)  - in which you can connect different types of data into one sequential array of MI. And then you can send it with one SDO command in which you specify the length of this array.

    4. I think the answer is yes. However, this is only true if the inverter does not have communication status monitoring enabled.

    5. Maybe no.

     

  8. ......Translated from Polish

    Hello and welcome. I have a few questions about CanOpen. Reading the help and looking through the projects helped me understand some of them, but I still have the following:

    1. What is the difference between PDO and SDO?

    2. Do all send and receive setup steps need to be completed?

    3. If I send an SDO that contains 4 bytes of control word and 4 set value, how to connect them?

    4. Does the inverter remember the last command sent?

    Should its input buffer be reset?

    Learns the secrets of CanOpen on V130-33-B1 with the V100-17-CAN card and the LENZE 8200Vector inverter

  9. 5 hours ago, V700 said:

    The hmi is brand new and the battery as well

    Do you test battery voltage? New battery voltage must be approx 3.2V. Please check via Visiologic SB8. If SB8=1 and  battery voltage above 3V - PLC must be replaced by distributor.

     

    P.S. Please set time in PLC  via Visilogic Communication menu. Restart PLC = check RTC for present time. I see may 2022 on image.

  10. 18 minutes ago, John77 said:

    What does that mean?

    I think that part of flash memory is damaged or some chip on board is faulty.

    Please read this topic, you can see the same problems with my PLC.

    In your experiment i recommend to try 9.8.65 Visilogic version. 

    My PLC only allowed flashing after cooling the chips with a special freezing spray. After that, the current version of the firmware appeared on the version identification screen instead of incorrect characters.

    I managed to localize the problem and solve it - read in the thread, but this was my own research on a faulty PLC.

    However, in your case it is difficult to say that the problem can be solved by updating the firmware.

     

  11. Unfortunately, the numbering of the outputs and inputs of the PLC expansion modules is set according to the position of the module on the DIN rail.

    There are two options for solving the problem in the case of using a different set of modules for the same program:

    1) simply apply the vector replacement of the outputs that were in the previous configuration to the outputs that were used in the new configuration;

    replace.png.6e25091eb70e022dc13fc867bed78421.png

    2) always use the rule - copy all input signals into a vector of intermediate variables and apply them in the program. At the same time, process all output signals in the ladder code as intermediate variables, and then, if necessary, copy their values as a vector to the outputs of the required modules.

    hardware.png.634dc722971e18853502887b0dc5b47e.png

  12. 5 hours ago, John77 said:

    you will find in one pic that i was trying to update the plc but because i lost the connection the update didn’t finish.

    After looking at your first photo, I can say that your controller is damaged. It is unlikely that you will be able to restore it to working condition.

    I posted a photo similar to your first one on the forum. In my case, there was a problem with the flash memory - the controller did not start and I failed to flash the operating system in it. There was no image on the screen either.

    But for checking, you should take a computer with a RS232 hardware port and use the RS232 to RJ11 cable wiring recommended by the manufacturer.

  13. 13 hours ago, NiHa said:

    Are there any settings that can be used to specify that the MJ20-PRG is used for RS232 serial communication?

    Unfortunately, I did not find a complete manual for this device on the quick link, but for practical advice, I would recommend checking the transmission TX and reception RX conductors between the adapter and the router.

    It very often happens that when trying to connect with the wrong cable, a direct connection is used instead of a crossed one or vice versa (TX-RX, RX-TX connection).

    It should also be noted that connecting an additional power supply with a voltage higher than that recommended by the manufacturer will damage the adapter MJ20-PRG.

  14. 28 minutes ago, John77 said:

    Also, how to confirm that the plc is running?

    PLC program in memory run after power on.

    For understand - program running or not without display you must test volage on  PLC power terminal +24V, 0V.

    If power voltage (approx +24V) present - you must test all digital outputs  - is it some of them active.

    If some output active - PLC program in RUN condition.

    If not - you must send input signal (operate via some switch or sensor conected to PLC inputs) and test is it any outputs active.

     

    If no signal on output - you must test PLC power current - if it is zero - some fuse or power supply IC inside PLC is broken. PLC must be repaired.

     

  15. Hi,

    If V350 installed on OEM machine - in most case it is not possible to upload project from PLC.

    Possible solution:

    1) Contact with machine manufaturer for project download to new PLC or get new PLC with preinstalled project.

    2) Find new PLC with the same model # and install mainboard and I/O board from old PLC to new PLC.

    3) Find V350 with working screen and use only screen as replacment.

    If only screen (not touch) is in bad condition - and machine program is operational - solution 2 and 3 - is reasonable.

    P/S.

    You do not specify V350 model #. 

    You can use solutions 2 and 3 only at your own risk. You must understand that solution 1 is correct. However, if it is not possible to implement it, you must involve a specialist with appropriate qualifications to implement solution 2 or 3.

×
×
  • Create New...