Local registers from software version v9.40

  • Hey guys,


    I got some requirements for a customer project. There is a hint in the document that it is possible to use local registers from sofware version v9.40.


    Do somebody of you have more information about it?

  • Hey guys,


    I got some requirements for a customer project. There is a hint in the document that it is possible to use local registers from sofware version v9.40.


    Do somebody of you have more information about it?

    Hi,


    The number of local registers are set in the details screen of a TP-program (if the system software is v9.40 (or higher).
    First number of a local register is 10001, for example R[10001] or PR[10001] or SR[10001].


    There are a few limitations when using them, but mostly they work the same as regular registers.


    All Local Registers are reset to default value (0) when the program is ended or aborted. The values are kept during the execution of the program and is not affected by pausing the execution.


    A maximum of :

    100 R

    30 PR

    20 SR

    local registers can be set.


    Each TP program allocates memory corresponding to the set amount of Local Registers, regardless of them being used in the program or not. So better not set more Local Registers than actually needed in the program.


    Info can be found in manual B-83284EN/10 and later

Advertising from our partners