E_Controls_Automation

MrPLC Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About E_Controls_Automation

  • Rank
    Hi, I am New!

Profile Information

  • Country United States
  1. DL06 Analog Problem

    I am working with a pretty simple rendition of a program to do some analog outputs. At least it started out simple. I have the values being written to the V memory location specified but it will not change the current value at the output. I am thinking it is an addressing issue but would like someone else with a little more experience with Direct Logix to confirm this for me. Thanks Here is the code. 0STRSP1 1MOVED K0 V2100 16MOVED K0 V2102 31MOVED K0 V2104 46MOVED K0 V2106 61STR X0 62OR X1 63OR X4 64OUT Y0 65STR X2 66OR X3 67OR X5 68OUT Y1 69STR X0 70ANDN X1 71MOVED V2200 V2100 85STR X1 86ANDN X0 87MOVED V2300 V2100 101STR X2 102ANDN X3 103MOVED V2202 V2102 117STR X3 118ANDN X2 119MOVED V2302 V2102 133STR X4 134ANDN X0 135ANDN X1 136MOVED V2400 V2104 150STR X5 151ANDN X2 152ANDN X3 153MOVED V2402 V2106 167STRSP1 168MATHBIN V2000(V2100 * K65535) / (K100 - K0) 192MATHBIN V2002(V2102 * K65535) / (K100 - K0) 216MATHBIN V2004(V2104 * K65535) / (K100 - K0) 240MATHBIN V2006(V2106 * K65535) / (K100 - K0) 264ANLGOUT K0 K1 K4 K1 V2000 300END Any help would be greatly appreciated! B