Mode 50 – Pulse Catch Inputs In This Chapter. . . .
7–2 Pulse Catch Input Mode 50 Pulse Catch Input Using the Pulse Catch Inputs, Mode 50 It is recommended that you read Chapter 1, Getting Started, which introduces the six different modes of operation of the D2–CTRINT module, before selecting a mode. Even though several features can be mixed from several modes, you must select one of the modes as your primary mode. Pulse Catch Input, Mode 50 will be the only mode covered in this chapter.
7–3 Pulse Catch Input Pulse Catching Explained The following example will help to explain the Pulse Catch Mode. Counting pulses in Mode 50 (Pulse Catch Input) Counting input pulses in the user program has some problems to be considered. X0 C0 CNT CT1 K9999 Pulse input to Point 00 Output Input Update Solve user logic Update Output Input Update Solve user logic Update Output Input Update Solve user logic Update Mode 50 Pulse Catch Input [Case 1] This is okay.
7–4 Pulse Catch Input Mode 50 Pulse Catch Input Understanding V-Memory Setup Locations The Pulse Catch Input, Mode 50, associated with the D2-CTRINT requires V-memory configuration in order to be used. V-memory location V7633 is the most important of all the reserved memory areas because it stores the value which lets the CPU know which mode has been selected. The following diagram shows the 16–bit word and the various information it stores, including the values used for the Counter Interface Module.
7–5 Pulse Catch Input Default Settings When xx50 is written to V7633, the CPU places the following default codes in V-memory.
7–6 Pulse Catch Input Custom Configuration Up to this point, only Mode 50 default settings have been discussed. The default settings will be suitable for many applications and will not require a custom configuration. However, for those applications needing the defaults changed so the D2–CTRINT will work for the applications, use the following table which contains the options available.
–7 Pulse Catch Input Setting UP the CPU for the Pulse Catch Inputs Configuring the V–Memory Mode 50 Pulse Catch Input Step 1: Enter the Mode Selected The DL240, DL250–1 or DL260 CPUs checks the V-memory to see if there is a D2–CTRINT Module present. There will be the value 10, 20, 30, 40, 50 or 60 in V7633 if the module has been properly configured. If the CPU finds that a Counter Interface module is present, other V-memory locations will be checked to see how the module has been configured.
7–8 Pulse Catch Input The following RLL example shows how to set the Pulse Catch Input, Mode 50, in V–memory location V7633. DirectSOFT32 Display SP0 LD K50 Load Mode 50 in Accumulator OUT V7633 UP Counters Mode 50 Pulse Catch Input Transfer Contents of Accumulator to V7633 Two commands are needed to put the values into V-memory. The value must first be loaded into the accumulator of the CPU, then the CPU must transfer the value to the memory location. In this case, 50 is to be placed in V7633.
7–9 Pulse Catch Input In the below example, Channels 1 and 2 are configured as Pulse Catch Inputs, Channel 3 is to be a Discrete Filtered Input, and Channel 4 to be an Interrupt Input.
7–10 Pulse Catch Input Installation and Safety Guidelines UP Counters Mode 50 Pulse Catch Input Troubleshooting The following information may provide some assistance in handling any problems which may be encountered when setting up the D2–CTRINT module, should they occur. Experience has shown that most problems occur because of improper configuration. Always re-check configuration before anything else.