B4R Question simplest for eeprom read and write a uLong

Discussion in 'B4R Questions' started by orpailleur, Apr 20, 2019.

  1. orpailleur

    orpailleur Member Licensed User

    Hi,
    can you say me how i can do it
    check rEEPROM and rRandomAccessfile
    The two variables are to create, Consigne as ulong, server port as ulong
    How declare the 2 variables
    How reading it from the eprom
    How writing it to the eeprom
    Many thanks for your help
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. orpailleur

    orpailleur Member Licensed User

    Many thanks for your support
    Please found here my program with following functions
    - UDP communication with a PC ( no problem with Power off or ethernet disconnect )
    - Watch dog : send a message every 5 secondes
    - Output On/OFF
    - input for product sensor
    - output for Print/apply
    - input for coder ( count impulses with a Wheel ) for assert Print/apply to product/sensor distance.
    Would you please give a look if my programmation is efficient and correct ?
    Especially, SendUDP and SendUDPWD ( timer ), can the timer interrupt the SendUDP sub ?
    Is the Coder counter so fast as possible, i use for test a coder with 100 pulses on a rotation
    I wish using a coder with 1000 pulses on a rotation for more precision.
    Best regards
     

    Attached Files:

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice