Search the Community
Showing results for tags 'weight serial loadcell rs232'.
Hello, We need support/guidance for implementing the following use case in a V120 series PLC. The PLC will need to be configured to use the RS232 interface to continuously read string data from a load-cell controller, and control solenoid valves with three coils that will be used for an automatic filling application based on weight: The V120 will read data continuously from a load-cell weight controller via one of the RS232 interfaces. The data that the weight controller sends will be in the following format: <STX> <POL> xxxxx.xx <L/K> <G/N> <STAT> <CR> <LF> Where: <STX> is the start of transmission <POL> is the polarity of the data which can be either <space> for positive or "-" for negative xxxxx.xx are digits for the weight data with two decimals <L/K> will be K for "kilograms" <G/N> will be G for "gross" <STAT> can be either <space> for valid, "M" for motion or "O" for over/underrange <CR> <LF> are carriage return and line feed respectively. In general terms, the PLC logic will need to Authenticate a user with a 3 or 4 digit user code Allow the user to enter a recipe that consists of three weights (one for each valve/actuator), so the operator will need to enter three values (Kg1, Kg2, and Kg3) with the keyboard for three different variables. After confirming the recipe on the screen, the operator is asked to confirm if he/she wants to "continue, correct the recipe or abort". Once the user confirms to continue, the PLC will activate the first coil to open the first valve and leave it open until the weight reading reaches the amount for Kg1 at that point closing coil1, then it continues to the next valve, opens it and leaves it open until the weight reading has reached Kg1+Kg2, and so on, until the batch finishes. We would also like to use data tables to store the "batch data" and keep a certain amount of historical data in the PLC memory, each line in the data table should basically have the following columns: Date/time stamp when the batch started, the values for Kg1, Kg2 and Kg3, the operator user code. Our questions for this forum are: Are there any example applications that we can use as a "base" to implement this project? We are not experienced in VisiLogic, but we think that with proper guidance we can adapt existing projects and tackle this well. Specifically what we are most "concerned" with is proper implementation of the serial protocol read logic, and the storing of historical batch data in the PLC data table. Any other suggestions are welcome. Thank you,