جزاك الله خيرا على هذه الأسئلة أخي أحمد.
A #out_pump_1
A #in_takt_flag
FP #hm1 // Positive Edge
هذه عمليت AND بين out_pump_1 و in_takt_flag كلاهما BOOL TYPE
حيث يجب أن يكون كل بت منهما = 1 حتى يكون عندنا Positive Edge أي إذا تحقق هذا الشرط يكون hm1 = 1 و هو أيضا BOOL TYPE
RLO Edge Detection: An "RLO edge" detection is when the result of a logic operation changes from
"0" to "1" or from "1" to "0".
Positive Edge: (Positive RLO Edge Detection) detects a signal change in the address (M1.0)
from "0" to "1", and displays it as RLO = "1" after the instruction (such as at M
8.0) for one cycle.
To enable the system to detect the edge change, the RLO must be saved in an
FP bit memory (such as M 1.0), or a data bit.
Negative Edge: (Negative RLO Edge Detection) detects a signal change in the address (M1.1)
from "1" to "0" and displays it as RLO = "1" after the instruction (such as at M
8.1) for one cycle.
To enable the system to detect the edge change, the RLO must be saved in an
FN bit memory (such as M 1.1), or a data bit.
ثم لدينا JUMP INSTRUCTION
JNB Label1): Jump if "RLO" bit = 0 and save RLO
المقصود أنه أن هذه التعليمة تسمح بالقيام بعملية القفز إلى ال Label المحدد إذا كان "RLO" bit = 0 مع القيام بعمل save لل RLO. و إذ اكان "RLO" bit = 1 فإنه لا يأخذها بعين الإعتبار و ينتقل مباشرة إلى التعليمة التي تليها. ال Label هنا هو
001 _The RLO saving jump functions (JNB) save the state of the RLO bit in the BR bit.
BR Bit
The BR bit represents an internal bit memory, in which the RLO can be saved
before an RLO changing instruction. This is so that the RLO is afterwards again
available for the resumption of the interrupted bit string.
OV Bit
The OV bit (overflow) displays an error in a math instruction or a comparison
instruction with floating point numbers. The bit is set according to the result of the
performed math or comparison instruction
التعليمة SAVE تقوم بحفض RLO داخل BR
SAVE: Save RLO in binary result
التعليمة CLR تقوم بتصفير RLO
CLR Set RLO to "0"
أرجو أن تكون الإجابة واضحة و في إنتظار الرد