Download FM 352-5 High Speed Boolean Processor
Transcript
Programming and Operating the FM 352-5 Assigning Input Elements Use the input section of the declaration table to assign the input elements to be used in the program, as shown in Table 6-1. These include the physical inputs of the module and the 14-byte structure from the CPU user program that are used as inputs to the FM 352-5 module. Table 6-1 Example Declaration Table for the Application FB, Input Section (as displayed in STEP 7 V5.1) Address Declaration Name Type Comment Input Section: This input is position-specific. The first 15 bits are digital inputs of the FM 352-5. You can specify a list of BOOL or an Array of BOOL (but not both). You can also assign names to the inputs. 0.0 in DIn *0.1 in ARRAY [0..14] Digital inputs – (0..11 = 24V) (12..14 = RS-422 differential) BOOL Input Section: Bytes 2 through 15 are position-specific data from the CPU to the FM 352-5 module. Any combination of BOOL, Array of BOOL, BYTE, WORD, INT, or DINT which total 14 bytes, is allowed. You can assign names to the inputs. 2.0 in CPU_Out +0.0 in Bits *0.1 in STRUCT 14 bytes from the CPU as inputs to the FM. ARRAY [0..15] ...Some can be boolean BOOL +2.0 in T1_PV DINT ...Some can be DINT (DINT must start at +2, +6, or +10) +6.0 in T2_PV BYTE ...Some can be BYTE (must be typecast to INT by MOVE instruction) +7.0 in CmpByte BYTE +8.0 in C1_PV INT ...Some can be INT (INT must start at an even byte boundary) +10.0 in CP_Period WORD ...Some can be WORD +12.0 in CMPInt INT But total structure length must be14 bytes. =14.0 in END_STRUCT Note Data is consistent only over long-word (4-byte) boundaries. To ensure data consistency, a double integer (DINT) element must start at +2, +6, or +10. The colors in the declaration table have the following meanings: Color Meaning Sections in blue provide specific information about the declarations. Addresses in red cannot be changed. Element names or types in red cannot be changed. Addresses in green can be changed. Element names or types in green can be changed. If encoder structure is used, it cannot be changed. If it is not used, it can be deleted. FM 352-5 High-Speed Boolean Processor A5E00131318-03 6-7