Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 20 of 31

DX-9100 Configuration Guide: Software Configuration, pages 181 to 190

Pages 181 to 190 of 288, from DX-9100 Configuration Guide

The original document is the PDF (1.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Johnson Controls DX-9100

Page 181

Instruction COS

This logic instruction is intended to detect a positive change in the value of the result status obtained from the preceding logic instructions in the instruction block. The result status calculated in the actual execution cycle is compared with the result status obtained in the previous cycle and retained in the memory location addressed in the COS instruction. If the result status has changed from a value of 0 to 1 in the actual execution cycle, the result status is set to 1; otherwise, it is set to 0. Conditional instructions following a COS instruction will be executed only once after a change-of-state in the preceding logic expression. The instruction below detects a positive change of status. DI1 COS

L dxcon045

Figure 43: COS Instruction Table 18: COS Previous Result Status

Result Status

1 scan

0

0

2 scan

1

1

3 scan

1

0

4 scan

1

0

5 scan

0

0

6 scan

1

1

Instruction SET

This instruction is executed only if the result status has a value 1 and causes the addressed memory location to be set to 1. In Figure 44, the variable LRS3 will be set if the logic block result is true. DI1 L

DI2

LRS3 SET dxcon046

Figure 44: SET Instruction Table 19: SET Previous Result Status

SET

0

No action

1

1

IF 1

THEN 1

Configuration Guides - DX-9100 Configuration Guide

181

Page 182

Note: Normally each variable set by the PLC will also need to be reset by the PLC unless it is reset by some other module, by controller initialization, or by a BAS command. Instruction RST

This instruction is executed only if the result status has a value 1 and causes the addressed memory location to be set to 0. In Figure 45, the variable LRS3 will be reset (set to 0) if the logic block result is true. DI1

DI2

LRS3

L

RST dxcon047

Figure 45: RESET Instruction Table 20: RST Previous Result Status

RST

0

No action

1

0

IF 1

THEN 0

Instruction END (SX Only)

This instruction ends the execution of the PLC Program and sets the result status to the 0 state. Provided that no power failure occurs, the next PLC execution cycle will begin with the logic instruction in the specified address field. This allows the skipping of initialization routines in the lowest address locations. After a power failure, the PLC execution cycle will begin at Address 0000.

182

Configuration Guides - DX-9100 Configuration Guide

Page 183

0000 Power Up Instructions

Power Failure

RSR

0100

Rest of Program

END 0100 dxcon048

Figure 46: END Instruction/Program Execution After Power Failure Instruction RSR (GX Only)

In the GX-9100 Graphic Configuration Software the RSR (restart) element marks the place where the PLC execution cycle will begin when there has been no power failure. Immediately upon power up, the code before and after RSR will run; consecutive scans will only run the code after RSR. RSR

L dxcon049

Figure 47: RSR Block Instruction NOP

This instruction has no operation and causes the PLC to skip this line of the program. It is normally used in the GX Tool to make the logic easier to read and to fill in unused graphic elements.

Configuration Guides - DX-9100 Configuration Guide

183

Page 184

Via the GX Tool

Click on PM in the toolbar, select PLC, and position the PLC module (box) on the screen. Double-click on PLCn to enter instructions into the ladder diagram. The instruction line consists of instructions (such as LOAD) and logic variable labels (such as DI1, Digital Input 1). Following is an example of how to construct a simple logic program using the GX Tool: Specification: If occupied is On and the outdoor air temperature is below 55°F (12.8°C), start the hot water pump. Clicking the mouse on the upper left dot calls up the following choices: NOP, LOAD, LOAD NOT, RSR. Selecting LOAD is similar to typing IF: •

If occupied is On would be done in this way: TS1OUT L dxcon050

Figure 48: If Occupied is On (Where load was selected by clicking on the left dot and TS1OUT, occupied was selected by clicking on |L|, then TS, then TS1OUT.) •

AND the outdoor temperature is below 55° would be done in this way: TS1OUT

PM4LS1

Click and select PM4 (comparator), then PM4LS1.

L dxcon051

(Click to select AND.)

Figure 49: AND the Outdoor Temperature is Below 55° Then click on the next dot to select OUT, as follows: TS1OUT

PM4LS1

(Click to select OUT.)

LRS5

L Click and select where the result should go. Usually, this will be an LRS that can then be connected to any logic destination.

dxcon052

Figure 50: Select OUT To complete the specification, LRS5 would be the source point of the Digital Output defined as the hot water pump. 184

Configuration Guides - DX-9100 Configuration Guide

Page 185

Via the SX Tool

Instruction lines are divided into three fields: • field for the instruction code, such as LOAD (CODE1)

• field to select a bit in a memory logic variable byte, bit 1-8

• field to address a memory logic variable byte, such as 06 (=DIS; Digital Input Status)

Notes: Bits 1-8 of a logic variable are equal to bits X1-X8 or X9-X16 of the corresponding Item byte or word. See Appendix D: Logic Variables for a list of logic variables. Visual examples of these instructions can be found earlier in this section, under PLC User-Defined Program. Instruction LOAD

[ Code ]

[ bit ]

[ Memory Address]

1

1...8

0..255

[ bit ]

[ Memory Address]

2

1...8

0..255

[ Code ]

[ bit ]

[ Memory Address]

3

1...8

0..255

[ bit ]

[ Memory Address]

4

1...8

0..255

[ Code ]

[ bit ]

[ Memory Address]

5

1...8

0..255

[ Code ]

[ bit ]

[ Memory Address]

6

1...8

0..255

[ Code ]

[ bit ]

[ Memory Address]

7

0

0

[ Code ]

[ bit ]

[ Memory Address]

8

0

0

Instruction LOAD NOT [ Code ]

Instruction AND

Instruction AND NOT [ Code ]

Instruction OR

Instruction OR NOT

Instruction ANDB

Instruction ORB

Configuration Guides - DX-9100 Configuration Guide

185

Page 186

Instruction OUT

[ Code ]

[ bit ]

[ Memory Address]

9

1...8

0..255

[ bit ]

[ Memory Address]

10

1...8

0..255

[ Code ]

[ bit ]

[ Memory Address]

11

1...8

0..255

[ Code ]

[ bit ]

[ Memory Address]

12

1...8

0..255

[ Code ]

[ bit ]

[ Memory Address]

13

1...8

0..255

[ Code ]

[ Program Address]

31

0..511

[ Code ]

[ bit ]

[ Memory Address]

0

0

0

Instruction OUT NOT [ Code ]

Instruction COS

Instruction SET

Instruction RST

Instruction END

Instruction NOP

Notes

1. The PLC program can be generated using the GX-9100 Tool. The program is laid out in the format of a Ladder Diagram and the graphic software automatically generates the program code for the PLC module. This ladder cannot be read from the DX front panel. 2. The use of the instruction codes and logic variable memory addresses is only required for the programming with the SX Tool. 3. On power up, the PLC is executed before the programmable modules. For more detailed information, refer to Power Up Conditions Programmable Logic Controller (PLC), further in this guide. 4. A series of ANDNOT statements followed by an OUTNOT statement is logically equivalent to a series of OR statements followed by an OUT statement. In the GX Tool, the use of ANDNOT statements in one line will more efficiently use the space available in the ladder logic diagram.

186

Configuration Guides - DX-9100 Configuration Guide

Page 187

I1

PLC Program Example

I2

I4

L

L

I3

I5

I6 L

O1

B

I7

O 1 = [ ( ( I1 * I 2 ) + I3 ) * ( I4 + I5 ) ] + [ I6 * I7 ] dxcon053

Figure 51: Example of a PLC Program and Equivalent PLC Code LOAD

I1 ; Begin instruction block (IF Input 1 AND Input 2

AND

I2

OR

I3

NOP

OR Input 3 are true. ; Space

LOAD

I4 ; Begin sub block (AND)

OR NOT

I5

AND

IF Input 4 OR NOT Input 5

ANDB

; End sub block (AND) are true.

NOP

; Space

LOAD

I6 ; Begin sub block (OR)

AND NOT I7

IF Input 6 AND NOT Input 7

ORB*

; End sub block (OR)

NOP

; Space

NOP

; Space

OUT

OR are true.

O1 ; End instruction block THEN Output1 is On. ELSE Output1 is Off.)

: : END

0

; End PLC Program

*Note: In the GX Tool, an ORB must be declared before defining the block to be OR’d for graphic formatting purposes.

Configuration Guides - DX-9100 Configuration Guide

187

Page 188

Dial-up Feature with an NDM

IMPORTANT: Before the DX-9100 Controller can be used for dial-in alarm reporting, it must have Version 1.2, 2.1, or later firmware, and the program must be generated using the GX-9100 software program. The dial-up feature is not available with Version 3, the DX-912x LONWORKS controller. There is no special programming or firmware required to allow the DX-9100 Controller to be used in a dial-out application where the operator is initiating the command to dial. The DX-9100 Controller does not support COS reporting and therefore does not cause the NDM to automatically dial in. A bit, called the DIAL bit, was added to the DX-9100 with Version 1.2 or 2.1 firmware. The NDM monitors this bit to determine if an alarm condition has occurred. Once the DIAL bit is set, the NDM initiates its dial-in sequence. Special programming, similar to that shown in this application, is required to set this DIAL bit. The DIAL bit is reset by the BAS once the NDM makes a connection, and the DX-9100 Controller comes online. The DX-9100 Controller can be used for a dial-in N2 application if the following tasks are performed: 1.

Determine which points in the DX-9100 Controller (hardware or software) need to initiate the dial command sequence.

2.

Program the DX-9100 such that the points chosen in Step 1 properly set the DIAL bit from within the Programmable Logic Controller (PLC).

3.

Program the NDM as specified in the NDM Configurator Application Note (LIT-6364090) in FAN 636.4 or 1628.4.

For DX controllers, Versions 1.4, 2.3, and later, the dial-up feature is also used to allow the Metasys supervisory system to read trend log data for its Point History feature. The logic variable HTRR (Historical Trend Read Request) indicates when the buffers are full and must be included in the logic diagram if the trend data is required for Metasys Point History. Refer also to the section Trend Log further in this document. Choosing the Points

Because the DIAL bit is set from within the PLC, any digital point, such as a binary input or possibly an analog input’s alarm status, is a valid choice. It is up to the programmer to decide which of these points, when added to the PLC, must cause the NDM to dial in and report the alarm condition. It is crucial that the points that set the DIAL bit within the PLC also exist as alarm reporting points in the BAS. The following section shows the configuration needed to add the points to the PLC to set the DIAL bit.

188

Configuration Guides - DX-9100 Configuration Guide

Page 189

Configuring the Program

This application requires a dial-in to occur if either sensors, AI1 or AI3, go into a high alarm or return to normal state. In addition, a dial-in is also required if either digital input, DI1 or DI2, go into an alarm, or if the trend log buffer is full. To do this, open a page in the PLC and enter a logic block that ORBs all the alarm points together and then SETs the DIAL bit as a result. For the return to normal alarms, it is necessary to add a LOAD NOT of the alarm condition. The following diagram is an example of how this configuration appears in the PLC: Logic Module Ladder Diagram - PLC1 User Name: DIAL Description: Dial Control

DIAL

AIH1 L

COS

SET

AIH1 L

COS

AIH3 L AIH3 L

COS AIH3 COS

DI1 L

COS

DI2 L

COS dxcon054

Figure 52: Configuration Diagram

Configuration Guides - DX-9100 Configuration Guide

189

Page 190

The COS block is needed to prevent an alarm point from retriggering the DIAL bit by having a true output for only one pass of the PLC after it detects a transition from low to high. This requires the alarm point to return to normal before that COS outputs again. When an alarm occurs, the DIAL bit is set. The remote NDM then detects the reset, causing it to dial in to the local NDM. Once communication is established, the BAS resets the dial bit. Notes: To create the above logic, you must use an ORB rather than an OR statement. If an OR statement is used, you will not be able to AND the COS block with the alarm point. The HTRR variable does not require a COS element as the Metasys system will always reset HTRR when a connection is made. Variations

Note that the previous example requires a line of PLC for each condition that requires a dial-in to occur. In order to conserve space in the PLC, it is possible to generate the alarms utilizing a timer. The purpose of the timer is to generate a pulse when the alarm is first detected, just as the COS block did in the previous example. The timer outputs (which indicate that an alarm has occurred) can then be used in the PLC to set the DIAL bit. To do this, add the conditions that require a dial-in as the inputs to the timer. Define the timer as a pulse type timer with a time of 2 seconds, which gives the PLC time to detect the pulse. Use the timer outputs in the PLC to generate a pulse to an LRS. This same LRS is then used to set the DIAL bit. This method conserves space in the PLC by performing the OR statement of up to seven alarm conditions on one line. This is done with reverse logic by ANDing a series of LOAD NOTs instead of ORing a series of LOADs. This method is shown in the following two diagrams. Figure 53 shows how to configure the timers, Figure 54 shows how to use these timers with reverse logic in the PLC.

190

Configuration Guides - DX-9100 Configuration Guide