Announcement

Collapse
No announcement yet.

Inconsistent format result from BRX EMAIL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts


  • Inconsistent format result from BRX EMAIL

    I've toyed with this for hours now and this is driving me crazy. LF/CR where I don't want them in the mail, breaking strings with LF/CR that are shorter than other strings, inconsistent $T tab control and Timer formats breaking across two lines with LF/CR. Two examples follow. What I coded and what I got back:

    EXAMPLE ONE CODE

    "LINE 19 SHIFT REPORT$L"
    "$LGrinder_Runtime"
    "$L"FmtTMR(T30,sec)
    "$LGrinder_Start"
    "$L"CT30.Acc
    "$LBlower_Runtime"
    "$L"FmtTMR(T31,sec)
    "$LBlower_Start"
    "$L"CT31.Acc
    "$LFeedroll_Runtime"
    "$L"FmtTMR(T32,sec)
    "$LFeedroll_Waiting"
    "$L" FmtTMR(T33,sec)
    "$LHigh_Bin"
    "$L" CT33.Acc
    "$LLow_Bin"
    "$L"
    "$LCyclone_Plug"
    "$L"
    "$LAir_Flow_Fault"
    "$L"
    "$LGuard_Open"
    "$L"
    "$LeStop"
    "$L"



    EXAMPLE ONE REPORT

    LINE 19 SHIFT REPORT

    Grinder_Runtime
    121h 19m 30s

    Grinder_Start
    2
    Blower_Runtime
    121h 19m 33s
    Blower_Start
    1

    Feedroll_Runtime
    26m 15s
    Feedroll_Waiting
    1h 18m 45s
    High_Bin
    1

    Low_Bin

    Cyclone_Plug

    Air_Flow_Fault

    Guard_Open

    eStop



    EXAMPLE TWO CODE

    "LINE 19 SHIFT REPORT"
    "$LGrinder Runtime$T"FmtTmr(T30.Acc,sec)
    "$LGrinder Starts$T$T"CT30.Acc
    "$LBlower Runtime$T"FmtTmr(T31.Acc,sec)
    "$LBlower Starts$T$T"CT31.Acc
    "$LFeedroll Runtime$T"FmtTmr(T32.Acc,sec)"$T"
    "$LFeedroll Waiting$T"FmtTmr(T33.Acc,sec)"$T"
    "$LHigh Bins$T$T$T"CT33.Acc
    "$LLow bins$T$T$T"
    "$LCyclone Plugs$T$T"
    "$LAir Flow Faults$T$T"
    "$LGuard Opens$T$T"
    "$LeStops$T$T"
    "$LMaintenance mode time (key switch on)$T"FmtTmr(T34.Acc,sec)


    EXAMPLE TWO REPORT

    LINE 19 SHIFT REPORT
    Grinder Runtime 121h 47m 58s
    Grinder
    Starts 2
    Blower Runtime 121h 48m 00s
    Blower Starts 1
    Feedroll Runtime 26m
    15s
    Feedroll Waiting 1h 18m 45s
    High Bins 1
    Low bins
    Cyclone Plugs

    Air Flow Faults
    Guard Opens
    eStops
    Maintenance mode time (key switch
    on) 0s


  • #2
    You need $N for the line feeds, not $L.

    Comment



    • #3
      Thanks. It does look better now. Didn't think there was much difference between LF and CR/LF but I stand corrected.

      Comment



      • #4
        Originally posted by STEM Apps View Post
        Thanks. It does look better now. Didn't think there was much difference between LF and CR/LF but I stand corrected.
        CR/LF is fundamental to line delineation of plain text emails. When you didn't provide it, the PLC engine did at the 80 character limit.

        Comment

        Working...
        X