ctc monitor user guide - control technology corp. - automation
TRANSCRIPT
����������������
����������
��� ����
������������������ �������
���������� �������������������������������������������
�����������
��
��������������� ���������������������� ��������������������������������������
���������������� ����
�������������������� ���������� � ������������������������������������� ��������� ������������ ���������� ������������������ ��������������������� ����������������������������������������� ������������� ���������
��������������������� ���������� ������ ��������������������������������������������������������������������������� �������������������������� ������������������ ������������������������������������ �������������������� �� ��� ������ ������������������� ����������� ���������������������������������������
���������������������� ��������������������������������
� !��� ���� ����"������ ����#�������
����$������$���������� ������ ���������� ���������������������������������"%&'(%�����)����� �������� ����"��� ���������������'���������� �������� ����$����&*�������������
�������� ���
��������������� ���������������������� ��������������������������������������
���������������������� ��������������������������������������������������������������������������������������������������������� ��
� ���� �������������������� ������������������������ ������������������������������������������������������������������������
��������������������������������������������������� ��������� ������������������������������������������������������������������������� ��������� ����������������������������������������
�� ���������������� ���������������������������������������������������������������������������������������������������������� ����������!"��"��# ������������������������������������������������������������������������������������������������������������$
����������%��&�#�!"��"��# ����������������������������������������������������������������������������������������'����� ������� ����������������� ��������� ���������������������������������������������������������������(
����� ��������������� ��������� ������������������������������������������������������������������������������ (����� ����������������� ��������� �����������������������������������������������������������������������������)
*����+������������������� �������,���������� �������������������������������������������������������������������-.��������/�������/���&������������������������ ������������������������������������������������������������������-�
� ��� ��� ��������������������������������� ����������������������� �������������������������������������������������������������������������������������������������������������-
0��#�������������0�� �� �������������������������������������������������������������������������������������������������-1������������������������0�� ��������������� ����������������������������������������������������������������-1
�����������2���� �������������������������������������������������������������������������������������������������������������������-$0��#����2�������������������������������������������������������������������������������������������������������������������-'�����������������������2��� ������������������������������������������������������������������������������������������-'
�����������*�������,� �� �������������������������������������������������������������������������������������������������������-(0��#����,� ����������������������������������������������������������������������������������������������������������������-)
�����������3������,� �� �������������������������������������������������������������������������������������������������������.0��#����3������,� ��0�� �� ��������������������������������������������������������������������������������������������.
�����������*�������! � ���������������������������������������������������������������������������������������������������������0��#����! � �������� �������������������������������������������������������������������������������������������������������� ������*�������! � ���!����&�!�� ����������������������������������������������������������������������������������
�����������3������! � �� ���������������������������������������������������������������������������������������������������� 0��#���� ������3������! � ��0�� �� ����������������������������������������������������������������������������1��������3������! � ��0�� �� ��������������������������������������������������������������������������������������1
��������������"�������� ��������������������������������������������������������������������������������������������������������$0��#�������"�������������&�������0�� �� ������������������������������������������������������������������������$
�����������40������& ������������ �����������������������������������������������������������������������������������'0��#�������40�3����& ������������0�� ���������������������������������������������������������������������(������������������������0�� ��������40�3����& ����������� �������������������������������������(
��������������������������� � ��������������������������������������������������������������������������������������������)����������������������5� �����������������������������������������������������������������������������������������������)���&�����+�����2� ����������� ������������������������������������������������������������������������������������)
�� ���������������� ����
��������������� ���������������������� ��������������������������������������
��������
� ���� ���� � ��!"#����#��������� �����$ ���2������� �!"��"��# ����������������������������������������������������������������������������������������������������������������!���������+�6�����6�� ���������������������������������������������������������������������������������������������������������!�����������������2��� ��������������������������������������������������������������������������������������������������������� ����&�������������*������&�����������2��� ������������������������������������������������������������������������1*�#����&���������������2��� ��������������������������������������������������������������������������������������������������$
% ���� ���� � �� ������#���� ����&�'*������6���*������7�8�!"��"��# �������������������������������������������������������������������������������������������(
��������6�� ����������������������������������������������������������������������������������������������������������������������)��"��������8�������*������6�� ���������������������������������������������������������������������������������������� .������������2��� ���������������������������������������������������������������������������������������������������������� .!��������*������6���2��� ���������������������������������������������������������������������������������������������� -����&������&�*�#����&������*������6�� ���������������������������������������������������������������������� -
���������4 �6������&��������� ���������������������������������������������������������������������������������������� ������������&��&������4 �6�����������*������6�� ������������������������������������������������������������ ������������������ ��������������������������������������������������������������������������������������������������������� �
���������*������6������������� �������������������������������������������������������������������������������������������� �������������*������6��������������������� �������������������������������������������������������������������� ������������&���&����*������6������������� ��������������������������������������������������������������������
( ���� ��������"�� ����&�'�� �����*����+�*������7�8�!"��"��# ���������������������������������������������������������������������������������� $
���� ����*����+�*������7�8 ����������������������������������������������������������������������������������������� $��6���*����+�*������7�8 ������������������������������������������������������������������������������������������������ '��������0�� �������� �����*������6�8 ���������������������������������������������������������������������� (��"������4�#� �����*������7�8 ���������������������������������������������������������������������������������� (��"��������8������� �����*������7�8 �������������������������������������������������������������������������� (!�������� �����*������7�8���������������������������������������������������������������������������������������� )
���������� �����*������7�8 ���������������������������������������������������������������������������������������������1.
) *� ���������� ���������+�������!"��"��#��������**����� �*������7�8������������������������������������������������������������������������������1�
2������������������ �������*������7�8��������������������������������������������������������������������������1�7���5�%���������� �������*������7�8 �����������������������������������������������������������������������������1
!��������**����� ���������������� ��������������������������������������������������������������������������1$���&�������������0�� �����������**��3�������� ��������������������������������������������������������������1'
���&�������������0�� �� ������������������������������������������������������������������������������������������������1'�������� �����2������������������ �������*������7�8 ��������������������������������������������������1(
�������� �����**��3���������������&�����2������������������ �������*������7�81)
��������������7���5�%���������� �������*������7�8�����������������������������������������������������$.�������� �����**��3���������������&�����7���5�%���������� �������*������7�8 $-
���&������2���9���������������**��3�������� �������������������������������������������������������������������$�%����������������0�� �����������**��3�������� ����������������������������������������������������������������$�
%��������������2������������������ �������*������7�8��������**��3�������� ������������$�����������2���9���������������**��3�������� �����������������������������������������������������������������$1
�������� �
��������������� ���������������������� ��������������������������������������
,--�� '�,��������� ����������� ���,������������������� ����������������������������������������������������������������������������������������������������������$(
2���%��&�#��)1/�%��&�#��)(���&�%��&�#��4������� �������������������������������������������������$(2���%��&�#����--������ �������������������������������������������������������������������������������������������������$(
,--�" '�&���"-���. ����&� ��/����"�!��������**�������� ������������������������������������������������������������������������������������������������������'.������0�� ������������� ��������������������������������������������������������������������������������������������������������'-*�#����&��������������������������� �������������������������������������������������������������������������������'���������������0�� ������������������� ����������������������������������������������������������������������������������'1������������������������! � � ������������������������������������������������������������������������������������������'$�����������������������2��� ������������������������������������������������������������������������������������������������''
���'
��������������� ���
��������������� ���������������������� ��������������������������������������
������������ ��������������������� ���������������� ��������� ��������
� ���������������� ����������������������������������������� ������������
� ������������������������������������������
� �������������� �������!� ����������������������
� ������������������������ ���
� ��������������������
� �����������������������"�������#���������������
����������"����
���� �������������������������������� �������
� $���� �����������%��&����'��� �������������������������������������������� ����(
� $���� �����������%��&������������������� ���'��� ������������������������ ����(
� $���� ��������������������������!��������������'��� ������������������������ ����(
� $���� �����������!���������������������������'��� �����������������������������������)����������*��(
� $���� ����������������� ��+��������!����,�'��� ����������������������� !����������(-��&�����������
���� ���������������� ����
��������������� ���������������������� ��������������������������������������
��������������
���� ��������������������������������� ��&�
��������������� ���� ������'�+����'�������������������� ��������(
�� ����� ��������� ��������!�������������'����������!����������� ���'��������������!���������&������������ �.��������(
������� ����������������/��������������������� �������(�$����.������'�������������������������������� �������(��������������������������'� ��&'����������������(
��.�0��������0+��0�������� ���������!� ���������������%��&�������������(���������������)110�),��)1�(��������!� ������������� �������0���������������0����(
��)11��),� ���� �������������� �%��&��������������������.�(
���������� ���� �������������'��������'���������������'����%��&������������������������������%��&������������������������������
)������2����� ���� ������� ��������� ������������������������(
0������������������������ �����!����-��� ��
�����������������!������������������������������������'���������������� ����3�45��(�(����6�55��(�(������������(���������������653�746�8686����355939�6553����$�.�653�746�94:4
���������������� �������(�����������(���(
1������""����
+����������!���������������������������� �������������!��������������������������(��������� ��������������� ���������-�*#,�(+#�'�������������������!����%�+�;�������!������!����%��&���������������(�!���������������������������������� �<�������(���(
��������
����������� �����������
������������������������������������������ �
����� �����!��������� "
�!����������# �� ��$ %
������&������������������'����������(�'�������� �
��������)���������)���*�+���������� ������������ �
�
��������������� ���������������������� ��������������������������������������
���������������� ����
��������������� ���������������������������������������������������#��949��������������"��������������&(���������������'�!��������������������������!�������������� ��������������������������������������������������������!����������������� � ����!����������������������������������������������(
*� ���� ����2����/����3���������� ����4��������������""�� �� ���
=������������������/����������� �������������������������������������������������������������������>��#��949�����(��������������������� ������� �������������������������������������(
�������������������������������>��#��949�����������������������?��&�������������������@�� ���������A(����?��&������������������������'�����������'��������������������� ���������������������������(�������������������������������������������� ����?��&(�����!������������ ��������������� ����.���������?��&��������(�$��������� �������'��� �������������������������� ���!��������������(
)�������� ��������������������(��� ������������� �� �����&��������������������?��&�@������������� �� ����A(��)���������������'����!��������!������ �������������� ������!� ���� ������(
� �!���������������9B55C�����9:55������������!��������������������������������������#��949����������������99DB���������9:DB�#��949�������������������������������99D:����9:D8�"�������������(
����������������������#��949������������������������������!� �������������������96�������8������!�������������(������������������� �����������������������'� ������� !�-��������!�������,������ ��������(
������������(������������������ ��'����������9335)�����-'������������������!�����������96����@�)�������A����8����@�-�������A������������(������������������������������?��&����� ��������� ��!������������������(��� �� ���!������� �����������������������'�������������>������������������������� �������������"������
� ,��9�E��.�� ,��4�E�#.�� ,��:�E�*����(
����� ���������������������������������������� ���
���� ���������� �������������������� ���� ���96�������8�������!����������������� ���#��949�����������(
Model Number Part
2280A 25-pin D connector
2280B 9-pin D connector
2881 5 foot communications cable
2882 15 foot communications cable
2883 25 foot communications cable
����� �����������������������������������
16 5 4 3 2
Util_3
2 - TxD outbound3 - Ground4 - Ground5 - RxD inbound
�
��������������� ���������������������� ��������������������������������������
�������������
*� ���+ � ������3���������� ����4��������������""�� �� ���
�����9B55C�����9:55������������������������������������������&� ���������������������������������������������"�������������(����������99D:"���������������������� ����D5-���9����D5-���������������'���������������#��949������(����������9:D:�"����������������������D55-������������������������������#��949������(��������������'�!�����������������������������������������!��������������!����������&(
����� ��������������������������� ������������������������������������������ ������ ������������������� ���
��������������������������������"������������������ ���"���������"""�359(4�������D5-���9'�D5-����'����D55�-���������������(��$����������� ���������� ��������������"��������������������'��� ����������������������������������*��� ���!����"�������������(
�
��������������� ���������������������� ��������������������������������������
���������������� ����
�������� ������������)�������� ���������������'���;�"��,("C"��������������������������!���������������������������������(��=����������������������������������������������������������������?���������������%��&���������(���������������������������������������������
$������������������'����������������� �������������� �,������������������,������������(��������������������������(
�
��������������� ���������������������� ��������������������������������������
�������������
��������������������������!����������������%��&����������
D( �������������������� ��������������������������%��&���������(
� �!����������������!��������������������������������������'���� ��������� �.���������
9( ������������������������������(
���������������������������(
�
��������������� ���������������������� ��������������������������������������
���������������� ����
������������������!��������� ����������������������� �������������>����������(��������������������� ��� ������������������
F $����F ���������F )����������F �����������������������F ������� ��F )�����������
=���������� ������������������������ ���������������������������������������������D����3�@ ��������������� ��A���������������"�����������������(
���������������!�������������� �������� ��������
F �����!������������������������������������������ ����� ���������������&�����������!���������������������������>����������������(
F )�����������������������!� ���������������������������
F )�����������������������!���� ����'�����������������������'����������������(
F )�����������������������!� �������������� ����������� ��!����������������������� ���������������������(
F ���������� ��������"�@!����������.������A������������������������.�����������������������������@��������".���A�����!��������������(
F =�������� �������������������������������������������DB������������ ���!�!��(����������������������� ������������������ ��� �����������������������(��=������������������������������ ����������&��������������� ������������(
F ���������������!�������!� ����������������!����%��&�����9(.���������(
F ����������������������������������������������� ����D����D555������������4955D���4B555���������.�� ��'��������������'��������������� ��&������������������(
����� ����������� �������������������� ������������������� ����
��������������������
�
��������������� ���������������������� ��������������������������������������
�������������
������� ����� ��������� ��
���� ���������������������������������������������������� ������ ������������� ���������(
1 Menu bar Contains the File, Configuration and Help menus. Opens aSymbol Table or register file, uploads/downloads a register file,configures CTC Monitor/controller communications, sets upDDE communications, and displays the on-line Help file.
2 Selection buttons Accesses the register, input, analog input, flag, output, analogoutput, servo and custom menus for monitoring and changingresources.
3 Program status Displays a listing, by tree structure, of the current running tasksin the controller being monitored.
4 Data table Uploads or downloads a data table to and from the controller,change it, or open an existing Data Table.
5 NVRAM module Accesses the registers available on the NV Ram module.
6 Monitor button Toggles to suspend or resume communications between thecontroller and CTC Monitor.
7 Controller status Displays status messages and user prompts.
8 Command buttons Starts, stops, and resets the controller.
�
�
�
�
�
�
�
�
�
��������������� ���������������������� ��������������������������������������
���������������� ����
-� ����!��������������������������������!��������������'�!������������������!���� ��������������������������� ������������������� �.(��$������������ �.�!����������� !��������������������������� ���#��949�������������������������������������������������� ���� ���"�������������������(
���3 ��� �����2������""�� �� ���
������ �����#��949��������������
D( $���������������������������������������������(
��������������������������� �.��������(
9( ���&�������������������������� ������������������� ���������!������������ ���������������(
4( �����������������������������@����D�������������3A(
7( ���&��������������������������� ������������������������ ����������!���� ��������(
6( ����������� �������(������ �������8B55� ��(
B( ���������(
�������������������� ������������������������������������'������� ���������������������� �.�����!��� ��������� ������������������(
����� ���� �����������������������������������
�
��������������� ���������������������� ��������������������������������������
�������������
���3 ��� ���+� ��������""�� �� ���
������ �����"���������������������
D( $���������������������������������������������(
������� ������������������� �.��������(
9( ���&��������������������������� ������������������� ���������!������������ ���������������(
4( ������������������ !������������(
7( "�����������������>��������� ���������" ������ ��(
6( "�������������������>��������� �������������������� ��(������ ������������D(
B( ��������������������(������ �������������965���(
:( ���������(
�������������������� ������������������������������������'������� ���������������������� �.�����!��� ��������� ������������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
�����!������������ ������������������������������������'������������������ ������������� �.�����!��� ��������� ������������������(���������!������������ �������'������������������������ ���������������������(
����"/�������1��������� ��������� ���������������������������������������������������������
F $���������������������F ����������������������F �����������������������F )����������������������F ,�����!���������'� ���!F G����������������������F ���� ���������������������!�
������������������������������������������������ !�������������(
������������������������������������� ���������������>��������������������������������� ���������������(������� �����������!��������� �������9355")'�9355")C�'����9755")������������(
��������� ����������������� �������������������
��
��������������� ���������������������� ��������������������������������������
�������������
������������������� ������������'�����'������'�������������������������� �������������������������������������������������������������(��=��������������������������� ����������������� ������������� �.H������������!� ������ !����������������������������������� (
������������������������������ ��������� ��������
� � ����������������������'�������'���������� ����������� � ������������������ � �������������&���� ��������� ������������ +����������������������������������
��
��������������� ���������������������� ��������������������������������������
���������������� ����
=������������'�����'������������������������� ������������������������ !������������������'�����'����#����� ������(��,������������ ������� ������������������'�����'����������������������!������������������(������� ����������&���������!� �������������������(
������ ������� ���!�"������� ���������������
��������#
������ �������� ���� ���� �������������������
��������
�����������+�������� "
�����������,���� %
�������������������(����� -
������������������(����� ��
�������������������#������ ��
������������������#������ �"
�������������� �������� �%
������������.+�����*����+�������� �/
�����������0������������������ �1
��
��������������� ���������������������� ��������������������������������������
���������������� ����
$��������#������������ �.�!������������� ��������
� I������������������������������� �����������������������������F �����������������������!��������(
=��������������#������������ �.� !��������������#�������� ���������������������������(����� ������������������������������������������ �.(
1 Display Toggles the register value list between decimal andHex notation.
2 Register namelist
Displays the register names. If you don’t choose asymbol table, the names displayed default to reg_plus the register number (reg_10). When you selecta symbol table, the list displays the symbol namesfor the registers. To display an entire symbol name,resize the window: only the name list will expand.
3 Register valuelist
Displays the current numeric value for the registersshown. When a new value is entered into the textbox, CTC Monitor downloads the value to thecorresponding register in the controller.
��������� �"� ������
�
�
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
��������������� �������!�������"#$�%���!��
4 Register numberlist
Displays the register number.
5 Register jumpbox
Allows you to change the range of registersdisplayed. Entering a register number in the jumpbox changes the range of registers displayed to startwith the number entered. If you enter a number thatexceeds the register listing, CTC Monitor displaysthe last range of available registers.
6 Notationindicator
Indicates if the current register values are in decimalor Hex notation.
����� !��������������������������"�� �������������� #�����$�� ����" ������%� ��" ���� �����������&�%������ ���
. �� ������ �����.����
����������������������������������'���������������� ��� � �������������������������(�����#������������� �.��������(
�������!�������������� ���������'�������������� ���� ���������������������� ����#��$��%��������������(
� �� ������+���� ���� ��.���� ������ ����
���������������������������������������
D( ��������������� ����� ��������������������������(
����#������������ �.��������(
9( � ���������!'�������������� ���� ����������������������� ����#��$��%�������������(
4( ������������������� �.� !��� ������&������������������(
7( �!����������������(
6( ,����������(
��������������������������������������������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
$��������$���������� �.�!��������������������������������� ��� ���(�=�������������$��������� �.� !��������������$����� ���������������������������(����� �����������������������������$��������� �.�
1 Flag name list Displays the flag names. If you don’t choose asymbol table, the names displayed default to flag_plus the flag number (flag_2). When you select asymbol table, the list displays the symbolic namesfor the flags. To display an entire symbolic name,resize the window: only the name list will expand.
2 Flag statebutton/list
Displays the current state for the flags shown. Flagsare either set or clear. When you change the state ofa flag, CTC Monitor downloads the new state to thecorresponding flag in the controller.
3 Flag number list Displays the flag number.
4 Flag jump box Allows you to change the range of flags displayed.Entering a flag number in the jump box changes therange of flags displayed to start with the numberentered. If you enter a number that exceeds the flaglisting, CTC Monitor displays the last range ofavailable flags.
��������� �$�� �
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
��������������� �������!�������"#$�%���!��
. �� ���$��������
������������������ ��� ���'������������&��� � ������������������������'��(�����$���������� �.��������(
�������!�������������� � ����'�������������� ���� ����� ����������&����#��$�%��������������(
� �� ���� ��������3��$��
������������ ���>��������
D( �����������&��� � ��������������������������(
����$���������� �.��������(
9( � ���������!'�������������� ���� �����$����������&����#��$��%�������������(
4( ���������������������������&����������������� ����� ����������������!����������������(
����������-���������������������������������������������������������������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
��������������������� �.��������!�������������������������������� ����������(�=������������������������������� �.� !�������������������� ���������������������������(����� ��������������������������������������������� �.�
1 Digital input list Displays the names of the digital inputs. If you don’tchoose a symbol table, the names displayed default toin_ plus the input number and A for open inputs, or Bfor closed inputs (in_1A or in_2B). When you select asymbol table, the list displays the symbolic names forthe inputs. To display an entire symbolic name, resizethe window: only the name list will expand.
2 Digital inputState Buttons/List
Displays the current state for the digital inputsshown. ON means that the digital input is currentlypulled to Ground; OFF means that the digital input iscurrently at + 24 volts.
3 Digital inputnumber list
Displays the input number.
4 Digital inputjump box
Allows you to change the range of inputs displayed.Entering an input number in the jump box changesthe range of digital inputs displayed to start with thenumber entered. If you enter a number that exceedsthe digital input listing, CTC Monitor displays thelast range of available digital inputs.
��������� ��� �����������
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
��������������� �������!�������"#$�%���!��
. �� �����-��������
������������������ �������'������������($�� � �������������������������(����������������������� �.��������(
�������!�������������� ������'�������������� ���� ����������������!������($���#��$��%��������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
��������� �%���� �����������)����������������� �.��������!�������������������������������� ��������������(�=��������������)����������������� �.� !��������������)��������� ����������������������������(����� ����������������������������)����������������� �.�
1 Analog input list Displays the names of the analog inputs. If you don’tchoose a symbol table, the names displayed default toain_ plus the analog input number (ain_1). When youselect a symbol table, the Register menu displays thesymbolic names for the inputs. To display an entiresymbolic name, resize the window: only the name listwill expand.
2 Analog inputnumber list
Displays the numeric value for the analog input.
3 Analog inputnumber list
Displays the input number.
4 Analog inputjump box
Allows you to change the range of analog inputsdisplayed. Entering a number in the jump boxchanges the range of analog inputs displayed to startwith the number entered. If you enter a number thatexceeds the analog input listing, CTC Monitordisplays the last range of available analog inputs.
. �� ���,�������-���.����
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
��������������� �������!�������"#$�%���!��
������������������ �������'������������)����( � �������������������������(�����)������������������ �.��������(
�������!�������������� ������'�������������� ���� ����������������)���($���#��$��%��������������
��
��������������� ���������������������� ��������������������������������������
���������������� ����
��������� ��� ���������������������������������� �.��������!��������������������� ������������������������������� (�=�������������������������������� �.� !�������������������� ����������������������������(����� ���������������������������������������������� �.�
1 Digital outputlist
Displays the names of the digital outputs. If youdon’t choose a symbol table, the names displayeddefault to OUT_ plus the output number and on or off(OUT_1_OFF). When you select a symbol table, thelist displays the symbol names for the outputs. Todisplay an entire symbol name, resize the dialog box:only the name list will expand.
2 Digital outputState Buttons/List
Displays the current state for the digital outputsshown. Digital outputs are either on or off. When youturn an output on or off, CTC Monitor downloads thenew state to the controller, and the controller changesthe state of the corresponding output.
3 Digital outputnumber list
Displays the output number.
4 Digital outputjump box
Allows you to change the range of outputs displayed.Entering an output number in the jump box changesthe range of digital outputs displayed to start with thenumber entered. If you enter a number that exceedsthe digital output listing, CTC Monitor displays thelast range of available digital outputs.
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
��������������� �������!�������"#$�%���!��
. �� ������-��������
������������������ ����������'���������������$�� � �������������������������(������������������ �.��������(
�������!�������������� ��������'�������������� ���� ���������������������$��#��$��%��������������(
���� ���� � ������-����������33
��������������������������������� �
D( ��������������$�� � ��������������������������(
����������������������� �.��������(
9( � ���������!'�������������� ���� ������������������!����������$���#��$�%��������������(
4( ���������������������������&����������������� ������������!���������������������� (
����������-����������������������������������������������������������������������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
��������� �%���� ��������$��������)������������������ �.�!��������������������������������� ������������������������������������(�=��������������)������������������ �.� !�������������)����������� ����������������������������(����� ����������������������������)������������������ �.�
1 Analog outputlist
Displays the names of the Analog outputs. If youdon’t choose a symbol table, the names displayeddefault aout_ plus the analog output number(aout_2).When you select a symbol table, it displays thesymbolic names for the outputs. To display an entiresymbolic name, resize the dialog box: only the namelist will expand.
2 Analog outputvalue list
Displays the current value for the analog outputsshown. When you enter a new value for an output,CTC Monitor downloads the new value to thecontroller, and the controller enters the new value inthe corresponding output.
3 Analog outputnumber list
Displays the output number.
4 Analog outputjump box
Allows you to change the range of analog outputsdisplayed. Entering a number in the jump boxchanges the range of analog outputs displayed to startwith the number entered. If you enter a number thatexceeds the analog output listing, CTC Monitordisplays the last range of available analog outputs.
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
��������������� �������!�������"#$�%���!��
. �� �����������,��������-���.����
������������������ �����������������'������������)������� � �������������������������(�����)������������������� �.��������(
�������!�������������� ��������'�������������� ���� ������������������)������$���#��$��%��������������(
� �� ���,��������-���.����
��������������������������
D( �����������)������� � ��������������������������(
����)������������������� �.��������(
9( � ���������!'�������������� ���� ������������������)�������$���#��$�%��������������(
4( �������������������������������������������������������������!����������������(
7( �!����������������(
6( ,���������(
��������������������������������������������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
��������� ���������������������������������� �.��������!������������������������������ ���������������������������������������(�=������������������������������� �.� !�������������������� ����������������������������(����� ����������������������������������������������� �.�
1 Servo output list Displays the servo names. If you don’t choose asymbol table, the names default to servo_ plus theservo number(servo_1). When you select symboltable, the list displays the symbolic names. Todisplay an entire symbolic name, resize the dialogbox: only the name list will expand.
2 Servo Positionlist
Displays the current servo position.
3 Servo errorvalue list
Displays the current error value for the servos.
. �� ���������/�� � �����+�����.����
�����������������������������������'���������������* � �������������������������(����������������������� �.��������(
�
�
�
��
��������������� ���������������������� ��������������������������������������
��������������� �������!�������"#$�%���!��
��������� �&'"�����!����"� ������$��������;I#)������������� �.�!������������� ��������
� I��������������������������;I#)�����������4955D���������73555� ��������������������������;I#)���������F �����������������������!�����;I#)���������(
=��������������;I#)������������� �.� !��������������;I#)������� ����������������������������(����� ����������������������������;I#)������������� �.(
1 Register namelist
Displays the register names.
2 Register valuelist
Displays the current numeric value for the registersshown. When a new value is entered into the textbox, CTC Monitor downloads the value to thecorresponding register.
3 Register numberlist
Displays the register number.
4 Register jumpbox
Allows you to change the range of registersdisplayed. Entering a register number in the jumpbox changes the range of registers displayed to startwith the number entered.
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
���������������� ����
. �� ������.�,����������� �����.����
����������������������������������'�������������+�)�������� �������������������������(�����;I#)������������� �.��������(
�������!�������������� ���������'�������������� ���� ���������������������� ����#��$��%��������������(
� �� ������+���� ���� ��.���� �����.�,����������� ����
��������������������������������;I#)����������������
D( ������������+�)�������� ��������������������������(
����;I#)������������� �.��������(
9( � ���������!'�������������� ���� ����������������������� ����#��$��%�������������(
4( ������������������� �.� !��� ������&������������������(
7( �!����������������(
6( ,����������(
��������������������������������������������������(
�������������� �����������������
��
��������������� ���������������������� ��������������������������������������
��������������� �������!�������"#$�%���!��
��������� �(�� �����������������������������!���������������������� �!����%��&������������(����,������������������� �.�����!��������� �����������������������&�(�=�������������,������������������� �.� !��������������,������������������ ����������������������������(����� ����������������������������,������������������� �.�
1 Program tasklist
Shows the tree structure of the current tasks runningin the controller. The current step number andsymbolic step name are displayed for each task.
2 Program statuslist
Displays the current status of the controller beingmonitored. Any software faults and or changes incontroller status will be displayed in this messagearea.
��� ��� ���/����"�����
������������������������� ����������������&�����������������������������'���������������������$������ � ��������������������������(�����,������������������ �.��������(
�� ����!���"�$�����������
+����!��������������������� �����������'�����,��������������1�������!������������������������!����������������� ���(�����,��������������1������!��������������������� �������������������������(�)������ ��!������ ������������������������.������(
���� �������!����� ������������'����������������������$������ � �������������������������(�����,������������������� �.��������(���������������� ������������'��.������������� �.���� �����J��������������������������������������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
���� ����������������� ��!����� ��������������
D( ��������$������9( ��������,�����������4( �����������������"���!7( -������ ����������6( ����KD���"���!B( �������!����&�:( ;��������������������3( ������;���#��!8( ����������� ��D5( �����K�����;����.��DD( �����K����;���#��!D9( �����K�"����D4( #������K�����;����.��D7( ������� ���������K�����;����.��D6( ������� ���#��K�����;����.��DB( ;�������,�����-���D:( ������������������D3( )�����������K�����;����.��D8( )������������K�����;����.��95( �����!K�����;����.��9D( �����������K�����;����.��99( ������������K�����;����.��94( ���� �����K�����;����.��97( ��������������� ���I����96( �������������������-��!9B( ����-!�L����"����9:( ������ !�#������K�������������� �#����93( +����������G�������$����98( "�����;�����&�$����45( ;�����&�)������������
����������������� ������������
��������)
��������
,���������# �� ��$ ��
#����������&�2���!�2�� ��
#���������+��������,��� �"
�����*����+���������������*������������,��� �3
��$����*������+��������,��� �%
�� ������������ !����!������������� �"����
��
��������������� ���������������������� ��������������������������������������
���������������� ����
$��������$��������!������������� ��������
F ��������!� ����� ������������������������F ��������������� ��F ��������������������� ��������������������������������������� ��� ������������������ ��������������������
=��������������$�������� !����������$�����������������������������(���� ����������������������������� ��������
� �$���,�-��&���.������������.������!� ����� ��(�+����!������������!� ����� ��'������������������������� ����� ��!� ��������������������!� ���������������� !���������������������(
� �$������ ����&����������������.������������� ��������;�����(�#������ ��������� ����.��@(�C�A� ���(
� $�������� ��� .������������������������������������ �������������D��������D555�������������4955D���������4B555� ��������������������������������������������.��@(�C�A� ��(
�����9B5D'�9B55'����9:55������������������������D555������������������������(������������������������������������D555������������������������(�#� ������������������������� ���!��������������(
� �!�����������;I#)���������������'����������������������������������������4955D���������4B555(���������������������������������������4B55D���������73555(
� !��������� ��� .���������������.������������� ����������������������(��������������/�������.��@(�C�A� ���� �����������(
$�����������������
��
��������������� ���������������������� ��������������������������������������
&�'����(��)��*+,� ���, ���������������-� ��
$���������������!���������������!� ����� ���������������!� ��������� �������!� ����� �����������%��&�������������!���������������(
��������������.������!� ����� ���������������������������
D( ��������$���,�-��&���� ��������&��������(
9( +������������������ �.��������'�������������!� ����� ���!�������'����������������� ���������!(
4( ������������������&��/���������������������������!� ����� ��(
������ �����*�����*��
��
��������������� ���������������������� ��������������������������������������
���������������� ����
������ ���"� ������$���$���������������!����������������.������������� ����������!�������;�����(�)��������� ����������������������� ��������������������������� �����.��@(�C�A� ��(
��������������.������������� �����������������;������
D( ��������$������ ����&���� ��������&��������(
9( +������������������ �.��������'������������������� ��������&�����������'���������������!�'� ���������!(
4( ������������������&��/�����������������������;�������������!������������ ��(
;����������!�������������� ��(
��
��������������� ���������������������� ��������������������������������������
&�'����(��)��*+,� ���, ���������������-� ��
�����!�� �"� �������������!�������� ���$���$���������������!���������������������������������������� �������������D���D555����4B55D����4B555� ����!���������������������������@(�C�A� ���(
�����9B5D'�9B55'����9:55������������������������D555������������������������(������������������������������������D555�������������������������(#� ������������������������� ���!��������������(
� �!�����������;I#)���������������'����������������������������������������4955D���������4B555(����������������������������������������4B55D��������73555(
=��������������������9(:(D�� ����������������������������������������������������9B55D����4B555(����� ���������������������������� �������������������� ����������������������� ������� ���(
�������������������������������������������� ���
D( ������� $�������� ����&���� ��������&��������(
9( +�������������)������� �.��������'�����������������'������������������'� ���������!
4( ������������������&��/����������������������������������� ��(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
�������!�� ���"� ������$���$���������������!�������������������.������������� �����������������������������������D���������D555�������������4B55D���������4B555�� �!�������������(�����#������� ��������� ����.��@(�C�A� ���(
�����9B5D'�9B55'����9:55������������������������D555������������������������(������������������������������������D555�������������������������(#� ������������������������� ���!��������������(
� �!�����������;I#)���������������'����������������������������������������4955D���������4B555(����������������������������������������4B55D��������73555(
=��������������������9(:(D�� ����������������������������������������������������9B55D����4B555(����� ���������������������������� �������������������� ����������������������� ������� ���(
��������������.������������� ������������������!���������������
D( �������!��������� ����&���� ��������&��������(
9( +������������������ �.��������'������������������� ��������&�����������'�����������������'� ���������!
4( ������������������&��/������������������������������������� ��(
�����������������������!��������������������������������������������������������������(�+����������������� ������������������������� ��'������������'�M���������������� ������N���������������������������������!������������������ ���� ��������������������������(
��������+
�� �������������������!����������#�$
��������
�����!�2����������4�5�# �� ��$ �-
6�����������2������*��������� "�
+�������������!�2������������� "�
��
��������������� ���������������������� ��������������������������������������
���������������� ����
$��������������� �������� �.�!������������� ��������
� 1�������.������������� �������������������������&������ ������������� ��� �������������� ��� ������������������� ��������������������������������������������� �������������������� ���'����!'��������������������������� ��� ����������������� �������������������� ���� !������������������������������������������� ��� ���� !��������������������������� ����������� ������������
=��������������������� �������� �.� !�������������������� ��� ���������������������������(����� ������������������������������������ ������� �.�
�������*�������� �,�-���������
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
&�'����(��)��)��%������, ��%�� ���.�/
1 Menu bar Contains the File, Edit and Option menus. Thesemenus allow you to open, save, upload or download adata table and edit the contents of the data table. Youcan also start, stop, set up data table monitoring.
2 Toolbar Gives you quick mouse access to many tools used inthe Data Table dialog box.
3 Data table rowsand columns
Displays the rows and columns in your data table.The data table is a two-dimensional array of numbers.
4 Message list Displays the ASCII character representation of thedata in each row of the table. You can use this area tocreate messages for transmission to external devices.
� ������#�
�������� ��������������������������� ������������ �������� �.� ������������� ������������������ ��������������
�������������� ������������������������� ��
��������������������� ���������������������
���������������� ������������� ������������� �������
��������������������������� �������������������� ��
��� ������������� ������������� ������������� �������
��!"��������������������������!������������� ��
�� "�������������������������� ���������������� ��
��
��������������� ���������������������� ��������������������������������������
���������������� ����
�� �����+' �� �������#��
���������������� ���
�������� ����� ��������
� ���������*�� ��������&���������@��������'��!������0�1��A(� �������������*���������������-��(
� �� ���� ��$���
���������� ������������!����.����������� ���(�=������������������� ���� �������������$��������� �.(
D( �������&�� ���������$�� �����(
9( +��������$���������� �.��������'������������&�'�&����,��'���2�'������(
����������� �.�����!�������������� ���(
����� ���������������������� ���������� ��������������� ����������
4( ��������/��������!�!�����������(
����.����������������!�����������'�������������(
����������������� ��������
��
��������������� ���������������������� ��������������������������������������
&�'����(��)��)��%������, ��%�� ���.�/
�-�� ��������#���$ ��
$��������������� �������� �.�!����������������.����������� ��(
������������.����������� ���
D( ��������$�� ��������&��������(
����1���������� �������� �.��������(
9( ����������������� ����������� ��� ��������1���������� �������� �.�����������/(��� ����������� ��������� ������������!'����������������������������!(
��������������������������� ��(
*-�� ����������� ��������#��
$���������������!������������������������������� ��� ����!����������������������������������������� �������� �.(��� ��������������������� �������'�������������������� ��������$�������(
� ����������������� ��'�������� $���� ��������&��������(������������������ ������������������������ �������� �.���������������'�� ������ ����'�����������������������������������!��������������������������(
� ������������������ ��'��������!����� ��������&��������(��+������������������ ������������������������ ��'������������'���������� ����'�����������������������������������!��������������������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
+���� �����+ � �����"#���� ��� ������#��
=������������������������ ��� !��!���� ��������&�! ���������������� ���������� ���(
�����������������������
D( ������������������������������������)����&�!������� ��$����(
���������� �������������������������(
9( �!������������������� ����������������(
������� ���������������������(
4( �������������������������������'����������������������������������.�������������(�=��������������������)����&�!������� ��$�������������������������������(
7( ���������������������������������������'��������!����� ��������&�������(
+���� ����������
���������������� �������� �.'�!����������������������� ������������� ��(������������ ���������@�������'���� ���'����������A�������� �������������������� ���� ����������������� ��(
�������������������
D( ������������������� ��� !�������������� ����� ���������������� ��������������������(
������������������������������������������������������������������ ���������������������� �������������)��������� ���������������������(
9( �!����������������������������(
������������������������������������������� �������� �.(
4( ������������������������������������'��������!����� ��������&��������(
.������ �&��*������!������ ��
��
��������������� ���������������������� ��������������������������������������
&�'����(��)��)��%������, ��%�� ���.�/
"���������������*������������ ���������������������!���������������������� ��������� ��(���������������� �����������'�!�����������&������������������������������ ��������!����������������������(
���� ���� ������#������ ����/�"�����
��������������������������� �.'�!����������� !������������������������������ ����������������������� ���������(��=������������������� �. !����������������������� �������������������(������ ���������������������������������������������� �.(
�����(���*��.������ ������������� �����������������������������(����� �������������������9555�����������@9�������A(
�����������������.������ ����������������������������(���������������!������������������ ������������ �(������ !���������������������������� ���������.�������������������� ��(
��������������.������ �������������������������(���������������!������������������ ������������ �(
�����������������������������
D( ����������������$� ���������$�� �����(��������������������������'��������������������������������!(
�� ������� !����������������'�����������������������������������(���*��� �������� ������&����������(
4( �!��������������������������������(
�� ������� !����������������������������������'������������������������������������������������������������������ �������� �����&����������(
6( �!�������������� ����������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
���� �����+� �������#������ ��� ��
+���������� ������������ ����'������������������������� ��� �������������������������!����������������� �������� �.(�������������������������������� �������������������������� ������������������������� �.(��+����!���������������� �����������'������������ �������� �.������������������!����������������������� ��(
=�������������������������������������� ������ �������
� ��� ���������� �����������'�������������������� ���������$�� ����(
� ������������ �����������'������������������ ���������$�� ����(
�������������������������
��������/
������������ �������������������
�������������&��������4�5�# �� ��$ "%
�������������������������4�5 3�
��
��������������� ���������������������� ��������������������������������������
���������������� ����
����������������!�������������� ��������������������� �.�������������!��������������������!�� ���������������������'������'��������'���������������������������������(��������������������������� �.��������������������D�����������9� �����������������������������(�"���������������� �.��������������DB� ���������������(�=�������������������������� �.��������������� ������������ ��������������������������(
�������������� ������������������!������ �.��(�����#�������������!����� �.��� ����������������������� �.��'��������1� ��������!������ �.������������������ �������(
���������� �-�!�� ����&�'
���� �����������������������������#�������������!������ �.�
1 File menu Contains commands that allow you to create a newcustom resource dialog box, save a new or existingdialog box, and exit the Custom Resource dialog box.
2 Display menu Allows you to toggle between the Resource Displayand Label Display dialog boxes.
3 Resource list Displays a drop down list of controller resources.When you select a resource, CTC Monitor evaluatesthe resource number to make sure it is a validresource. The custom resource value list fieldimmediately displays the current value or state of theresource.
�������������������� �,�-���������
�
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
�������������+�%�� ���.�/��
4 Resourcenumber list
Specifies and displays the number for the controllerresource chosen. You enter the number of theresource you want in the appropriate text box. Whenyou enter the new resource number, the customresource value list field immediately displays thecurrent value or state of the resource.
5 Resource valuelist
Displays the current value for the controller resourcechosen. You may enter new values or change thestate of controller resources that accept input.
5#���� �-�!�� ����&�'
���� �����������������������������1� ��������!������ �.(
1 File menu Contains commands that allow you to create a newcustom resource dialog box, save a new or existingdialog box, and exit the Custom Resource dialog box.
2 Display menu Allows you to toggle between the Resource Displayand Label Display dialog boxes.
3 Resource list Displays a list of controller resources using theirsymbolic names.
3 Resource valuelist
Displays the current value for the controller resource.You may enter new values or change the state ofcontroller resources that accept input.
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
���������������� ����
������������������� ��������
� �� ���.����� ��������"�� ����#�'
+�������������������������������������������������'����� ����������#��������I�������������!����������������������������� ��������������������������������� �.(�=����������������������������������������������������������������������� ��� ������������������� ������������������ �.(
D( ,����������������������������#��������I����� ���������&����������(
9( �!����������������������������� �������������������������������(
�� �������������"�� ����&�'
�������������������������� �.�
D( ���������*��� ������*�� ��������&��������(
9( +�������������)������� �.��������'�������������� ���������������� �.(
4( � ���������!'��������������������������!(
7( ��������/(
�� �����+' �� ��������"�� ����&�'
������������.����������������� �.'����������*�� ��������&��������(
��
��������������� ���������������������� ��������������������������������������
�������������+�%�� ���.�/��
�-�� ���������"�� ����&�'
=�����������!���������!�� ����������������������� �.� !���������(
���������������������� �.�
D( ��������� ���3������ ���4� �����������������(
9( +��������#�������������!������ �.��������'���������$�� ��������&�������(
+������������������ �.��������'������������ ���!���������������(�� ��������!'���������� ������������!(
4( ��������/��������������(
��
��������������� ���������������������� ��������������������������������������
���������������� ����
+����!���������������������������!������ �.'�!��������������������!#�������������!������ �.(
���������������������������!������ �.�
D( ��������� ���3������ ���4� �������������������������(
9( +��������1� ��������!������ �.��������'��������!� $��,��� ���� � �������!� $��,�����(
4( �����!������������������ ���������������������'� !����&��������������������� ����������������(
7( ������������������ ����������������� ���������������������(
6( ������������� ��������-��� ��� !������������������������������� ��������&������������(
B( �!�����������-���� ���������������������������(
����#��������I����� ����������!�����!������������������������������ ������������(
:( ��������������������������������!��������� ���!���������������� �.(
3( ����������������� �.'����������*�� ��������&������������������������� ����������� �.(
������� ��������������� �,�-
��������0
���������������������������
��������
# �� ��$��'�� ����6��������������4�5�� 3�
#�����������6����������������� ����� 3%
+��*����+��������.����������������6������������ 3/
+��*������,���7��������'��������6������������ %�
8�������+��������.����������������6������������ %�
� ���������,���7��������'��������6������������ %3
��
��������������� ���������������������� ��������������������������������������
���������������� ����
$���������������!�����������!����������.�������@��"A��������� ��� �������������������������������������������'���������+����+�����'�������������$.��'�1� �����'����".�����(�������"��������������������������������������������� !�����������!���������������!��.�����������������������"��������(
������� ������"��������������!������������ �������������'��������������'��/���������������(�������"�������������� ������ ���� ��������������������� ������������.����������(
�������������� ��������"������ �.��'�����$����#���������� ������������ �.��������-���&�+������� ������������� �.(
$������ ��������3 ���� ���� ����&�'
$��������$����#���������� ������������� �.�!������������������"������������������������������������������� �� ��������������(�$������������� �.!��������������������������� ��������� ������������ !��� ���&�� �65������������ ����������������(����� �����������$����#���������� ������������� �.���������� ����(
������������������.����������� �,�-��
�
�
�
�
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
���������������������%%0�����
��������������"�������������!������������ !��������������'�������"�����'�����������!����������������������"���&����(������� ���������������������'����'�������� �������$����#���������� ������������� �.�
Field Description DDE Link
1 Flag WriteAddress
Sets the flag address to write data to aspecific flag. The DDE conversation mustestablish the correct flag address herebefore sending the new data to the SingleRegister Write Data box.
Application: CTCMONTopic: DdeSetupItem: FlagAddress
2 Flag WriteData
Displays the current state of the flagspecified in the Flag Write Address box.If the flag is set, its value is 1; if the flagis clear, its value is 0.
Application: CTCMONTopic: DdeSetupItem: FlagWrite
3 Flag DataList
Displays the flag data. If the flag is set, itsvalue is 1; if the flag is clear, its value is0.
Application: CTCMONTopic: DdeSetupItem: FlagValue(1 - 32, 0 = inactive)
4 SingleRegisterWriteAddress
Allows you to set the register address sothat the DDE conversation can write datato a specific register. The DDEconversation must establish the correctregister address here before sending thenew data.
Application: CTCMONTopic: DdeSetupItem: RegAddress
5 SingleRegisterWrite Data
Allows the DDE conversation to changethe value for the register specified in theSingle Register Write Address box.
Application: CTCMONTopic: DdeSetupItem: RegWrite
6 SingleRegister ReadData
Displays the current value of the registerspecified in the Single Register WriteAddress box.
Application: CTCMONTopic: DdeSetupItem: RegRead
7 50 RegisterBlock ReadAddress
Specifies a block of 50 registers to read.The data for the 50 register block selectedis displayed in the Register Data listing.Register block addressing may be used toread registers 1 - 1000. Since theregisters are displayed in blocks of 50,you must enter a value from 1 to 20 toaccess the corresponding block ofregisters. For example, entering 13would display the values in registers 601through 650.
Application: CTCMONTopic: DdeSetupItem: Reg50Address
8 Register DataList
Displays the data for the register blockselected in the 50 register read addressbox.
Application: CTCMONTopic: DdeSetupItem: RegValue(1 - 50, 0 = inactive)
��
��������������� ���������������������� ��������������������������������������
���������������� ����
&������� ������3 ���� ���� ����&�'
$��������-���&�+������� ������������� �.�!����������� !�������� �������DB�������������������������������� ���&(�������������������� ����!�������������������������!�����������������������������(����� ��������������������������� �����������-���&�+������� ������������� �.(
��������������"�������������!������������ !��������������'�������"�����'�����������!����������������������"���&����(������� ���������������������'����'�������� �������-���&�+������� ������������� �.(
����������������������������
�
�
�
�
�
�
�
�
�
��
��������������� ���������������������� ��������������������������������������
���������������������%%0�����
Field Description DDE Link
1 UpdateInterval
Displays the current update time inmilliseconds that the DdeSetup screenuses to update its controls. A value from10 ms to 10000 ms (0.01 to 10 seconds)may be entered using the scroll bar. 200ms or greater interval recommended.
Application: CTCMONTopic: DdeSetupItem: DdeInterval
2 NetworkNodeNumber
Displays the Ethernet node number of thecontroller CTC Monitor iscommunicating with.
Application: CTCMONTopic: DdeSetupItem: DDENode(1 - 32767)
3 MessageArea
Displays the current state of the monitorprogram communication with yourcontroller.
Application: CTCMONTopic: DdeSetupItem: Message
4 Start/CancelButton
Toggles between the monitoring of thecontroller and the updating of the DDESetup screen. Any DDE conversation thatsupports command execution can accessthis button.
Application: CTCMONTopic: DdeSetupItem: START
5 EXIT Button Exits the DDE Setup screen and returns tothe CTC Monitor main screen. Any DDEconversation that supports commandexecution can access this button.
Application: CTCMONTopic: DdesetupItem: EXIT
6 BlockRegisterAddress
Allows you to specify which registeraddresses to write data to during a BlockRegister Write operation.
Application: CTCMONTopic: DdeSetupItem: BlockAddress(1 - 16, 0 = inactive)
7 BlockRegisterWrite Value
Allows DDE conversations to change thevalue for the registers specified in theBlock Register Address boxes.
Application: CTCMONTopic: DdeSetupItem: BlockWrite(1 - 16)
8 BlockRegister ReadValue
Displays the values for the registerspecified in the block register addressshown.
Application: CTCMONTopic: DdeSetupItem: BlockRead(1 - 16, 0 = inactive)
9 Write BlockData Button
Writes all block write register datachanges. Any DDE conversation thatsupports command execution can accessthis button.
For applications that do not supportcommand execution through DDEconversations, you can duplicate theaction of this button by writing the value1 to the hidden WriteBox control.
Application: CTCMONTopic: DdeSetupItem: DOWNLOAD
Application: CTCMONTopic: DdeSetupItem: WriteBox
��
��������������� ���������������������� ��������������������������������������
���������������� ����
������� ������"��������������!������������ �������������'��������������'�����/���������������(������������������!���� �� ��������!�������'!�����!�������������������������������������������������������� �����������������������������������!�������������������������� �����������������.������(�������"�������������� ������ ���� �������������������������.����������(
=������������"���������������� ����������������� ��������-���&�+������ ������������� �.(
D( ��������������(
9( �������!!������$� ����������������������(
4( +����������"���� ������������� �.��������'�������������� � ������-���&�+������� ������������� �.(
7( "�������������������������������"���������������� ��(
������������������������ �������������(��������������������������������������������������955����������(
6( �����������������!!�� ������ !����&������������������(
������ �����.�����������������������
��
��������������� ���������������������� ��������������������������������������
���������������������%%0�����
���� ���������.������������������������������������������������"������������������������"���������������������������������� �������������(������������".��������������(������.��������������������������������������������������� ���������������� ����������������!(
����������������
F ������������� ���� �������������������������������������������!
F G������!������� �������������������������������������������������!
F G������!������� ��������������������������������������������������!
F G������!����������������������!��������������� ����������������?�������������� �������
����� �������� ���������������������������������:5D����:53���� �������
F #�������:5D��������!0+���0�����F #�������:59�����!0+���0�����F #�������:54��������!0������0$�����F #�������:57�����!0������0$�����F #�������:56��������!0,�������0$�����F #�������:5B�����!0,�������0$�����F #�������:53�����!0������0#�����
�� ������ �����.����
���������������������� ��������������������������"���&��������������' ��������������������������
D( �����������$����#����������-���&�+������� ������������� �.��� !���� !����������������!��������������"�����������������(
9( �������������� ����������"���������������������� ��������������(
4( �������������"������������������������������(
7( ��������������"������������������������(
"��!�� �"� ������'���������� �����.�%����������
��
��������������� ���������������������� ��������������������������������������
���������������� ����
���� ����-�� ��$������ ��������3 ���� ���� ����&�'
���� ���������������������������"���� ��������������������(���������.����������������������������������������� ��������$����#���������� ������������ �.(�#���������������������� ��������#������������1��(�����������������!�� �65���������������'����������"���&��������
)��������� �����;����� ������������ #��I�����@D���65'�5�E�������A
���������������������!���� ���&��� �65(��������!����������:5D����:65'����������������65�#�������-���&�#���)��������D6(
������� !����� ���&����������� �����65��������� ���&�
D( ��������������(
9( �������!!������$� ����������������������(
4( �����������$����#���������� ������������� �.(
7( �����������65�#�������-���&�#���)����� ��� !�����������������������������������&������������(
6( "���������� ��� ����D����95������������65��������� ���&�!�������(�+��������D6(
B( ,����������(
������������������� ���&�� �������������������#������������1��(
:( � ���������������!'������������"��������� ��������������(����������������� ��������������������������������(
��������������� ������!����������"���#���
��
��������������� ���������������������� ��������������������������������������
���������������������%%0�����
����������������� ���������������������������������������������������������������!������������ ���������������!�����������������������"����������������������� ��������������'�!���������������������"����������������� !�������������������'�����'��������!�����������������(������.�������������".��������������'� ��������������������������J���������!�� ��������������������������������"���������(
D( �����������"���������������������������������������!�������(
Production Report
Monthly totals Monthly total
Failed stress test
Failed pressure test
Daily totals Daily total
Failed stress test
Failed pressure test
Machine resets
Mon48
9( ���������������"��.������'����� !�������������������'�����'�������� ��������������������������!������� ��(
E�����;O�������PQ#��I����@DA>
@DA����� ������� ������������������#������������1����������$����#��������� ������������� �.(�".������/�����������/������������#��I����@DA��������� !���������� �����������!(���&�������!������������������� ������ ���!������"����������(
Monthly total =CTCMON|DdeSetup!'RegValue(1)'
Mon49
� �!��������������"��������������� ��������������������!����������������!������"����������'������ �������� ������������������������������������������� ��(
Monthly total 4790
Mon50
4( ���� !�������������������'�����'�������� ���������������������(
����� ��������������� ���������������������������������� ��������������������������������� ���������������������� ��������������������������� �����������������������������!����
��
��������������� ���������������������� ��������������������������������������
���������������� ����
��������������� ������!����������"���#���
���� ���*-�� ��&������� ������3 ���� ���� ����&�'
)����������!'�����������������-���&�+������� ������������� �.������� !����!����������������������������(���������'���������������������� ���������-���&�#�������)��������(�=����������� !�������DB� ��������������(�����!������������������������������ ���'�����-���&�#�������#���I������������!���������������������������(
=�����������������������&� ��������"���������������������������������!�������-���&�#�������#���I��������(����� ���&���������������������������!(������"���&� �������������� ����������
)��������� �����;����� ������������ -���&#���@D���DB'�5�E�������A
�������������� ������������������
D( ��������������(
9( �������!!������$� ����������������������(
4( �����������-���&�+������� ������������� �.(
7( �����������-���&�#�������)��������� !������������������������������#��K� ���������&������������(
6( "�������������������� ���������#��K� ��(
B( ,����������(
)��!������������������������� ��'���������������������������������������-���&�#�������#���I��������(
:( ��������������������������� ���(�������.������� ���!����������� !��DB(
3( �����������"��������� ��������������(������������������ ���������������������������������(
��
��������������� ���������������������� ��������������������������������������
���������������������%%0�����
����������������� �������������������������������������������������������������.��������������������"��.������� ������������ �������������� ��������-���&�+������� ������������� �.(������!������������ ���������������!���������������������������"���������������������� ��������������'!���������������������"������������������ !�������������������'�����'�������!�����������������(������.�������������".��������������'� ���!������������!��� ��������������������������������"���������(
D( �����������"���������������������������������������!�������(
9( ���������������"��.������'����� !�������������������'�����'�������� ��������������������������!������� ��(
E�����;O�������PQ-���&#��@DA>
@DA����� ������� �������������� ���&��������������������������-���&+������� ������������� �.(�".������/�����������/�����������-���&#��@DA���������� !���������� �����������!(���&�������!������������������� ������ ���!������"����������(
Monthly total =CTCMON|DdeSetup!'BlockRead(1)'
Mon54
� �!��������������"��������������� ��������������������!����������������!������"����������'������ �������� ������������������������������������������� ��(
4( ���� !�������������������'�����'�������� ���������.���������(
����� ��������������� ����������������������������������������� ��������������������������������� ���������������������� ��������������������������� ��������������������������������
��
��������������� ���������������������� ��������������������������������������
���������������� ����
=���������������������� ��� �������������"����������(�-� ����!���������� ����������'�!�����������������"��������� ���������������������������"���������(������������������ ��������������������������������(
$������������������� ��������$���������1��(������������������!�� �49�������'���������"���&��������
)��������� �����;����� ������������ $���I�����@D���49'�5�E�������A
��������� ���>���������������������"�������������� �������
D( �����������"���������������������������������������!�������(
Status of Flags 1 through 6
Flag 1 - Fill valve status
Mon53
Flag State
Flag 2 - Conveyer belt status
9( ���������������"��.������'����� !�������������������'�����'�������� ������ ����������� ��(
E�����;O�������PR$���I����@DAR
@DA����� ������� ���� ����������$���������1����������$����#��������� ������������� �.(�".������/�����������/������������$���I����@DA��������� !���������� �����������!(���&�������!������������������� ������ ���!������"����������(
Flag 1 - Fill valve status =CTCMON|DdeSetup!'RegValue(1)'
Mon52
� �!��������������"��������������� ��������������������!����������������!������"����������'������ �������� ������������������������������������������� ��(
4( ���� !�������������������'�����'�������� ������������� ����(
"��!�� ���$�� 1����������������.�%����������
��
��������������� ���������������������� ��������������������������������������
���������������������%%0�����
����������������������������� ���������'�!�����!������������"�������������������������������������������������������(����������� !����� !��������"�� �������� ��������� ������������������������������������������������(�=��������������������&���������������$����#���������� ������������ �.�����������-���&�+������� ������������� �.(
��� ����������!������������ !����� ��������� ��������
� ��������������� ��
� �������������� ��������������
� )�������I�����-�������������������������������� ������������������������(
�����!������������������������'�!���������������������� ��.���������������(������������ ��.������������������������������� ����������������������������(�$�������������������������������������������.�������'�������������������� ���!������"����������(�$����������������'�����)����.��-'�� �����������������������������������������(
�� � ������� ��$������ ��������3 ���� ���� ����&�'�3��"����+�,--� �� ��
+�����������������������������������������������$����#���������� ������������ �.'�!�������������� !����� ��������� ��������
� ��������������� ��� !��������������������#�������+����)����(������"�� �������� ���������
)��������� �����;����� ������������ #��)����
F �������������� !��������������������#�������+��������� ��(�������"� �������� ���������
)��������� �����;����� ������������ #��+���
-� ����!�����������������������������������'�!�����������������"�������� ���������������������������"����������(������������������ ���������������������������������(
�������������������������� !��������������$����#���������� ������������ �.�
D( ������������"����������(������.�����������".���(
9( "�����������������������'�����'�������� �������������#�������+���)����� ��(
Number of widgets of each type to be produced
Register specifying number of type 1 widgets
Number of type 1 widgets
Mon55
=CTCMON|DdeSetup!RegAddress
2����� �"� ������'���������� �����.�%����������
��
��������������� ���������������������� ��������������������������������������
���������������� ����
4( "�����������������������'�����'�������� �������������#�������+���I����� ��(
Number of widgets of each type to be produced
Register specifying number of type 1 widgets
Number of type 1 widgets
Mon56
=CTCMON|DdeSetup!RegWrite
������"���������������!��������������������#�������+����)������������������������������(
7( ����������I�����-�������������/������������������#��)�������#��+���� �����������$����#���������� ������������� �.(�#� ��������������������� ���!������"����������� ���� �������������������I����-������������������)����.�-� ����������������(
6( ������� !����������'���������������������� ���������#��)����� ��(
B( ����������������������������������'���������������#��+���� ��(
:( ".����������I�����-����������������������� ���������������������(
����������������������������� �������'�����������������������������������������(
$������������� ������!����������"���#���
��
��������������� ���������������������� ��������������������������������������
���������������������%%0�����
=������������������������� ��� �������������"����������(�$������������������!���������$����#���������� ������������� �.��������������� !���� !������� ��������� ��������
� ������� ���� ����� ����!������������������������$����+����)����� ��(������"���&��������� ����������
)��������� �����;����� ������������ $���)����
� ���� ���>��������������$����+��������� ��(�������"���&��������� �����������
)��������� �����;����� ������������ $���+���
������������������ ������� ���!���������������I�����-���������(�����!������������������������'�!���������������������� ��.����������������(����������.������'������������� �����������������������������(�$������������������������������������������.�������'��������������������� ���!������"���������(�$����������������'�����)����.��-'��� ����������������������������������������(
-� ����!�������������� ����������'�!�����������������"��������� ��������������������������"����������(������������������ ���������������������������������(
������������"������������������ �� ����
D( ������������"����������(������.�����������".���(
����".����������������������� ���� ������������!(�����$������� ��� ������ ���������� ���� ����� ���'��������;������������� ������������������ ���� ���(
9( "�����������������������'�����'�������� �������$����+����)����� ��(
E�����;O�������P$���)����
Change Flag Stage
Flag number
New state
Mon58
=CTCMON|DdeSetup!FlagAddress
4( "�����������������������'�����'�������� �������$����+��������� ��(
E�����;O�������P$���+���
Change Flag Stage
Flag number
New state
Mon59
=CTCMON|DdeSetup!FlagWrite
������"���������������!�������������� ������� ������������(
���� �� ���$�� 1����������������.�%����������
��
��������������� ���������������������� ��������������������������������������
���������������� ����
7( ����������I�����-�������������/������������������$���)�������$���+���� �����������$����#���������� ������������� �.(�#� ��������������������� ���!������"����������� ���� �������������������I����-������������������)����.�-� ����������������(
6( ������� !��� ������� ��'���������������$������� ��� ��(
B( �������������� ���>�������'���������������������������;��������� ��(�L���@�A��������������� �����������'��������@DA��������������������(
:( ".����������I�����-����������������������� ���������������������(
����������������������������� �������'���������������� ������������������������(
��������"�%���&������������������"���#���
%����!�-�%
�����������������������
�� ���������������� ����
��������������� ���������������������� ��������������������������������������
��������� ������������$���� �����6(7�� �����68���� ��������*����
��������������������������� ������
D( ,���������%��&������������!����������(
9( +������������������������������������������������'�������������������������������( ��������������456�������&�������%�� �����(
4( $����������������������������������(�+������&�'����������� �������� ��������
F ����������!�������������������������� ����@� ���������S,������$���S������9:A
F ������������������ ����������������������@� ����������������A
7( +�����������������������������'��������&�� �(
$���� ������9::�*����
�������������������������9(7��� ������
D( ,���������%��&������������!����������(
9( ���������&������������������������������������������������������(
4( +������������������������������������������������'�������������������������������( ��������������457�������&�������%�� �����(
7( $����������������������������������(�+������&�'����������� �������� ��������
F ����������!�������������������������� ����@� ��������S%�+�;9DS�����;A
F ������������������ ������������������ ��������@� �������%��&����9(DA
6( +�����������������������������'��������&�� �(
Appendix B
Sample Visual Basic ProgramsContents
Opening a DDE Channel 70Reset Value in Register 71Downloading Changes to the Controller 72Resetting the Values in the Controller 75Changing the State of an Output 76Changing the State of a Flag 77
70 CTC MonitorTM User Guide
Control Technology Corporation proprietary. Reproduction or distribution forbidden.
Sub ctc_connect()
'open a channel to CTCMON'The value in ctc_channel contains the channel number
ctc_channel = DDEInitiate("ctcmon", "ddesetup")
End Sub
Opening a DDE Channel
Sample Visual Basic Programs 71
Control Technology Corporation proprietary. Reproduction or distribution forbidden.
Sub ctc()
'The module will set all specified CTC registers to the reset value defined'in cell b2.
'get the users reset value from cell b2Set resetvalue = Worksheets("Sheet1").Range("b2")
'select the CTCMON register to be loadedDDEPoke ctc_channel, "BlockAddress(1)", Worksheets("Sheet1").Range("C5")
'load the CTCMON registerDDEPoke ctc_channel, "BlockWrite(1)", resetvalue
'do the same for the rest of the registers.DDEPoke ctc_channel, "BlockAddress(2)", Worksheets("Sheet1").Range("C6")DDEPoke ctc_channel, "BlockWrite(2)", resetvalue
DDEPoke ctc_channel, "BlockAddress(3)", Worksheets("Sheet1").Range("C7")DDEPoke ctc_channel, "BlockWrite(3)", resetvalue
DDEPoke ctc_channel, "BlockAddress(4)", Worksheets("Sheet1").Range("C8")DDEPoke ctc_channel, "BlockWrite(4)", resetvalue
DDEPoke ctc_channel, "BlockAddress(5)", Worksheets("Sheet1").Range("C9")DDEPoke ctc_channel, "BlockWrite(5)", resetvalue
Reset Value in Register
72 CTC MonitorTM User Guide
Control Technology Corporation proprietary. Reproduction or distribution forbidden.
Sub download()
'This module will download new speadsheet changes to the controller'through CTCMON.
'Check block#1If Worksheets("Sheet1").Range("e5") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e5") DDEPoke ctc_channel, "BlockAddress(1)", Worksheets("Sheet1").Range("C5") DDEPoke ctc_channel, "BlockWrite(1)", resetvalue Worksheets("Sheet1").Range("e5") = ""End If
'Check block#2If Worksheets("Sheet1").Range("e6") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e6") DDEPoke ctc_channel, "BlockAddress(2)", Worksheets("Sheet1").Range("C6") DDEPoke ctc_channel, "BlockWrite(2)", resetvalue Worksheets("Sheet1").Range("e6") = ""End If
'Check block#3If Worksheets("Sheet1").Range("e7") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e7") DDEPoke ctc_channel, "BlockAddress(3)", Worksheets("Sheet1").Range("C7") DDEPoke ctc_channel, "BlockWrite(3)", resetvalue Worksheets("Sheet1").Range("e7") = ""End If
'Check block#4If Worksheets("Sheet1").Range("e8") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e8") DDEPoke ctc_channel, "BlockAddress(4)", Worksheets("Sheet1").Range("C8") DDEPoke ctc_channel, "BlockWrite(4)", resetvalue Worksheets("Sheet1").Range("e8") = ""End If
'Check block#5If Worksheets("Sheet1").Range("e9") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e9") DDEPoke ctc_channel, "BlockAddress(5)", Worksheets("Sheet1").Range("C9") DDEPoke ctc_channel, "BlockWrite(5)", resetvalue Worksheets("Sheet1").Range("e9") = ""End If
'Check block#6If Worksheets("Sheet1").Range("e10") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e10") DDEPoke ctc_channel, "BlockAddress(6)", Worksheets("Sheet1").Range("C10") DDEPoke ctc_channel, "BlockWrite(6)", resetvalue Worksheets("Sheet1").Range("e10") = ""End If
'Check block#7If Worksheets("Sheet1").Range("e11") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e11") DDEPoke ctc_channel, "BlockAddress(7)", Worksheets("Sheet1").Range("C11") DDEPoke ctc_channel, "BlockWrite(7)", resetvalue Worksheets("Sheet1").Range("e11") = ""End If
Downloading Changes to the Controller
Sample Visual Basic Programs 73
Control Technology Corporation proprietary. Reproduction or distribution forbidden.
'Check block#8If Worksheets("Sheet1").Range("e12") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e12") DDEPoke ctc_channel, "BlockAddress(8)", Worksheets("Sheet1").Range("C12") DDEPoke ctc_channel, "BlockWrite(8)", resetvalue Worksheets("Sheet1").Range("e12") = ""End If
'Check block#9If Worksheets("Sheet1").Range("e13") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e13") DDEPoke ctc_channel, "BlockAddress(9)", Worksheets("Sheet1").Range("C13") DDEPoke ctc_channel, "BlockWrite(9)", resetvalue Worksheets("Sheet1").Range("e13") = ""End If
'Check block#10If Worksheets("Sheet1").Range("e14") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e14") DDEPoke ctc_channel, "BlockAddress(10)", Worksheets("Sheet1").Range("C14") DDEPoke ctc_channel, "BlockWrite(10)", resetvalue Worksheets("Sheet1").Range("e14") = ""End If
'Check block#11If Worksheets("Sheet1").Range("e15") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e15") DDEPoke ctc_channel, "BlockAddress(11)", Worksheets("Sheet1").Range("C15") DDEPoke ctc_channel, "BlockWrite(11)", resetvalue Worksheets("Sheet1").Range("e15") = ""End If
'Check block#12If Worksheets("Sheet1").Range("e16") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e16") DDEPoke ctc_channel, "BlockAddress(12)", Worksheets("Sheet1").Range("C16") DDEPoke ctc_channel, "BlockWrite(12)", resetvalue Worksheets("Sheet1").Range("e16") = ""
End If
'Check block#13If Worksheets("Sheet1").Range("e17") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e17") DDEPoke ctc_channel, "BlockAddress(13)", Worksheets("Sheet1").Range("C17") DDEPoke ctc_channel, "BlockWrite(13)", resetvalue Worksheets("Sheet1").Range("e17") = ""End If
'Check block#14If Worksheets("Sheet1").Range("e18") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e18") DDEPoke ctc_channel, "BlockAddress(14)", Worksheets("Sheet1").Range("C18") DDEPoke ctc_channel, "BlockWrite(14)", resetvalue Worksheets("Sheet1").Range("e18") = ""End If
'Check block#15If Worksheets("Sheet1").Range("e19") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e19") DDEPoke ctc_channel, "BlockAddress(15)", Worksheets("Sheet1").Range("C19") DDEPoke ctc_channel, "BlockWrite(15)", resetvalue Worksheets("Sheet1").Range("e19") = ""End If
74 CTC MonitorTM User Guide
Control Technology Corporation proprietary. Reproduction or distribution forbidden.
'Check block#16If Worksheets("Sheet1").Range("e20") <> "" Then Set resetvalue = Worksheets("Sheet1").Range("e20") DDEPoke ctc_channel, "BlockAddress(16)", Worksheets("Sheet1").Range("C20") DDEPoke ctc_channel, "BlockWrite(16)", resetvalue Worksheets("Sheet1").Range("e20") = ""End If
'write a value to the writebox to trigger the download from CTCMON DDEPokectc_channel, "WriteBox", resetvalueEnd Sub
Downloading Changes to the Controller
Sample Visual Basic Programs 75
Control Technology Corporation proprietary. Reproduction or distribution forbidden.
Sub ctc_update()
Set resetvalue = Worksheets("Sheet1").Range("b2")DDEPoke ctc_channel, "BlockAddress(1)", Worksheets("Sheet1").Range("C5")DDEPoke ctc_channel, "BlockAddress(2)", Worksheets("Sheet1").Range("C6")DDEPoke ctc_channel, "BlockAddress(3)", Worksheets("Sheet1").Range("C7")DDEPoke ctc_channel, "BlockAddress(4)", Worksheets("Sheet1").Range("C8")DDEPoke ctc_channel, "BlockAddress(5)", Worksheets("Sheet1").Range("C9")DDEPoke ctc_channel, "BlockAddress(6)", Worksheets("Sheet1").Range("C10")DDEPoke ctc_channel, "BlockAddress(7)", Worksheets("Sheet1").Range("C11")DDEPoke ctc_channel, "BlockAddress(8)", Worksheets("Sheet1").Range("C12")DDEPoke ctc_channel, "BlockAddress(9)", Worksheets("Sheet1").Range("C13")DDEPoke ctc_channel, "BlockAddress(10)", Worksheets("Sheet1").Range("C14")DDEPoke ctc_channel, "BlockAddress(11)", Worksheets("Sheet1").Range("C15")DDEPoke ctc_channel, "BlockAddress(12)", Worksheets("Sheet1").Range("C16")DDEPoke ctc_channel, "BlockAddress(13)", Worksheets("Sheet1").Range("C17")DDEPoke ctc_channel, "BlockAddress(14)", Worksheets("Sheet1").Range("C18")DDEPoke ctc_channel, "BlockAddress(15)", Worksheets("Sheet1").Range("C19")DDEPoke ctc_channel, "BlockAddress(16)", Worksheets("Sheet1").Range("C20")DDEPoke ctc_channel, "WriteBox", resetvalue'DDEPoke ctc_channel, "regwrite", ResetValue''DDEPoke ctc_channel, "Flagwrite", ResetValue
End Sub
Resetting the Values in the Controller
76 CTC MonitorTM User Guide
Control Technology Corporation proprietary. Reproduction or distribution forbidden.
Sub output_toggle()
'This module will toggle a controller output.
Dim outval As Variant Set regnum = Worksheets("Sheet1").Range("A5")'get the output number from cell "A5" DDEPoke ctc_channel, "regaddress", regnum 'load the register number to CTCMON outval = DDERequest(ctc_channel, "regread") 'read the current output state outvalue& = (1 - Val(outval(1))) 'invert the state of the output Worksheets("Sheet1").Range("A1") = outvalue&'load the new state value cell "A1" DDEPoke ctc_channel, "regwrite", Worksheets("Sheet1").Range("A1") 'load the new
End Sub
Changing the State of an Output
Sample Visual Basic Programs 77
Control Technology Corporation proprietary. Reproduction or distribution forbidden.
Changing the State of a FlagSub Flag_Click()
'This module will write to the controller's flags based'on the number and state defined by the user.
Dim flagval As Variant Set regnum = Worksheets("Sheet1").Range("D32") DDEPoke ctc_channel, "flagaddress", regnum DDEPoke ctc_channel, "flagwrite", Worksheets("Sheet1").Range("D33")
End Sub
Sub flag_toggle()
Dim flagval As Variant Set regnum = Worksheets("Sheet1").Range("A6") DDEPoke ctc_channel, "regaddress", regnum flagval = DDERequest(ctc_channel, "flagvalue(1)") flag_value = (1 - Val(flagval(1))) Worksheets("Sheet1").Range("A1") = flag_value DDEPoke ctc_channel, "flagwrite", Worksheets("Sheet1").Range("A1")
End Sub
��!�-
�� ��
�� ���������������� ����
��������������� ���������������������� ��������������������������������������
��!�-,����������� ����������������������������������� ��
������������������������������� ��������������������������������
���������������������������������������������� �!�!�"��������������������#�������������������������"����������������������������������"������$������
�� ���������$��������������������"�%����������������������#�����&���������'����� ()����������
����������������**&+���,�-���������������������"������.���� ����������������������������"������
�����&���������'����� ()���������#
����������"����/���������������������� �������������� ����������"������'
��������������� ���������'������������������������ ����������������������������������
�0��!�������� ��������������������������"������$�1��#
"������$��������/������������#����� �������������������������2� �������/ $������� ������
���� �"������$�1�����������������������#� �'�����������2��$���"����/�"������$�1������������"����/�"������$�1���2
���������#
�*������$�������������������"������"������������������������"����������������������������� �����������������������������������
������������������/������������ ����������
�����������������*����0�$����������"������� ����������������������/����"��������������#
**&����������**&����"�����1� ���������������������������2�������������������������������2����"���������������������#
�1������**&��������������������,�����������������,���������������������"����$���,��������������������� �������������������������$���,����
���"��������������� ����������������/����"�������������������������**&����"����
*������$�1����������������������������������������������#����������������������������0��!������������ ��"������"����������������������2�����������������������������������(/ $���0�$���������������������"�����������������������
���� ���2��$���"����/�"������$�1������������"����/�"������$�1���2
"������$�����#"�������������#"����������������������2�� �!�!�"����������� ���������'������������������ �������2
*������$�1�����"� ���**&�(��+���,�-���������������������"������.���� ����������������������������"������
*����������� ������������#��������������������'� ��
*����������� �������������������������"�����������������������������
*������"���"������$����������������������������������������������������2
"���/ ��
��������������� ���������������������� ��������������������������������������
+&������� �����������"������$���������������"������$������
&���������� ����������������������������������"�%���'
&1� ����������������������������2�������������������������������2����"�����������������2����"����������������������� �#���������**&��1����������� 2�
$.���� ����������"������'
.�����������"�����"��������������������2��������1�������������"������� ���������������
.����������������������������**&��""��������������������������"����/����������������������������
�1� �����"�����������������2�
������������2�����������������������
�3��� �������������������"���������#
������������������������������ ����������"��������������������'� ��
3����"���������0��!��������2� �
54���������0��!������������ �����5��,�����"�������
�!���0��!������������ ��"������"�����������������������2�����������������������������������(/ $���0�$���������������������"������������������������
"������$�����#!������"�"������$�1��**&�(��+���,�-���������������������"������.���� ����������������������������"������
!����������"��������� ����������'
!���������������������������������������"������$�����������/������������ ����������
"��������������#"�����������������������������2����� ���������'������ ���������������"���������2
��� �!�!�"��������������������������������#������������������������������# ������������������������������������������#
�6��������� �"������$�1���#� �'"������$������������������������/ $�����$������
6������������������������������������������������
"������������������"��������������������������
�������������������"����������
6��������0��!��������2���"�����
**&��������
/%����� ������ ������������'
;5��,��� ��������������� ���������'
� ������������"������"��������������������2��������1�������������"������� ���������������
�����������������������������**&��""�����������"����$���,��������������������� �����"��������������������������������������������������
�� ���������������� ����
��������������� ���������������������� ��������������������������������������
'���
��������"�������������������������������������������������$���,����
����������������������1� �����"����������������������
���������������������������������
��������������������������
()������ ����������������������������������"�%����� #
�(��������� �"������$�1���#"������$������
(����� ���� ��������������������"���������2������������������"���������������2� �'
(���������� ���������$��������������������"�%���������&���������'����� ()����������� #
(�������������������������
(���������0��!������������ �����5��,�����"�������
(�����������������������
(/ $������� �������������0��!����������
*7���"���"������$������ ���������������������������������� �����������������
.������������� ���������'���������/ $����� ��������0��!����������