Jump to content
OMRON Forums

DT-Europe

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by DT-Europe

  1. How can we change coordinate system definition on-the-fly? It seems that commands like: &1#1->0 &2#1->2000X are not permitted from a PLC. We can of course change the scale factor with Motor[n].CoordSF but what about removing a motor from a coordinate system to put it on another coordinate system and how to change his name? It seems that we cannot write into Motor[n].Coord It seems that commands like: &1#1->0 &2#1->2000X are not permitted from a PLC. Thanks.
  2. We try to do Array with PTR format pointing to User memory. So, we do: PTR Myvar(16)->u.user.$1000 After download, we see that Myvar is M8192 on our mapping and of course, next 15 M_variables are reserved, which is OK. We check then the pointing of M8192 to M8208 and they are all pointing to the same location, address $1000 We see: M8192->u.user:$1000 M8193->u.user:$1000 M8194->u.user:$1000 and so on. We should have an index of 4 (because of the u format): M8192->u.user:$1000 M8193->u.user:$1004 M8194->u.user:$1008 and so on. We did the same test with d format instead of u format and we have same problem. We see: M8192->d.user:$1000 M8193->d.user:$1000 M8194->d.user:$1000 We should have an index of 8 (because of the d format): M8192->d.user:$1000 M8193->d.user:$1008 M8194->d.user:$1016 and so on. So, we think that this is a bug to fix. We are using Firmware 0.9 of NOV 20 2008
  3. Which register to use to know the actual position of motor? When we perfom a homing of a motor, the position window of IDE is showing zero, but the different registers that we tested: Motor[1].ActPos Motor[1].DesPos Motor[1].Pos Motor[1].Pos2 are showing a different value than zero. The value showned by the above registers seemS to be the Motor[1].HomePos register. So, do we have always to substact the Motor[1].HomePos value to know the actual or desired position of a motor?
  4. In a script PLC, how can we have a IF statement with conditions on multiple lines. As a very simple example for testing purpose, I tried following things without any success: IF(M2000 == 1 && M2100 == 1) IF(M2000 == 1 && M2100 == 1) IF((M2000 == 1 && M2100 == 1)) IF((M2000 == 1 && M2100 == 1)) When very very long conditions, we need multiple lines.
  5. [quote=brad] Attached is a file of timer functions that you can include in a project to give your code timer functionality. [/quote] How or where do I include this file in the project?
  6. The IO Gate addresses detected don't reflect the dip switch setting done on the different IO boards, but the memory map to access th IO is correct. e.g. setting of our dip switches ACC66E first | $B00000 | Gate IO 4 | ACC66E second | $B08000 | Gate IO 5 | The 1st ACC66E is responding on $B00000 but is detected in the sys.CardIOAutoDetect in a wrong bit and the intellisense GateIO[1] instead of GateIO[4].
  7. What are the use of these files: - pp_disable.txt - pp_startup.txt - pp_default.cfg - pp_save.cfg and how can we use them (put our stuff inside) in our project? In general, can we include our own files with some basic setup inside (like setting Motor[] or Coord[] variables)?
  8. How can we access shared memory to exchange datas between C_PLCs and Script PLCs? Is the starting address $E00000? What is the end address? Is this address the same from both sides C_PLCs and Script PLCs? Will some of this memory be used for automatic functions (like automatic functions in DPR of Turbo)?
  9. How can we make Array with PTR definitions. We have seen in a document something like: PTR MyVar[16]->*u but this gives errors during download. In general, we need a syntax list of all possible existing pointers.
  10. The ELSE condition in script PLCs is not working anymore. Simple test like this is not working: if (counter<100) counter++; else counter=0; here is error received: /var/ftp/usrflash/plc/PLC1.plc:72:1: error #31: Compiler error #12: else P512=0; Same test was working fine in previous versions of IDE/PPMAC FW. Actual system is: PPMAC Firmware: 0.9 of July 23 2008 Power PMAC IDE Suite 0.5(B1) Development software package for Power PMAC machine controllers. Copyright © Delta Tau Data Systems, Inc. 2006-2007 http://www.deltatau.com [Version: 0.0.0.3] [Date:07/31/2008]
  11. This is not working (anymore?) with the actual firmware (23. June) and IDE (0.5(B1)). Is there another way to use it now? **************************************************** If the IDE auto assignment of variable names was used then your PLC would be something like the following. Open PLC 3 local MyVar MyVar = MyVar + 1 Close In this case the intellisense in the IDE will have the structure Plc.3.MyVar which you can use in any IDE window that supports intellisense. ****************************************************
×
×
  • Create New...