Jump to content

Emil

Members
  • Posts

    455
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by Emil

  1. In fact YES - there is another limit - the volume of the compiled code per subroutine. I don't remember what is the value, but it doesn't matter in fact, as it's very difficult (practically impossible) to measure this value.

    Again my advices

    - write simple rungs;

    - put one rung per net;

    - split the code to short, logical, easy to edit and debug subroutines.

    In my opinion, it's not difficult to follow these advices and the programmer can only win.

  2. Hi Flex727,

    Please - if you want to get answer from "someone in Unitronics", the best way is to send the question to "someone in Unitronics" - to support@unitgronics.com. We are making our best to give high level professional answers within 24 hours.

    A post in Forum is oriented to large sociaty of users and we give especially chance to other users to participate and give their opinion. If thhere is a need - post with answer we don't hully agree with or no answer for several days, we participate.

    About Timers:

    Power Up check box with timers is to state, that on power up the curent value of the timer will be reset.

    The Preset value in the Timer box is loaded with Download to Flash memory of the controller. When one change the timer preset value, the new valye is stored in RAM. While Download again, VisiLogic checks if there is difference between values in RAM and in FLASH and asks how to synchronize. As I know, this option will be optimized in the new VisiLogic version to give the programmer option to select synchronizing way for each timer, where there is a difference.

    About clonning - please let me check your claim and I'll post the results later.

  3. Hi Sebastian,

    There is no legal way to baypass the password.

    if it's really your project, you need ot prove it clearly first - well documented! After Unitronics distributor will check and confirm your documentation, they will send it to Unitronics, where our law departemnt will check it. If this steps also will passs successfully, you will receive permission and can send the project to Unitronics. Our R&D will work on the project to disable the paswsword. This procedure is not free of charge by default. You need to check first with your local dealer.

  4. Hi Damian and other participants to this discussion,

    First - I want ot thank Damian and Joe for their very useful notes and advices.

    About "MI" limitation in function HSC (Reload) - in some Vision models this is hardware limitation, which cannot be ommited.

    In some newer models, like V130/350 "TR" ones - you alrady can select both for the counter and the target MI, ML or DW.

  5. Hi Damian,

    How transition contact works?

    Behind the transition "contact", in fact there are 3 more internal bit registers - one for P contact, one for N contact and one for "buffer". That's why the number of transition contacts is limited.

    When the scan comes to specific transition contact (P or N), it compares the value of the linked to this contact bit (let's say MB0) with the value of the buffer.

    If:

    1. bit = 0 & buffer = 0 -> P = 0 and N = 0 no transition detected

    2. bit = 1 & buffer = 0 -> P = 1 and N = 0

    3. bit = 0 & buffer = 1 -> P = 0 and N = 1

    4. bit = 1 & buffer = 1 -> P = 0 and N = 0 no transition detected

    After updating P & N contacts, controller copy the value of the bit to the buffer and con tinue the scan.

    As result - if in previous scan we had case 2 and P = 1; in the current scan we will have case 4 and P contact will be reset back to 1.

    This way transition contact by definition are active only one scan.

    Important note: proceeding the transition contact in the way described above is when the scan is comming to this specific contact in the application. If, for ecample specific subroutine is not scanned for some time and the transition contact is inside, it will be activated only when the subroutine is scanned again.

    I hope this makes sense. Let me know if you need any additional info.

    • Upvote 2
  6. Just about "Undo downlad"? How exactly you expect this to work?

    Download wverwritesthe existing application. This application is lost. In many cases thhis application is protected by password and cannot be uploaded without special premission.

    What exactly Undo needs to do in such case?

    I hope understanding better your idea we can issue some solution...

  7. There was only one CDMA modem which was tested - more than 5 years ago. This modem is discontinued. Meantime, we found, that uspport of CDMA is very complicated. There are not SIM cards and the modem needs to be disposed to the provider to burn there the number. Usually the provider downloads there its own OS. Then - things which were working in Israel, can not working in Australia (or in Florida, if you prefer).

    In this matter the things today are eve "worst". Israely provider, which hold CDMA network, "switched" to GSM. We are not able anymore to make any R&D with this network.

    From other side - practically everywhere there is CDMA network, there is GSM coverage too. In tha last 2-3 years there is very, very rare request to support CDMA modems.

  8. Hi Adam,

    Modem's interface to PLC is RS232. according to standard, the distance there is 15 meters. You will need to use RS485, which is up ot 1200 meters. This means, that in PLC you will use RS485 port and in modem side you will need to put RS232/485 converter. I'll recommend Unitronics M90-19-R4 unit.

    With this scheme, built properly, you can transfer signal with 9600, which is default for the modem, without any problems up to 1200 meters. Again - with properly built system... which is another story.

  9. Pin 1 is A (Rx/Tx+) signal and pin 6 is B signal (Tx/Tx-).

    You can find the port pin out in Instalation guide of the congtroller. It needs to come as hard copy with the unit or you can find it in PDF format on www.unitronics.com > Support page > Technical library.

    I'll recommend using our connector MJ10-22-CS66. It will make connection easier. Ask your local vendor for it.

    Do you have built in RS485 port in PC? If so, you need ot check the speck of PCor thhe card you have installed on it for its pin out.

    In RS485, signal goes direct - A to A, B to B.

  10. It depends on may factors and some of them are totaly subjecive - like stile and "taste" of the programmer.

    Some ideas from my experience:

    The easiest way is to click the "blue button" to select the next free operand. In many cases this is good enough and for sure is the fastest way.

    If there is a chance, that multiple registers will be operated together (group of alarms, data to be sent/received by communication) it highly recommended to define them in array. Then you can operate them with Vector functions. If yo utransfer them by communication (for example Modbus), it's much easier to program and takes much shrter time to execute one command with vector of 10 operands then 10 commands with one operand each.

    This is in general...

×
×
  • Create New...