kanber

Members
  • Posts

    116
  • Joined

  • Last visited

Posts posted by kanber

  1. Hi,

    I am trying test Document Licensing. but I have some problems;

    I make a test.ctl file for testing. I put some buttons, texts etc. and I install daqfactory 18.1 to remote pc, copy to desktop for testing. when I double click on test.ctl file it looks trying open on edit mode. But I put password for editing also for licensing.

    image.thumb.png.ecf7a78a8aa39021bf65a098e981deb1.png

    Also file name is showing *

    Then I generate licence for 15 days. and enter the remote computer. and it said licenced for 15 days.

    image.thumb.png.5c426e995e44b3bd850fce464e91cff0.png

    when I click OK then it is showing me save ctl file popup.

     

    image.thumb.png.93eb222d6f57f1bb084ce240809685d1.png

     

    I attached also test.ctl file. passwords are 123456

    image.png

    image.png

    test.ctl

  2. Hi,

     

    I am using version 18.1 Build 2347. Is there still characters problem for ş,ç etc.

    I have problem with convert to pdf file a table with a lot of pages. I need to use pdfAddPage function. But on pdf is is not chowing ş,ç etc characters.

     

    I should do that for take report from system.

  3. Hi,

    On c# I am using DLL like below;

           [DllImport("commdll.dll", SetLastError = true)]
            static extern uint InitDll(int Portno, int Baudrate);
                              
            [DllImport("commdll.dll", SetLastError = true)]
            static extern uint BusyStatus();

            [DllImport("commdll.dll", SetLastError = true)]
            static extern uint CommStatus();

            [DllImport("commdll.dll", SetLastError = true)]
            static extern int ReadMW(uint PLCAdres, uint MWNO, uint Adet);

            [DllImport("commdll.dll", SetLastError = true)]
            static extern int ReadMB(uint PLCAdres, uint MBNO, uint Adet);

            [DllImport("commdll.dll", SetLastError = true)]
            static extern short GetShort(int Index);

            [DllImport("commdll.dll", SetLastError = true)]
            static extern Byte GetByte(int Index);
                   

            [DllImport("commdll.dll", SetLastError = true)]
            static extern int WriteMWExt(uint PLCAdres, uint MWNO, uint Adet);

            [DllImport("commdll.dll", SetLastError = true)]
            static extern short SetShort(int Index, int Value);

            [DllImport("commdll.dll", SetLastError = true)]
            static extern short SetByte(int Index, Byte Value);


            private void button3_Click(object sender, EventArgs e)
            {
                label2.Text = Convert.ToString(InitDll(3, 38400));

                label5.Text = Convert.ToString(ReadMW(1, 0, 5));
                label6.Text = Convert.ToString(GetShort(0));
                label7.Text = Convert.ToString(GetShort(1));
                label8.Text = Convert.ToString(GetShort(2));
            }

    and it is working fine on c#.

    But On daqfactory when I tried with short,ushort, word, uword combinations I am getting error message from dll like incorrect word addess.

     

    global Portno=3
    global Baudrate=38400
    global InitStatus=-99

    global PlcAdres=1
    global StartWord=0
    global WordCount=5
    global ReadStatus=-99
    Extern("commdll.dll","ulong InitDll(long, long)","InitDll","stdcall")
    delay(1)
    //Extern("commdll.dll","uword BusyStatus","BusyStatus","stdcall")
    delay(1)
    //Extern("commdll.dll","uword CommStatus","CommStatus","stdcall")
    delay(1)
    Extern("commdll.dll","long ReadMW(ulong,ulong,ulong)","ReadMW","stdcall")
    delay(1)      
    //Extern("commdll.dll","word ReadMB(uword,uword,uword)","ReadMB","stdcall")
    delay(1)
    //Extern("commdll.dll","short  GetShort(word)","GetShort","stdcall")
    delay(1)
    //Extern("commdll.dll","byte GetByte(word)","GetByteDaq","stdcall")
    delay(1)      
    //Extern("commdll.dll","word WriteMWExt(uword,uword,uword)","WriteMWExt","stdcall")
    delay(1)      
    //Extern("commdll.dll","short SetShort(word, word)","SetShort","stdcall")
    delay(1)
    //Extern("commdll.dll","short SetByte(word, byte)","SetByte","stdcall")
    delay(1)

                
     InitStatus = InitDll(@Portno,@Baudrate)
     ReadStatus = ReadMW(@PlcAdres, @StartWord,@WordCount)

    Is there any table for variables on daqfactory with c# variable?

     

  4. Hi,

    When I tried to read data from SQL server with ODBC. Int values reading OK. but On nvarchar(50) values I am getting NaN. Also on Table is showing "???"

    how can I solve the problem.

    sqlqr.ReceteAdi column is nvarchar(50).

     

    global dbase=db.Open("Deneme")

    //qr = DB.Query(dbase,"Select * from dbo.Receteler")
    global sqlqr = db.Query(dbase,"Select * from Receteler")

    db.Close(dbase)