Search the Community

Showing results for tags 'scalling'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 2 results

  1. Hello all, I am trying to write one FB for Analog Scaling in GX Works 3 Software for my Mitsubishi FX5U Plc... Unfortunately i am not aware very much about ST Language instructions of Mitsubishi Softwares. So the Code is Giving 5 Errors, i think the error are due to incorrect data conversion expressions, Can you please correct me with my code ? Here are the Variables RAW_MIN                   Word [Signed]                      VAR_INPUT RAW_MAX                  Word [Signed]                      VAR_INPUT SCAL_MIN                  FLOAT [Single Precision]    VAR_INPUT SCAL_MAX                FLOAT [Single Precision]    VAR_INPUT AI_RAW                      Word [Signed]                       VAR_INPUT SCALED_OP_REAL   FLOAT [Single Precision]    VAR_OUTPUT SCALED_OP_INT      Word [Signed]                       VAR_OUTPUT Here is the Code SCALED_OP_REAL:=(((SCAL_MAX-SCAL_MIN)*(INT2FLT(AI_RAW)-INT2FLT(RAW_MIN)))/(INT2FLT(RAW_MAX)-INT2FLT(RAW_MIN)))+SCAL_MIN; SCALED_OP_INT:= FLT2INT(SCALED_OP_REAL);
  2. Batch Reporting in NB-Designer

    Hello Everyone... Is it possible to create below type of report in NB Series HMI (NB-Designer) ?   Template Below CYCLE START TIME CYCLE STOP TIME TIME TAKEN BY CYCLE (MIN) HIGHEST AI VALUE  (BAR) 05:39:00 06:39:00 60 555.5 06:40:00 06:45:00 15 556   I have Cycle bit in PLC, using rising and falling edge of that we can detect cycle start time and stop time. i have no idea of calculating time taken by cycle and how to determine highest scaled value of analog input during cycle...? is there any macro to write to do so...?