scot

MrPLC Member
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About scot

  • Rank
    Newbie

Profile Information

  • Country Poland
  1. GX works 3 RS2 function

    Most of what you wrote is ok but the question is how to put H2e into MM and SS and also add STX and ETX - for me that is the biggest problem. how to ins
  2. GX works 3 RS2 function

    ok, sorry for the lack of concrete. First question how to make from '12.34' this: H31322e3334 next how to make from H31322e3334 this (addded stx etx and DW): D400:=H0231322e; D402:=H333403; because sending D400 will display this on the terminal: 43.21 so how to make from: D400:=H0231322e; D402:=H333403; this: D400:=H0334332e; D402:=H323102; that is all    
  3. GX works 3 RS2 function

    no. Because I have to specify a DWORD variable of the following information: variable declaration D300: = H023130 // (# STX 1 0) (* minutes *) D301: = H2e // (.) (* Dot *) D302: = H323303 // (2 3 #ETX) (* seconds *) Total 7 characters. Next it should look like this D400:=H0231302e; D402:=H323303; Then do something like ROL because after sending via RS485 I get everything back.
  4. GX works 3 RS2 function

    Hello. - I'm sorry for my English - I'm a self-taught :) Please help with the RS2 function ... Request: I need to send in ASCII timestamp in mm.ss format [minutes.seconds] Problem I am sending a single frame - but it is exposed from the back. How to do to send time in given format. Time is counted from 10 minutes to 0. simple code (just for a view):   IF send_data THEN SM8561:=TRUE; RS2(SM412,D400,D450,D470,K1,D800); //D400 - Double word witch frame //D450:=K7 //D470:=K0 // I DO NOT NEED TO RECEIVE ANY DATA S1M8561:=FALSE; send_data:=FALSE; END_IF;