Posted 23 Feb 2018 What is the Use of Number data type for CJ2 Omron PLC? it takes integers as well as float values . we can not map it to D or H memory area. Share this post Link to post Share on other sites
Posted 23 Feb 2018 You cannot use an address for NUMBER. It is intended for literal values only. The number type will be determined by the method in which you precede the constant value. (#, &, +, -). A REAL value will be preceded by a "+" or "-" and contain a ".". Share this post Link to post Share on other sites
Posted 23 Feb 2018 In other words, a Number type data is a named constant. Share this post Link to post Share on other sites
Posted 23 Feb 2018 20 minutes ago, Sergei Troizky said: In other words, a Number type data is a named constant. Simply stated. Share this post Link to post Share on other sites
Posted 23 Feb 2018 I am interested in use cases rather than the definition of Number. What is the use when we want to read or write to the plc memory using ethernet/ip ? Hope I am clear . Share this post Link to post Share on other sites
Posted 23 Feb 2018 1 hour ago, omi jha said: I am interested in use cases rather than the definition of Number. What is the use when we want to read or write to the plc memory using ethernet/ip ? Hope I am clear . It really has nothing to do with EtherNet/IP. It is just a way to put a symbol on a constant for documentation purposes. I never use this functionality, but rather comment the code and the rung around the constant so that the meaning of the constant is clear. In the rung below, I move a constant of 5 (UINT) into D100. D100 could then be part of the implicit messaging communications of EtherNet/IP if you set it up to do so (as an example): Here is the definition of the constant in the symbol table: One other use for this is that you could use the name to program rather than the constant value itself. So, if you had a more complicated constant that you might not remember, you could use this to enter your command. Example (if you did not remember what pi's value was): Creation of pi symbol: Programming using the symbol name: End result (area calculation): Share this post Link to post Share on other sites