SillyBoy

MrPLC Member
  • Content count

    68
  • Joined

  • Last visited

Community Reputation

2 Neutral

About SillyBoy

  • Rank
    Sparky
  • Birthday November 10

Profile Information

  • Gender Male
  • Location Ahmedabad
  • Country India
  1. PLC_omron_cx_programmer

    According to the full-scale resolution of the module, you will get the AI_RAW in a channel-specific address.   (if the module resolution 1:1000) you will get 0 for 4mA and 1000 for 20mA in the appropriate CIO Address. (if the module resolution 1:4000) you will get 0 for 4mA and 4000 for 20mA in the appropriate CIO Address. (if the module resolution 1:8000) you will get 0 for 4mA and 8000 for 20mA in the appropriate CIO Address.   RAW MIN = 0 RAW MAX = (1000/4000/8000 according to module resolution)   AI RAW = Your channel address (for your case I guess somewhere between CIO2001 to CIO2100) (You can check by monitoring the CIO area after sourcing any channel to find exact address because I am not very much familiar with Omron Addressing)   if you want to scale the analog input in 0 to 25000. SCAL MIN = 0 SCAL MAX=25000/
  2. Suppose your flow unit is M3/Hr. Convert this value to M3/Sec. (This is easy) Now accumulate this value at every second. (at the rising edge of per second bit, hope you know how to do so) Call this function at every second ---- M3= (M3)+(M3/Sec) And you know how to convert M3 to liters, right ?   (Disclaimer - This will not give the 100% right value because there is something called scan time in the PLC.)  
  3. Display Integer from FB CX-Programmer

    Hello @Link068 For the testing, Can you send me the backup?
  4. PLC_omron_cx_programmer

    Hello @salah9719   I have attached the screenshot of the Function Block. (So you can figure out what are the input tags and output tags for this function block) Here is the logic of that block.   SCALED_OP:= (((SCAL_MAX-SCAL_MIN)*(INT_TO_REAL(AI_RAW)-INT_TO_REAL(RAW_MIN)))/(INT_TO_REAL(RAW_MAX)-INT_TO_REAL(RAW_MIN)))+SCAL_MIN; SCALED_OP_INT:= REAL_TO_INT(SCALED_OP);   Hope this helps.
  5. Need help with Timer Logic

    @chelton The BOOL tag will go high only when TON_1 running, and I will reset that BOOL tag as soon as TON_2 Starts. SO the cycle can run continuously.
  6. Need help with Timer Logic

    @Michael Walsh @BobLfoot @panic mode
  7. Hello Everyone, I am writing one logic and need some help regarding that logic.   CURRENT LOGIC -  -There are two timers TON_1 and TON_2. -TON_1 timer will start as soon as PLC turns on. -After the done bit of TON_1 timer, the TON_2 timer goes on. -After the done bit of TON_2 timer, again the TON_1 timer will start. -This logic cycle will run continuously, both timers will run turn by turn. Code (Codesys/Schneider Eco Structure Machine Expert)- PROGRAM POU_1 VAR      TON_1: TON;     TON_2: TON; END_VAR TON_1(IN:=(NOT(TON_2.Q)) , PT:= T#100S); TON_2(IN:=(TON_1.Q) AND (NOT(TON_2.Q)) , PT:= T#20S);   Actual Requirement -  -There is a BOOL tag. -If the BOOL tag gets high during the TON_1 running, the logic should move to the TON_2 immediately. -If the BOOL tag does not get high during the TON_1 running, the logic should move to the TON_2 after completion of TON_1. -after the completion of TON_2, again restart TON_1. -Logic Runs continuously in a cyclic mode.   Give me your valuable idea to fulfill the logic requirement.
  8. The issue is solved by enabling USB 2.0 Support in VMWare Settings.
  9. Thank you for your prompt reply. For your clarification, Pic - 1 Device Manager of Host (When Controller is connected only with Host) Pic - 2 Device Manager of VM (When Controller is connected only with VM)
  10. Hello... I have installed the most recent versions of Eco structure Machine Expert Basic and Eco structure Machine Expert in VMWare Workstation 16 which is configured with Windows 7. I can successfully connect Modicon M221 & M241 Controllers in VM using Ethernet via Bridge connection of Host and VMWare Ethernet Adapters.   But the software is not able to detect the Controllers over USB Connection. All the services & Gateway are running normally for USB Connection. Looks like some issues with the Driver, but I am unable to solve them.   Please check the attached screenshot of the device manager.  
  11. Understanding the Virtual Machines

    Thank you everyone for your valuable comments and suggestions, I really appreciate that.  
  12. Hello Dear Friend, Need some advice regarding using the Virtual Machines. I bought a new laptop for office use. (for Programming various PLC and designing HMI/SCADA etc...)   The configurations of the Laptop are as below. Model - Asus Tuf Gaming F15 Processor - Intel Core I5-10300H 10th Generation RAM - 8GB DDR4 HDD - 1TB SSD M.2 NVMe PCIe Graphics - 4GB NVIDIA GeForce GTX 1650 Ti GDDR6 2.5 GHz Base Speed, Up to 4.5 GHz Turbo Boost Speed, 8MB Cache, 4 Cores, 8 Threads.   I have never used Virtual Machine before, but this time I am planning to install all the automation-related software on VMs. Main System - Windows 7 64bit + MS Office + Accounting Software + Mail etc. I am planning to create 4 VMs as of now. VM1 - Windows 7 + Schneider Software (Control Expert, Machine Expert, Citect, Vijeo Designer, etc...) VM2 - Windows 7 + Omron + Delta + Fuji Software VM3 - Windoes 7 + Siemens Software VM4 - Windows 7 + Rockwell Softwares   I am planning to make two partitions of 1 TB SSD. Partition-1 for Main System (100 GB) Partition-2 VMs and all other Data (900 GB)   I will not run more than 1 VM at a time. All the VMs will be used to run the software only. I am planning to store all the project backups outside the VMs.   Now my Questions -  1) Should I use the VMs ? 2) Which VM software should I use? (I am preferring Freeware) 3) How much RAM and Processor should be assigned to each VM ? 4) How to configure a Graphics card to improve the performance of VM ? 5) How to access the storage of partition 2 in all the VMs to store all the data outside of VM ? 6) How do VMs use Processing Power of CPU and RAM ?   Please share your valuable suggestion and answers.   Have a Good Day.  
  13. OMRON CQM1H-CPU21 Serial Connection

    My Computer doesn't have a built-in Serial Port. I am using RS232 Serial to USB Converter to connect the Controller. What will be the communication cable scheme for using the convertor?
  14. Analog Input Filtering in OMRON

    Thank You.