Levent1970

MrPLC Member
  • Content count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Levent1970

  • Rank
    Sparky

Profile Information

  • Country Germany
  1. Set Current Value to Zero

    Edited
  2. Set Current Value to Zero

    Its on "Data Set Method", I'm Driving with Jog. The Part of my Programm: IF Referenzfahrt_TP_Ein_Aus THEN            M_Ax2_Jog_RVS:=TRUE;      END_IF; IF NOT Endschalter_P_Achse_minus THEN            M_Ax2_Jog_RVS:=FALSE;       FX5SSC_1.stnAxCtrl1_D[1].uPositioningStartNo_D:=9003;       FX5SSC_1.stnCmdGenAxCtrl_D[1].uPositioningStartNo_D:=1;          END_IF; HPr Status:  StatusAxis2HPR:=FX5SSC_1.stnAxMntr_D[1].uStatus_D;    8   (It's Axis 2) Pr21 is set 1:Update of Feed Current Value Pr55 is set 1:Positioning Control is Executed  
  3. Mass Flow Controller MKS MF-1 Modbus TCP FX5U

    I Found this solution:  ModbusTcpClient(ConnectionNo:= 3 ,LocalPortNo:= 5645 ,RemoteIPAddress:= 16#0A2E6749 ,RemotePortNo:= 502 ,UnitId:= 255 ,  EnableConnection:= EnableConnection ,StartSend:= StartSend ,FirstAddress1:= FirstAddress ,ResponseTimeout:= 100 ,NoOfRetries:= 1 ,  SingleDevicesFCode05h06h:= SingleDevices ,ReadOnlyDevicesFCode02h04h:= ReadOnlyDevices ,Read:= Read ,Write:= Write ,BitOrRegister:= BitOrRegister ,  ReadStartAddress:= ReadStartAddr ,ReadNoOfDevices:= ReadNoOfDevs ,WriteStartAddress:= WriteStartAddr ,WriteNoOfDevices:= WriteNoOfDevs ,WriteData:= WriteData ,  OpenComplete=> OpenComplete ,CommandCompleted=> CommandCompleted ,ReadData=> ReadData ,ReadDataByteCount=> ReadDataByteCount ,ReadDataWordCount=> ReadDataWordCount ,  OpenError=> OpenError ,OpenErrorCode=> OpenErrorCode ,Error=> GeneralError ,ResponseTimeoutError=> ResponseTimeoutError ,InvalidCommand=> InvalidCommand ,  InvalidResponse=> InvalidResponse ,ModbusException=> ModbusException ,ModbusExceptionCode=> ModbusExceptionCode );      Now i can Read and Write something to the MFC Controller, in Example if i send: WriteData[0].0:=TRUE; Opens the Valve and a FALSE close this.   Now my Problem is, I need to set the Flowpoint. How I Can Use 0x0001  Bit 1..16 like below (WriteData[0].0:=TRUE; OR WriteData[0]:=1234) Or Read in Example the ThermalMassFlowRate 0x0001 bit 1..16 (ReadData[1]:=XXXXXX) ?  
  4. Set Current Value to Zero

    No Luck, its only Blinking between 0 and and the Current Value, if i move it away from this Point the Current Value is still there.
  5. Set Current Value to Zero

    I Have a Blackout, U1\G5928 is an INT, how can i set my Digital Input x27 to this INT?
  6. Set Current Value to Zero

    In the Selection for the DOG Signal is "Servo Amplifier" or "Buffer Memory" I have No connection on the Servo Amplifier to Connect a DOG Signal (my Limit Switch). Where can i set my Limit Switch as my DOG Signal or Use the Buffer Memory to say in example Input X27 is my Limit Switch and i want to set it as my DOG Signal.
  7. Set Current Value to Zero

    Yes it Works with M_FX5SSC_StartPositioning_01A (M_FX5SSC_StartHoming_Ax2) I set the Parameters for Homeposition but i cant Set the DOG Signal.  
  8. Set Current Value to Zero

    Yes, the Home function is Right. I Have the FX5U with MR JE 20B and HG-KN23BK. my Programpart: IF Referenzfahrt_TP_Ein_Aus THEN          M_Ax2_Jog_RVS:=TRUE;          IF NOT Endschalter_P_Achse_minus THEN              M_Ax2_Jog_RVS:=FALSE;         U1\G2500:=0;                  END_IF;      END_IF;  
  9. Set Current Value to Zero

    Hi, how can i set the Current Value from a Motor to Zero, in Example a Linear Unit is on a Limit Switch, and i want to set This Position as Zero. Thanks a lot.
  10. Hi ! I have to Control and Read an Masss Flow Controller (MFC) MKS MF-1, I have give this one an IP Adress (10.46.103.75). How can I Control it over Modbus TCP? I found in GX Works 3 in Tool/Predifined Protocol Support function the Modbus Menue, but i have no Idea how to Config it, i have no Idea how Modbus works..... Have someone an Example for a Configuration? 
  11. How can I Set or Reset Bit's in GX Works3 Structured Text?

    OK Looks Good, I found out how it Works: Like this: SET(TRUE,Y0) Or RST(TRUE,Y0)  
  12. How can I Set or Reset Bit's in GX Works3 Structured Text?

    Dankeschön !!! But I didnt find anything about Set Bits to Set or Reset condition.
  13. Hi, I am searching for a  Possibility to Set bits in Set or Reset State. How can i do that? in Example the Code in LD: and in ST EQ_E( Merker79 AND Referenzfahrt_TP_Ein_Aus = TRUE , bDummy , P_Achse_Istpos_pulse , 0 ); PLS( bDummy , Drehrichtung_P_Achse AND M8140 AND Loeschen_Positionszaehler_Achsen AND Startpos_anfahren_nach_Referenzi AND P_Achse_Referenziert = TRUE );
  14. Hi, I Have some Problems with this Function Block written in Codesys ST: Variables: FUNCTION_BLOCK FB_Powder_Test VAR_INPUT     bEnable: BOOL;     bPowder_On_Button: BOOL;     bPowder_Test_OnOff: BOOL;     iTime_Powdertest: INT; END_VAR VAR_OUTPUT     bReset: BOOL;     iActual_time_powdertest: INT; END_VAR VAR     PowderTest_Ton: TON; END_VAR Function Block: IF NOT bEnable THEN     bReset := TRUE;     PowderTest_Ton.IN := FALSE;     iActual_time_powdertest := 0; ELSE     IF bPowder_On_Button THEN         PowderTest_Ton(IN := bPowder_Test_OnOff, PT := (INT_TO_TIME(iTime_Powdertest) * 1000));         iActual_time_powdertest := REAL_TO_INT((TIME_TO_REAL(PowderTest_Ton.PT) - TIME_TO_REAL( PowderTest_Ton.ET)) / 1000);         bReset :=  PowderTest_Ton.Q;     END_IF END_IF and GX Works3  Variables: bEnable                                  Bit                        VAR_INPUT bPowder_On_Button            Bit                        VAR_INPUT bPowder_Test_OnOff          Bit                         VAR_INPUT iTime_Powdertest                Word [Signed]    VAR_INPUT bReset                                    Bit                        VAR_OUTPUT iActual_time_powdertest    Word [Signed]    VAR_OUTPUT PowderTest_Ton                  TON                     VAR   Function Block: IF NOT bEnable THEN     bReset := TRUE;     PowderTest_Ton.IN := FALSE;     iActual_time_powdertest := 0; ELSE     IF bPowder_On_Button THEN         PowderTest_Ton(IN := bPowder_Test_OnOff, PT := (INT_TO_REAL(iTime_Powdertest) * 1000));         iActual_time_powdertest := ((TIME_TO_INT(PowderTest_Ton.PT) - TIME_TO_INT( PowderTest_Ton.ET)) / 1000);         bReset :=  PowderTest_Ton.Q;     END_IF; END_IF; I have this Error: No.    Result    Data Name    Category    Content    Error Code 1    Warning    FB_Powder_Test    Syntax Check    Convert data type from INT type to REAL type automatically.    0x11042FD4 2    Error    FB_Powder_Test    Syntax Check    Data type of argument does not match.    0x11041F61