refractometer add-on instruction in rockwell studio 5000 ......using the kp_refra tometer aoi in...
TRANSCRIPT
Refractometer Add-On Instruction in Rockwell Studio 5000 for Allen-Bradley PLCs
Instruction Sheet
Using the KP_REFRACTOMETER AOI in Rockwell Studio 5000 for Allen-Bradley
PLCs
The KP_REFRACTOMETER Add-On Instruction enables Rockwell users to easily extend their PLC
software with K-Patents refractometer connection.
Instructions 1. Import the AOI to your project, by right-clicking the “Add-On Instructions” folder in the
Controller Organizer. In the pop-up window, locate the AOI and import it. It will appear in the
“Add-On Instructions” folder afterwards. It will also import some user-defined data types that
it requires (See them also in the Controller Organizer).
2. Add an instance of KP_REFRACTOMETER to your ladder diagram. You will find it on the Add-
On page of the ladder elements.
3. Create new controller level tags that will be needed for the operation (the names are just
examples here, but the tags will be mentioned with these names later in the document):
NAME (EXAMPLE) TYPE VALUE
kp_1 KP_REFRACTOMETER no need to set
use_refr BOOL no need to set
status String no need to set
rr READ_RESP_DATA no need to set
CREATE MESSAGE see below this table
DELETE MESSAGE see below this table
SEND MESSAGE see below this table
READ MESSAGE see below this table
SOCKET REQUEST_PARAMETERS Type: 2 Family: 2 Port: any unused, available port
Read_Data_Req READ_DATA_REQ Timeout: 1000 BufLen: 300
Write_Data_Out WRT_DATA Timeout: 3000 ToAddr.Family: 2 ToAddr.Port: 50023, which is 1100 0011 0110 0111 binary. Port must be entered in reversed byte order, which is 0110 0111 1100 0011, and in decimal view will be represented as -15513 ToAddr.Addr: The IP address of the refractometer. Also must be entered in reverse byte order. Buffer.LEN: 12 Buffer.BUFF: all zeros, except for byte[3] which is 1, and byte[7] which is 4.
4. Set up the messages. First, on the KP_REFRACTOMETER instance, set the message tags
CREATE, DELETE, READ and SEND for the inputs CREATE_UDP_SOCKET, Delete_All_MSG,
READ_UDP_DATA and SEND_UDP_DATA respectively. Then, to the right of each input you will
see a pushbutton with the text “…”. Click it, and a pop-up window will appear where message
properties can be set.
a. For CREATE:
i. Service Type: Socket Create
ii. Source Element: SOCKET
iii. Destination Element: kp_1.SockNum
iv. On the Communication page, Path: 1,0
b. For DELETE:
i. Service Type: Custom
ii. Service Code: 51
iii. Class: 342
iv. Source Length: 0
v. On the Communication page, Path: 1,0
c. For READ:
i. Service Type: ReadSocket
ii. Instance: any number
iii. Source Element: Read_Data_Req
iv. Destination Element: rr
v. On the Communication page, Path: 1,0
d. For SEND:
i. Service Type: WriteSocket
ii. Instance: any number
iii. Source Element: Write_Data_Out
iv. Source Length: 28
v. On the Communication page, Path: 1,0
5. Set the tags kp_1, use_refr, rr, status for the KP_REFRACTOMETER instance, and the inputs
“START”, “Read_Response” and “StatusValueStr” respectively.
KP_REFRACTOMETER - Instruction Definition Page 1use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:25:55
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
KP_REFRACTOMETER v1.0
Available Languages
Relay Ladder
Function Block
Structured TextKP_REFRACTOMETER(START, CREATE_UDP_SOCKET, Delete_All_MSG, READ_UDP_DATA, SEND_UDP_DATA, Read_Response, StatusValueStr);
Parameters
KP_REFRACTOMETER - Instruction Definition Page 2use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:25:55
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
RequiredX XXXXX X X
NameKP_REFRACTOMETEREnableInEnableOutSTARTCREATE_UDP_SOCKETDelete_All_MSGREAD_UDP_DATASEND_UDP_DATASockNumRead_ResponseBGlightValueCALCValueCCDValueCONCValueLEDValuemAValuenDValuePTrawValueQFValueRHsensValueSeqValueTimestampValueTrawValueTsensValueTValueStatusValueStr
Data TypeKP_REFRACTOMETERBOOLBOOLBOOLMESSAGEMESSAGEMESSAGEMESSAGEDINTREAD_RESP_DATADINTREALREALREALREALREALREALDINTREALREALDINTDINTREALREALREALSTRING
UsageInOutInputOutputInputInOutInOutInOutInOutInputInOutOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputInOut
Description
Extended Description
Execution
ConditionEnableIn is true
Description
Revision v1.0 Notes
KP_REFRACTOMETER Instruction Definition - Parameter Listing Page 3use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:25:55Data Type Size: 4020 byte (s) C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
Name Default Data Type ScopeBGlightValue 0 DINT KP_REFRACTOMETER
Usage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteBGlightValue - KP_REFRACTOMETER/Logic - *18(STOD)
CALCValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteCALCValue - KP_REFRACTOMETER/Logic - *13(STOR)
CCDValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteCCDValue - KP_REFRACTOMETER/Logic - *7(STOR)
CONCValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteCONCValue - KP_REFRACTOMETER/Logic - *14(STOR)
CREATE_UDP_SOCKET MESSAGE KP_REFRACTOMETERUsage: InOut ParameterRequired: YesVisible: YesCREATE_UDP_SOCKET - KP_REFRACTOMETER/Logic - *1(MSG)
Delete_All_MSG MESSAGE KP_REFRACTOMETERUsage: InOut ParameterRequired: YesVisible: YesDelete_All_MSG - KP_REFRACTOMETER/Logic - *0(MSG)
LEDValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteLEDValue - KP_REFRACTOMETER/Logic - *6(STOR)
mAValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WritemAValue - KP_REFRACTOMETER/Logic - *17(STOR)
nDValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WritenDValue - KP_REFRACTOMETER/Logic - *8(STOR)
PTrawValue 0 DINT KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/Write
KP_REFRACTOMETER Instruction Definition - Parameter Listing Page 4use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:25:56Data Type Size: 4020 byte (s) C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
PTrawValue (Continued)PTrawValue - KP_REFRACTOMETER/Logic - *15(STOD)
QFValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteQFValue - KP_REFRACTOMETER/Logic - *16(STOR)
Read_Response READ_RESP_DATA KP_REFRACTOMETERUsage: InOut ParameterRequired: YesVisible: YesConstant No
Read_Response.FromAddr.Family ?? INT Address Family Must be 2
Read_Response.FromAddr.Port ?? INT Port Number
Read_Response.FromAddr.Addr ?? DINT IP Address
Read_Response.BufLen ?? DINTRead_Response.BufLen - KP_REFRACTOMETER/Logic - 4(COP), 4(MOV)
Read_Response.Buf SINTRead_Response.Buf - KP_REFRACTOMETER/Logic - 4(COP)
READ_UDP_DATA MESSAGE KP_REFRACTOMETERUsage: InOut ParameterRequired: YesVisible: YesREAD_UDP_DATA - KP_REFRACTOMETER/Logic - *3(MSG)
READ_UDP_DATA.Instance ?? DINTREAD_UDP_DATA.Instance - KP_REFRACTOMETER/Logic - *3(MOV)
RHsensValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteRHsensValue - KP_REFRACTOMETER/Logic - *12(STOR)
SEND_UDP_DATA MESSAGE KP_REFRACTOMETERUsage: InOut ParameterRequired: YesVisible: YesSEND_UDP_DATA - KP_REFRACTOMETER/Logic - *2(MSG)
SEND_UDP_DATA.Instance ?? DINTSEND_UDP_DATA.Instance - KP_REFRACTOMETER/Logic - *2(MOV)
SeqValue 0 DINT KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteSeqValue - KP_REFRACTOMETER/Logic - *19(STOD)
SockNum 0 DINT KP_REFRACTOMETERUsage: Input ParameterRequired: NoVisible: NoExternal Access: NoneSockNum - KP_REFRACTOMETER/Logic - 2(MOV), 3(MOV)
START 0 BOOL KP_REFRACTOMETERUsage: Input ParameterRequired: YesVisible: Yes
KP_REFRACTOMETER Instruction Definition - Parameter Listing Page 5use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:04Data Type Size: 4020 byte (s) C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
START (Continued)External Access: Read/WriteSTART - KP_REFRACTOMETER/Logic - 23(XIC)
StatusValueStr ?? STRING KP_REFRACTOMETERUsage: InOut ParameterRequired: YesVisible: YesConstant NoStatusValueStr - KP_REFRACTOMETER/Logic - *5(MID)
TimestampValue 0 DINT KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteTimestampValue - KP_REFRACTOMETER/Logic - *20(STOD)
TrawValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteTrawValue - KP_REFRACTOMETER/Logic - *11(STOR)
TsensValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteTsensValue - KP_REFRACTOMETER/Logic - *10(STOR)
TValue 0.0 REAL KP_REFRACTOMETERUsage: Output ParameterRequired: NoVisible: YesExternal Access: Read/WriteTValue - KP_REFRACTOMETER/Logic - *9(STOR)
KP_REFRACTOMETER Instruction Definition - Local Tag Listing Page 6use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:04
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
Name Default Data Type ScopeBGlightEnd 0 DINT KP_REFRACTOMETER
Usage: Local TagExternal Access: Read/WriteBGlightEnd - KP_REFRACTOMETER/Logic - *18(FIND), 18(SUB)
BGlightName 'BGlight=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteBGlightName - KP_REFRACTOMETER/Logic - 18(FIND)
BGlightName.LEN 8 DINTBGlightName.LEN - KP_REFRACTOMETER/Logic - 18(ADD)
BGlightStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteBGlightStart - KP_REFRACTOMETER/Logic - *18(FIND), 18(ADD), 18(FIND)
BGlightValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteBGlightValueStart - KP_REFRACTOMETER/Logic - *18(ADD), 18(MID), 18(SUB)
BGlightValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteBGlightValueStr - KP_REFRACTOMETER/Logic - *18(MID), 18(STOD)
BGlightValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteBGlightValueStrLen - KP_REFRACTOMETER/Logic - *18(SUB), 18(MID)
CALCEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCALCEnd - KP_REFRACTOMETER/Logic - *13(FIND), 13(SUB)
CALCName 'CALC=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCALCName - KP_REFRACTOMETER/Logic - 13(FIND)
CALCName.LEN 5 DINTCALCName.LEN - KP_REFRACTOMETER/Logic - 13(ADD)
CALCValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCALCValueStart - KP_REFRACTOMETER/Logic - *13(ADD), 13(MID), 13(SUB)
CALCValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCALCValueStr - KP_REFRACTOMETER/Logic - *13(MID), 13(STOR)
CALCValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCALCValueStrLen - KP_REFRACTOMETER/Logic - *13(SUB), 13(MID)
CALCStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCALCStart - KP_REFRACTOMETER/Logic - *13(FIND), 13(ADD), 13(FIND)
CCDEnd 0 DINT KP_REFRACTOMETERUsage: Local Tag
KP_REFRACTOMETER Instruction Definition - Local Tag Listing Page 7use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:04
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
CCDEnd (Continued)External Access: Read/WriteCCDEnd - KP_REFRACTOMETER/Logic - *7(FIND), 7(SUB)
CCDName 'CCD=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCCDName - KP_REFRACTOMETER/Logic - 7(FIND)
CCDName.LEN 4 DINTCCDName.LEN - KP_REFRACTOMETER/Logic - 7(ADD)
CCDStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCCDStart - KP_REFRACTOMETER/Logic - *7(FIND), 7(ADD), 7(FIND)
CCDValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCCDValueStart - KP_REFRACTOMETER/Logic - *7(ADD), 7(MID), 7(SUB)
CCDValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCCDValueStr - KP_REFRACTOMETER/Logic - *7(MID), 7(STOR)
CCDValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCCDValueStrLen - KP_REFRACTOMETER/Logic - *7(SUB), 7(MID)
CONCEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCONCEnd - KP_REFRACTOMETER/Logic - *14(FIND), 14(SUB)
CONCName 'CONC=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCONCName - KP_REFRACTOMETER/Logic - 14(FIND)
CONCName.LEN 5 DINTCONCName.LEN - KP_REFRACTOMETER/Logic - 14(ADD)
CONCValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCONCValueStart - KP_REFRACTOMETER/Logic - *14(ADD), 14(MID), 14(SUB)
CONCValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCONCValueStr - KP_REFRACTOMETER/Logic - *14(MID), 14(STOR)
CONCValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCONCValueStrLen - KP_REFRACTOMETER/Logic - *14(SUB), 14(MID)
CONCStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteCONCStart - KP_REFRACTOMETER/Logic - *14(FIND), 14(ADD), 14(FIND)
Delete_All_Request 0 BOOL KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteDelete_All_Request - KP_REFRACTOMETER/Logic - *23(OTE), 0(XIC)
KP_REFRACTOMETER Instruction Definition - Local Tag Listing Page 8use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:04
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
Enable1 0 BOOL KP_REFRACTOMETERUsage: Local TagExternal Access: NoneEnable1 - KP_REFRACTOMETER/Logic - *23(OTE), 1(XIC)
Enable2 0 BOOL KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteEnable2 - KP_REFRACTOMETER/Logic - *22(OTE), 2(XIC), 3(XIC)
Enable5 0 BOOL KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteEnable5 - KP_REFRACTOMETER/Logic - *22(OTE), 4(XIC)
Enable6 0 BOOL KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteEnable6 - KP_REFRACTOMETER/Logic - *22(OTE), 10(XIC), 11(XIC), 12(XIC), 13(XIC), 14(XIC), 15(XIC), 16(XIC), 17(XIC), 18(XIC), 19(XIC), 20(XIC), 5(XIC), 6(XIC), 7(XIC), 8(XIC), 9(XIC)
LEDEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteLEDEnd - KP_REFRACTOMETER/Logic - *6(FIND), 6(SUB)
LEDName 'LED=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteLEDName - KP_REFRACTOMETER/Logic - 6(FIND)
LEDName.LEN 4 DINTLEDName.LEN - KP_REFRACTOMETER/Logic - 6(ADD)
LEDStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteLEDStart - KP_REFRACTOMETER/Logic - *6(FIND), 6(ADD), 6(FIND)
LEDValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteLEDValueStart - KP_REFRACTOMETER/Logic - *6(ADD), 6(MID), 6(SUB)
LEDValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteLEDValueStr - KP_REFRACTOMETER/Logic - *6(MID), 6(STOR)
LEDValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteLEDValueStrLen - KP_REFRACTOMETER/Logic - *6(SUB), 6(MID)
mAEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritemAEnd - KP_REFRACTOMETER/Logic - *17(FIND), 17(SUB)
mAName 'mA=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritemAName - KP_REFRACTOMETER/Logic - 17(FIND)
mAName.LEN 3 DINTmAName.LEN - KP_REFRACTOMETER/Logic - 17(ADD)
mAStart 0 DINT KP_REFRACTOMETERUsage: Local Tag
KP_REFRACTOMETER Instruction Definition - Local Tag Listing Page 9use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:04
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
mAStart (Continued)External Access: Read/WritemAStart - KP_REFRACTOMETER/Logic - *17(FIND), 17(ADD), 17(FIND)
mAValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritemAValueStart - KP_REFRACTOMETER/Logic - *17(ADD), 17(MID), 17(SUB)
mAValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritemAValueStr - KP_REFRACTOMETER/Logic - *17(MID), 17(STOR)
mAValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritemAValueStrLen - KP_REFRACTOMETER/Logic - *17(SUB), 17(MID)
nDEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritenDEnd - KP_REFRACTOMETER/Logic - *8(FIND), 8(SUB)
nDName 'nD=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritenDName - KP_REFRACTOMETER/Logic - 8(FIND)
nDName.LEN 3 DINTnDName.LEN - KP_REFRACTOMETER/Logic - 8(ADD)
nDStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritenDStart - KP_REFRACTOMETER/Logic - *8(FIND), 8(ADD), 8(FIND)
nDValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritenDValueStart - KP_REFRACTOMETER/Logic - *8(ADD), 8(MID), 8(SUB)
nDValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritenDValueStr - KP_REFRACTOMETER/Logic - *8(MID), 8(STOR)
nDValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritenDValueStrLen - KP_REFRACTOMETER/Logic - *8(SUB), 8(MID)
PTrawEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritePTrawEnd - KP_REFRACTOMETER/Logic - *15(FIND), 15(SUB)
PTrawName 'PTraw=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritePTrawName - KP_REFRACTOMETER/Logic - 15(FIND)
PTrawName.LEN 6 DINTPTrawName.LEN - KP_REFRACTOMETER/Logic - 15(ADD)
PTrawStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritePTrawStart - KP_REFRACTOMETER/Logic - *15(FIND), 15(ADD), 15(FIND)
KP_REFRACTOMETER Instruction Definition - Local Tag Listing Page 10use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:04
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
PTrawValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritePTrawValueStart - KP_REFRACTOMETER/Logic - *15(ADD), 15(MID), 15(SUB)
PTrawValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritePTrawValueStr - KP_REFRACTOMETER/Logic - *15(MID), 15(STOD)
PTrawValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WritePTrawValueStrLen - KP_REFRACTOMETER/Logic - *15(SUB), 15(MID)
QFEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteQFEnd - KP_REFRACTOMETER/Logic - *16(FIND), 16(SUB)
QFName 'QF=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteQFName - KP_REFRACTOMETER/Logic - 16(FIND)
QFName.LEN 3 DINTQFName.LEN - KP_REFRACTOMETER/Logic - 16(ADD)
QFStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteQFStart - KP_REFRACTOMETER/Logic - *16(FIND), 16(ADD), 16(FIND)
QFValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteQFValueStart - KP_REFRACTOMETER/Logic - *16(ADD), 16(MID), 16(SUB)
QFValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteQFValueStr - KP_REFRACTOMETER/Logic - *16(MID), 16(STOR)
QFValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteQFValueStrLen - KP_REFRACTOMETER/Logic - *16(SUB), 16(MID)
REF_READ_CYCLE 0 BOOL KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteREF_READ_CYCLE - KP_REFRACTOMETER/Logic - *21(OTE), 22(XIO)
REF_STRING '' LONGER_STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteREF_STRING - KP_REFRACTOMETER/Logic - 10(FIND), 10(MID), 11(FIND), 11(MID), 12(FIND), 12(MID), 13(FIND), 13(MID), 14(FIND), 14(MID), 15(FIND), 15(MID), 16(FIND), 16(MID), 17(FIND), 17(MID), 18(FIND), 18(MID), 19(FIND), 19(MID), 20(FIND), 20(MID), 5(FIND), 5(MID), 6(FIND), 6(MID), 7(FIND), 7(MID), 8(FIND), 8(MID), 9(FIND), 9(MID)
REF_STRING.LEN 0 DINTREF_STRING.LEN - KP_REFRACTOMETER/Logic - *4(MOV)
REF_STRING.DATA SINTREF_STRING.DATA - KP_REFRACTOMETER/Logic - *4(COP)
RHsensEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteRHsensEnd - KP_REFRACTOMETER/Logic - *12(FIND), 12(SUB)
KP_REFRACTOMETER Instruction Definition - Local Tag Listing Page 11use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:04
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
RHsensName 'RHsens=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteRHsensName - KP_REFRACTOMETER/Logic - 12(FIND)
RHsensName.LEN 7 DINTRHsensName.LEN - KP_REFRACTOMETER/Logic - 12(ADD)
RHsensStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteRHsensStart - KP_REFRACTOMETER/Logic - *12(FIND), 12(ADD), 12(FIND)
RHsensValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteRHsensValueStart - KP_REFRACTOMETER/Logic - *12(ADD), 12(MID), 12(SUB)
RHsensValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteRHsensValueStr - KP_REFRACTOMETER/Logic - *12(MID), 12(STOR)
RHsensValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteRHsensValueStrLen - KP_REFRACTOMETER/Logic - *12(SUB), 12(MID)
Separator '$r$l' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteSeparator - KP_REFRACTOMETER/Logic - 10(FIND), 11(FIND), 12(FIND), 13(FIND), 14(FIND), 15(FIND), 16(FIND), 17(FIND), 18(FIND), 19(FIND), 20(FIND), 5(FIND), 6(FIND), 7(FIND), 8(FIND), 9(FIND)
SeqEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteSeqEnd - KP_REFRACTOMETER/Logic - *19(FIND), 19(SUB)
SeqName 'Seq=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteSeqName - KP_REFRACTOMETER/Logic - 19(FIND)
SeqName.LEN 4 DINTSeqName.LEN - KP_REFRACTOMETER/Logic - 19(ADD)
SeqStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteSeqStart - KP_REFRACTOMETER/Logic - *19(FIND), 19(ADD), 19(FIND)
SeqValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteSeqValueStart - KP_REFRACTOMETER/Logic - *19(ADD), 19(MID), 19(SUB)
SeqValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteSeqValueStr - KP_REFRACTOMETER/Logic - *19(MID), 19(STOD)
SeqValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteSeqValueStrLen - KP_REFRACTOMETER/Logic - *19(SUB), 19(MID)
StatusEnd 0 DINT KP_REFRACTOMETERUsage: Local Tag
KP_REFRACTOMETER Instruction Definition - Local Tag Listing Page 12use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:05
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
StatusEnd (Continued)External Access: Read/WriteStatusEnd - KP_REFRACTOMETER/Logic - *5(FIND), 5(SUB)
StatusName 'Status=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteStatusName - KP_REFRACTOMETER/Logic - 5(FIND)
StatusName.LEN 7 DINTStatusName.LEN - KP_REFRACTOMETER/Logic - 5(ADD)
StatusStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteStatusStart - KP_REFRACTOMETER/Logic - *5(FIND), 5(ADD), 5(FIND)
StatusValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteStatusValueStart - KP_REFRACTOMETER/Logic - *5(ADD), 5(MID), 5(SUB)
StatusValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteStatusValueStrLen - KP_REFRACTOMETER/Logic - *5(SUB), 5(MID)
T1 TIMER KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteT1 - KP_REFRACTOMETER/Logic - *22(TON)
T1.DN 0 BOOLT1.DN - KP_REFRACTOMETER/Logic - 22(XIC)
T2 TIMER KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteT2 - KP_REFRACTOMETER/Logic - *22(TON)
T2.DN 0 BOOLT2.DN - KP_REFRACTOMETER/Logic - 22(XIC)
T3 TIMER KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteT3 - KP_REFRACTOMETER/Logic - *23(TON)
T3.DN 0 BOOLT3.DN - KP_REFRACTOMETER/Logic - 23(XIC)
TEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTEnd - KP_REFRACTOMETER/Logic - *9(FIND), 9(SUB)
TIMER_1SEC TIMER KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTIMER_1SEC - KP_REFRACTOMETER/Logic - *21(TON)
TIMER_1SEC.DN 0 BOOLTIMER_1SEC.DN - KP_REFRACTOMETER/Logic - 21(XIC), 21(XIO)
TimestampEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTimestampEnd - KP_REFRACTOMETER/Logic - *20(FIND), 20(SUB)
TimestampName 'Timestamp=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/Write
KP_REFRACTOMETER Instruction Definition - Local Tag Listing Page 13use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:05
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
TimestampName (Continued)TimestampName - KP_REFRACTOMETER/Logic - 20(FIND)
TimestampName.LEN 10 DINTTimestampName.LEN - KP_REFRACTOMETER/Logic - 20(ADD)
TimestampStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTimestampStart - KP_REFRACTOMETER/Logic - *20(FIND), 20(ADD), 20(FIND)
TimestampValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTimestampValueStart - KP_REFRACTOMETER/Logic - *20(ADD), 20(MID), 20(SUB)
TimestampValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTimestampValueStr - KP_REFRACTOMETER/Logic - *20(MID), 20(STOD)
TimestampValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTimestampValueStrLen - KP_REFRACTOMETER/Logic - *20(SUB), 20(MID)
TName 'T=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTName - KP_REFRACTOMETER/Logic - 9(FIND)
TName.LEN 2 DINTTName.LEN - KP_REFRACTOMETER/Logic - 9(ADD)
TrawEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTrawEnd - KP_REFRACTOMETER/Logic - *11(FIND), 11(SUB)
TrawName 'Traw=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTrawName - KP_REFRACTOMETER/Logic - 11(FIND)
TrawName.LEN 5 DINTTrawName.LEN - KP_REFRACTOMETER/Logic - 11(ADD)
TrawStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTrawStart - KP_REFRACTOMETER/Logic - *11(FIND), 11(ADD), 11(FIND)
TrawValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTrawValueStart - KP_REFRACTOMETER/Logic - *11(ADD), 11(MID), 11(SUB)
TrawValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTrawValueStr - KP_REFRACTOMETER/Logic - *11(MID), 11(STOR)
TrawValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTrawValueStrLen - KP_REFRACTOMETER/Logic - *11(SUB), 11(MID)
TsensEnd 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/Write
KP_REFRACTOMETER Instruction Definition - Local Tag Listing Page 14use_aoi_2:Add-On Instructions:KP_REFRACTOMETER 2018. 06. 04. 15:26:05
C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
TsensEnd (Continued)TsensEnd - KP_REFRACTOMETER/Logic - *10(FIND), 10(SUB)
TsensName 'Tsens=' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTsensName - KP_REFRACTOMETER/Logic - 10(FIND)
TsensName.LEN 6 DINTTsensName.LEN - KP_REFRACTOMETER/Logic - 10(ADD)
TsensStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTsensStart - KP_REFRACTOMETER/Logic - *10(FIND), 10(ADD), 10(FIND)
TsensValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTsensValueStart - KP_REFRACTOMETER/Logic - *10(ADD), 10(MID), 10(SUB)
TsensValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTsensValueStr - KP_REFRACTOMETER/Logic - *10(MID), 10(STOR)
TsensValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTsensValueStrLen - KP_REFRACTOMETER/Logic - *10(SUB), 10(MID)
TStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTStart - KP_REFRACTOMETER/Logic - *9(FIND), 9(ADD), 9(FIND)
TValueStart 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTValueStart - KP_REFRACTOMETER/Logic - *9(ADD), 9(MID), 9(SUB)
TValueStr '' STRING KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTValueStr - KP_REFRACTOMETER/Logic - *9(MID), 9(STOR)
TValueStrLen 0 DINT KP_REFRACTOMETERUsage: Local TagExternal Access: Read/WriteTValueStrLen - KP_REFRACTOMETER/Logic - *9(SUB), 9(MID)
KP_REFRACTOMETER Instruction Definition - Logic Routine Page 15use_aoi_2:Add-On Instructions:KP_REFRACTOMETER:Logic 2018. 06. 04. 15:26:05Total number of rungs in routine: 24 C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
Delete All Sockets
0Delete_All_Request
ENDNER
MessageMessage Control Delete_All_MSG ...
MSGDelete All Sockets
1Enable1
ENDNER
MessageMessage Control CREATE_UDP_SOCKET ...
MSG
2Enable2
MoveSource SockNum 0Dest SEND_UDP_DATA.Instance ??
MOVENDNER
MessageMessage Control SEND_UDP_DATA ...
MSG
3Enable2
MoveSource SockNum 0Dest READ_UDP_DATA.Instance ??
MOVENDNER
MessageMessage Control READ_UDP_DATA ...
MSG
4Enable5
Copy FileSource Read_Response.Buf[0]Dest REF_STRING.DATA[0]Length Read_Response.BufLen
COPMoveSource Read_Response.BufLen ??Dest REF_STRING.LEN 0
MOV
5Enable6
Find StringSource REF_STRING ''Search StatusName 'Status='Start 1 Result StatusStart 0
FINDAddSource A StatusStart 0Source B StatusName.LEN 7Dest StatusValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start StatusStart 0Result StatusEnd 0
FIND
SubtractSource A StatusEnd 0Source B StatusValueStart 0Dest StatusValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty StatusValueStrLen 0Start StatusValueStart 0Dest StatusValueStr ??
MID
KP_REFRACTOMETER Instruction Definition - Logic Routine Page 16use_aoi_2:Add-On Instructions:KP_REFRACTOMETER:Logic 2018. 06. 04. 15:26:06Total number of rungs in routine: 24 C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
6Enable6
Find StringSource REF_STRING ''Search LEDName 'LED='Start 1 Result LEDStart 0
FINDAddSource A LEDStart 0Source B LEDName.LEN 4Dest LEDValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start LEDStart 0Result LEDEnd 0
FIND
SubtractSource A LEDEnd 0Source B LEDValueStart 0Dest LEDValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty LEDValueStrLen 0Start LEDValueStart 0Dest LEDValueStr ''
MIDString to RealSource LEDValueStr ''Dest LEDValue 0.0
STOR
7Enable6
Find StringSource REF_STRING ''Search CCDName 'CCD='Start 1 Result CCDStart 0
FINDAddSource A CCDStart 0Source B CCDName.LEN 4Dest CCDValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start CCDStart 0Result CCDEnd 0
FIND
SubtractSource A CCDEnd 0Source B CCDValueStart 0Dest CCDValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty CCDValueStrLen 0Start CCDValueStart 0Dest CCDValueStr ''
MIDString to RealSource CCDValueStr ''Dest CCDValue 0.0
STOR
8Enable6
Find StringSource REF_STRING ''Search nDName 'nD='Start 1 Result nDStart 0
FINDAddSource A nDStart 0Source B nDName.LEN 3Dest nDValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start nDStart 0Result nDEnd 0
FIND
SubtractSource A nDEnd 0Source B nDValueStart 0Dest nDValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty nDValueStrLen 0Start nDValueStart 0Dest nDValueStr ''
MIDString to RealSource nDValueStr ''Dest nDValue 0.0
STOR
KP_REFRACTOMETER Instruction Definition - Logic Routine Page 17use_aoi_2:Add-On Instructions:KP_REFRACTOMETER:Logic 2018. 06. 04. 15:26:06Total number of rungs in routine: 24 C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
9Enable6
Find StringSource REF_STRING ''Search TName 'T='Start 1 Result TStart 0
FINDAddSource A TStart 0Source B TName.LEN 2Dest TValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start TStart 0Result TEnd 0
FIND
SubtractSource A TEnd 0Source B TValueStart 0Dest TValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty TValueStrLen 0Start TValueStart 0Dest TValueStr ''
MIDString to RealSource TValueStr ''Dest TValue 0.0
STOR
10Enable6
Find StringSource REF_STRING ''Search TsensName 'Tsens='Start 1 Result TsensStart 0
FINDAddSource A TsensStart 0Source B TsensName.LEN 6Dest TsensValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start TsensStart 0Result TsensEnd 0
FIND
SubtractSource A TsensEnd 0Source B TsensValueStart 0Dest TsensValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty TsensValueStrLen 0Start TsensValueStart 0Dest TsensValueStr ''
MIDString to RealSource TsensValueStr ''Dest TsensValue 0.0
STOR
11Enable6
Find StringSource REF_STRING ''Search TrawName 'Traw='Start 1 Result TrawStart 0
FINDAddSource A TrawStart 0Source B TrawName.LEN 5Dest TrawValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start TrawStart 0Result TrawEnd 0
FIND
SubtractSource A TrawEnd 0Source B TrawValueStart 0Dest TrawValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty TrawValueStrLen 0Start TrawValueStart 0Dest TrawValueStr ''
MIDString to RealSource TrawValueStr ''Dest TrawValue 0.0
STOR
KP_REFRACTOMETER Instruction Definition - Logic Routine Page 18use_aoi_2:Add-On Instructions:KP_REFRACTOMETER:Logic 2018. 06. 04. 15:26:06Total number of rungs in routine: 24 C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
12Enable6
Find StringSource REF_STRING ''Search RHsensName 'RHsens='Start 1 Result RHsensStart 0
FINDAddSource A RHsensStart 0Source B RHsensName.LEN 7Dest RHsensValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start RHsensStart 0Result RHsensEnd 0
FIND
SubtractSource A RHsensEnd 0Source B RHsensValueStart 0Dest RHsensValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty RHsensValueStrLen 0Start RHsensValueStart 0Dest RHsensValueStr ''
MIDString to RealSource RHsensValueStr ''Dest RHsensValue 0.0
STOR
13Enable6
Find StringSource REF_STRING ''Search CALCName 'CALC='Start 1 Result CALCStart 0
FINDAddSource A CALCStart 0Source B CALCName.LEN 5Dest CALCValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start CALCStart 0Result CALCEnd 0
FIND
SubtractSource A CALCEnd 0Source B CALCValueStart 0Dest CALCValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty CALCValueStrLen 0Start CALCValueStart 0Dest CALCValueStr ''
MIDString to RealSource CALCValueStr ''Dest CALCValue 0.0
STOR
14Enable6
Find StringSource REF_STRING ''Search CONCName 'CONC='Start 1 Result CONCStart 0
FINDAddSource A CONCStart 0Source B CONCName.LEN 5Dest CONCValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start CONCStart 0Result CONCEnd 0
FIND
SubtractSource A CONCEnd 0Source B CONCValueStart 0Dest CONCValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty CONCValueStrLen 0Start CONCValueStart 0Dest CONCValueStr ''
MIDString to RealSource CONCValueStr ''Dest CONCValue 0.0
STOR
KP_REFRACTOMETER Instruction Definition - Logic Routine Page 19use_aoi_2:Add-On Instructions:KP_REFRACTOMETER:Logic 2018. 06. 04. 15:26:06Total number of rungs in routine: 24 C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
15Enable6
Find StringSource REF_STRING ''Search PTrawName 'PTraw='Start 1 Result PTrawStart 0
FINDAddSource A PTrawStart 0Source B PTrawName.LEN 6Dest PTrawValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start PTrawStart 0Result PTrawEnd 0
FIND
SubtractSource A PTrawEnd 0Source B PTrawValueStart 0Dest PTrawValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty PTrawValueStrLen 0Start PTrawValueStart 0Dest PTrawValueStr ''
MIDString To DINTSource PTrawValueStr ''Dest PTrawValue 0
STOD
16Enable6
Find StringSource REF_STRING ''Search QFName 'QF='Start 1 Result QFStart 0
FINDAddSource A QFStart 0Source B QFName.LEN 3Dest QFValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start QFStart 0Result QFEnd 0
FIND
SubtractSource A QFEnd 0Source B QFValueStart 0Dest QFValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty QFValueStrLen 0Start QFValueStart 0Dest QFValueStr ''
MIDString to RealSource QFValueStr ''Dest QFValue 0.0
STOR
17Enable6
Find StringSource REF_STRING ''Search mAName 'mA='Start 1 Result mAStart 0
FINDAddSource A mAStart 0Source B mAName.LEN 3Dest mAValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start mAStart 0Result mAEnd 0
FIND
SubtractSource A mAEnd 0Source B mAValueStart 0Dest mAValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty mAValueStrLen 0Start mAValueStart 0Dest mAValueStr ''
MIDString to RealSource mAValueStr ''Dest mAValue 0.0
STOR
KP_REFRACTOMETER Instruction Definition - Logic Routine Page 20use_aoi_2:Add-On Instructions:KP_REFRACTOMETER:Logic 2018. 06. 04. 15:26:07Total number of rungs in routine: 24 C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
18Enable6
Find StringSource REF_STRING ''Search BGlightName 'BGlight='Start 1 Result BGlightStart 0
FINDAddSource A BGlightStart 0Source B BGlightName.LEN 8Dest BGlightValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start BGlightStart 0Result BGlightEnd 0
FIND
SubtractSource A BGlightEnd 0Source B BGlightValueStart 0Dest BGlightValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty BGlightValueStrLen 0Start BGlightValueStart 0Dest BGlightValueStr ''
MIDString To DINTSource BGlightValueStr ''Dest BGlightValue 0
STOD
19Enable6
Find StringSource REF_STRING ''Search SeqName 'Seq='Start 1 Result SeqStart 0
FINDAddSource A SeqStart 0Source B SeqName.LEN 4Dest SeqValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start SeqStart 0Result SeqEnd 0
FIND
SubtractSource A SeqEnd 0Source B SeqValueStart 0Dest SeqValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty SeqValueStrLen 0Start SeqValueStart 0Dest SeqValueStr ''
MIDString To DINTSource SeqValueStr ''Dest SeqValue 0
STOD
KP_REFRACTOMETER Instruction Definition - Logic Routine Page 21use_aoi_2:Add-On Instructions:KP_REFRACTOMETER:Logic 2018. 06. 04. 15:26:07Total number of rungs in routine: 24 C:\Users\Peti\Documents\Studio 5000\Projects\use_aoi_2.ACDData Context: KP_REFRACTOMETER <definition>
Logix Designer
20Enable6
Find StringSource REF_STRING ''Search TimestampName 'Timestamp='Start 1 Result TimestampStart 0
FINDAddSource A TimestampStart 0Source B TimestampName.LEN 10Dest TimestampValueStart 0
ADDFind StringSource REF_STRING ''Search Separator '$r$l'Start TimestampStart 0Result TimestampEnd 0
FIND
SubtractSource A TimestampEnd 0Source B TimestampValueStart 0Dest TimestampValueStrLen 0
SUBMiddle StringSource REF_STRING ''Qty TimestampValueStrLen 0Start TimestampValueStart 0Dest TimestampValueStr ''
MID
String To DINTSource TimestampValueStr ''Dest TimestampValue 0
STOD
21 /TIMER_1SEC.DN
EN
DN
Timer On DelayTimer TIMER_1SECPreset 1000Accum 0
TON
TIMER_1SEC.DN REF_READ_CYCLE
22 /REF_READ_CYCLE Enable2
EN
DN
Timer On DelayTimer T1Preset 100Accum 0
TON T1.DN Enable5
EN
DN
Timer On DelayTimer T2Preset 100Accum 0
TON T2.DN Enable6
23START Delete_All_Request
EN
DN
Timer On DelayTimer T3Preset 100Accum 0
TON T3.DN Enable1
(End)
Accessing the refractometer web interface Configuring a refractometer is not possible through direct UDP/IP connection with PLC,
because direct UDP/IP connection provides only measurement and status data. The
refractometer can be configured, verified and diagnosed by accessing its built-in web server
homepage. The homepage is accessed by connecting a computer to a refractometer via a
switch, a router or a direct cable connection. A connection between refractometer and PLC can
be temporarily disconnected while changing refractometer parameters – the connection
recovers by itself after the connection is restored. See refractometer manual for details of the
refractometer network settings.