(from the other forum)....

Hi,

I thought this needed to be posted. There are so many questions having to do with Macro B, which some machines don't have, but perhaps they DO have Macro A, which nobody ever talks about.

I'd like to see if someone tests for Macro B and it doesn't work

(MDI ---> #500 = 1 EOB, Cycle start)

Tests also for Macro A (MDI --> G65 H01 P#500 Q1 EOB, cycle start) and finds it does work.

Macro A is cumbersome, but could be a live option for some.

From a 0M Operator's Manual, Macro A usage:

G65 H01 Pn Qn (Definition or substitution)

Macro B == #P = #Q

G65 H02 Pn Qn Rn (Addition)

Macro B == #P = #Q + #R

G65 H03 Pn Qn Rn (Subtraction)

Macro B == #P = #Q - #R

G65 H04 Pn Qn Rn (Multiplication)

Macro B == #P = #Q X #R

G65 H05 Pn Qn Rn (Division)

Macro B == #P = #Q / #R

G65 H11 Pn Qn Rn (Logical sum)

Macro B == #P = #Q OR #R

G65 H12 Pn Qn Rn (Logical product)

Macro B == #P = #Q AND #R

G65 H13 Pn Qn Rn (Exclusive OR)

Macro B == #P = #Q XOR #R

G65 H21 Pn Qn (square root)

Macro B == #P = SIN[#Q]

G65 H22 Pn Qn (Absolute Value)

Macro B == #P = ABS[#Q]

G65 H23 Pn Qn Rn (Remainder)

Macro B == ???

G65 H24 Pn Qn (BCD to Binary)

Macro B == #P = BIN[#Q]

G65 H25 Pn Qn (Binary to BCD)

Macro B == #P = BCD[#Q]

G65 H26 Pn Qn Rn (Combined multiplication / division)

Macro B == #P = [#P X #Q] / #R

G65 H27 Pn Qn Rn (Combined square root)

Macro B == #P = SQRT[[#Q X #Q] + [#R X #R]]

G65 H28 Pn Qn Rn (Combined square root)

Macro B == SQRT[[#Q X #Q] - [#R X #R]]

G65 H31 Pn Qn Rn(Sine)

Macro B == #P = #Q X SIN[#R]

G65 H32 Pn Qn Rn (Cosine)

Macro B == #P = #Q X COS[#R]

G65 H33 Pn Qn Rn(Tangent)

Macro B == #P = #Q X TAN[#R]

G65 H34 Pn Qn Rn (Arctangent)

Macro B == #P = #Q X ATAN[#R]

G65 H80 Pn (Divergence)

Macro B == GOTO #P

G65 H81 Pn Qn Rn (Conditional Divergence 1)

Macro B == IF #Q EQ #R GOTO #P

G65 H82 Pn Qn Rn (Conditional Divergence 2)

Macro B ==IF #Q NE #R GOTO #P

G65 H83 Pn Qn Rn (Conditional Divergence 3)

Macro B ==IF #Q GT #R GOTO #P

G65 H84 Pn Qn Rn (Conditional Divergence 4)

Macro B ==IF #Q LT #R GOTO #P

G65 H85 Pn Qn Rn (Conditional Divergence 5)

Macro B ==IF #Q GE #R GOTO #P

G65 H86 Pn Qn Rn(Conditional Divergence 6)

Macro B ==IF #Q LE #R GOTO #P

G65 H99 Pn (Alarm Occurrence, generates a P/S Alarm with number code 500+Pn)

Macro B == #3000 = 1 (ALARM NOTE)