![Alcorn Mcbride V+ series User Manual Download Page 253](http://html1.mh-extra.com/html/alcorn-mcbride/v-series/v-series_user-manual_2892709253.webp)
15-17
Appendix A
– Adding User-Defined Serial Protocols
Ap
p
end
ice
s
A
param1=port, "A valid Port"
param2=var, "A valid variable representing a clip number"
byte1=(@byte(param2) + 1)
message=hF3 @complex(Byte1) "SE" h0d
First you must make sure that the "Supported" field is set to 6.40. WinScript
uses this information to determine whether variables can be sent, and then
compiles the command accordingly. As you can see, the message field in the
Variable version contains an hF3 and a @complex function. The hF3 signifies
that an ASCII representation will be transmitted. There are other modifiers like
hF3 and you can learn how they function in the
Built-In Serial Events
section.
The @complex function is required since the variable is zero-indexed (starts at 0
rather than 1). Since the show controller expecting a number that is not zero-
indexed, 1 must be added in the previous byte command. Overall, the
[SelectClip:ByVariable] command sends out the same basic result as
[SelectClip:ByNumber], only that data does not have to be hard-coded into your
script. As you can see, this is a very powerful feature as it gives you more
flexibility in your scripts.
Summary of Contents for V+ series
Page 2: ...User s Guide To Show Control by Alcorn McBride Inc...
Page 7: ...Third Party Equipment 18 3 Index 19 1...
Page 8: ......
Page 14: ...1 6 Welcome...
Page 28: ...3 14 Show Control Overview GoingToDayModeMsg ClearLine2Msg...
Page 38: ...3 24 Show Control Overview...
Page 82: ...4 44 WinScript User s Guide...
Page 118: ......
Page 144: ...6 26 Advanced WinScript Programming...
Page 170: ...7 26 Application Notes...
Page 220: ...13 8 DMX Machine Hardware Reference...
Page 236: ...14 16 SMPTE Machine Hardware Reference...
Page 254: ...15 18 Appendix A Adding User Defined Serial Protocols...
Page 264: ......