kanber

Members
  • Posts

    116
  • Joined

  • Last visited

Posts posted by kanber

  1. Hi,

    I need to help about showing set point on graphic. Please see on attached file. I am logging data every 180 second. But if set is change It seem to be a linear change. But I want it to show as I specified with the blue line. Other programs had such a feature for set points.

  2. Hi,

    I have two quetions;

    1- Is there any option to catch first character. we have ReadUntil command, But I need to catch if first character is like x80 then read 4 byte.

    2- Can you help me calcuation checksum. there is 4 byte data. I need to calcute with first there byte with xor with xAA byte and check with 4.byte with is checksum from device.

    The checksum is formed by exclusively ordering all preceding bytes with the bit pattern 10101010 (0xAA):
    for(tb_Cnt = 0; tb_Cnt< (EMPFA_BUFF_LAENGE - 1); tb_Cnt++)
    {
          tb_CheckSumme ^= EmpfangsBuffer[tb_Cnt];
    }

  3. Hi,

    another issues is when I sent 6 byte on monitor TX showing 5 byte. you can see attached file.

    I need to sent data to device 6 byte with below format;

    Byte 0 ID
    Byte 1 command
    Byte 2 key state
    Byte 3 dummy
    Byte 4 dummy
    Byte 5 checksum

    and device will answer me below format;

    Byte 0: ID
    Byte 1: command
    Byte 2: option
    Byte 3: checksum

     

    ID is fixed x80. how can I catch anwser with check sum?( Xor data with 0xAA)

     

    checksum (byte 3)


    The checksum is formed by exclusively ordering all preceding bytes with the bit pattern 10101010 (0xAA):
    for(tb_Cnt = 0; tb_Cnt< (EMPFA_BUFF_LAENGE - 1); tb_Cnt++)
    {
          tb_CheckSumme ^= EmpfangsBuffer[tb_Cnt];
    }

    Ekran Alıntısı.JPG

  4. Hi,

    On com monitor screen when I put Output string "\x80\x01\x02\x00\x00\x29" and press to sent button it is working.

    on sequence am I need to write like that;

    device.AmlMasasiDevice.Write(chra({0x80,0x01,0x02,0x00,0x00,0x29}))

     

    second quetion is I need to sent the string when users press and hold a button continuously. how can I do that?

     

  5. Yes I done like that. But when I leave button it takes almost one second to show button on page like unpressed. It is like hanging. It stay like pressed position one second.

    I tried to change page refresh time to 0.1 but nothing changed. I closed begin and endseq lines and test it work find.

     

     

  6. Yes, timing = 1 / offset=0

    I will change it for machine 1 offset =0.01, 2=0.02, 3=0.03, 4=0.04, 5=0.05. Am I correct?

    I added a script when timeout I change 184 channel timing=0, only one channel timing is 1, if communation is online ı set all other timing to 1. 

    Because I need at least one channel to understand when communication online again.

  7. Hi,

     

    I have 5 machine communication with modbus tcp. Every machine has 185 tags. when all machine is only communication is normal. but when customer close 3 or 4 machine modbus trying to get tag information and waiting for time about. because of that online machine data updating very very slow.

    Is there any solution for that?

  8. Hi,

    I should make modbus 485 comunication with device like that;

    1- RTS enable

    2- Tx Data

    3- RTS disable (Delay 100-200msec)

    4- Rx Data

    these condition should do looping from 1 to 4 for communication. Is there any way to do that?

     

  9. Hi,

    when I tired ;
                  var.strx1 = "FullScaleMin_AI4"
                  var.x22 = 5
                  var.strdeneme =  var.strx1+"="+(var.x22)
                  Execute(var.strdeneme)

    it is working. But when I tried minues value;
                  var.strx1 = "FullScaleMin_AI4"
                  var.x22 = -5
                  var.strdeneme =  var.strx1+"="+(var.x22)
                  Execute(var.strdeneme)

    it is giving error "C1066 Invalid operator". But I can set the channel like FullScaleMin_AI4=-5.

    where is the problem I can not find